Put the header at the top of the client R script (ds.xxxx.R script)
#' #' @title [insert something] #' @description [insert something] #' @export #' |
#' #' @title creates random numbers #' @description This function is similar to R function \code{rnorm}. #' @export #' |
Reload the new client library from your local machine. In R:
library(devtools) devtools::load_all("filepath to dsBaseClient you have pulled from github on your machine") |
Test the new function:
#load libraries library(opal) library(dsBaseClient) library(dsStatsClient) library(dsGraphicsClient) library(dsModellingClient) #log into to the test opals data(logindata) opals <- datashield.login(logins=logindata,assign=TRUE) #run the function to test it ds.rNorm1(samp.size=25,mean=0,sd=1,newobj="newObject",datasources=NULL) |