Create a new CyneRgy function using provided templates that can be utilized with R integration points in Cytel products.
CreateCyneRgyFunction.Rd
Create a new CyneRgy function using provided templates that can be utilized with R integration points in Cytel products.
Usage
CreateCyneRgyFunction(
strFunctionType = "",
strNewFunctionName = NA,
strDirectory = NA,
bOpen = TRUE
)
Arguments
- strFunctionType
A string variable that provides the function type to create. This argument is used to determine which integration template should be used.
- strNewFunctionName
The name of the new function to create. This argument is also used to name the file. The resulting file is named [strNewFunctionName].R
- strDirectory
A sub-directory with this name is created in the current working directory. If no value is provided, the file is created in the working directory.
- bOpen
TRUE/FALSE value, when TRUE the file is opened and when FALSE the file is not opened, just created. Note, the R Studio API is used to open the file and only works in R Studio.
Examples
if (FALSE) {
CreateCyneRgyFunction() # A full list of options for strFunctionType is provided
# Using the Analyze.Binary function template a new file named NewBinaryAnalysis.R is created in the working directory with a function that is ready to
# be used in places where binary data is generated in simulations.
CreateCyneRgyFunction( "Analyze.Binary", "NewBinaryAnalysis" )
}