View source: R/obtain_NLMELicense.R
obtain_NLMELicense | R Documentation |
This function attempts to authenticate and obtain an NLME license using the specified installation directory and licensing tool.
obtain_NLMELicense(
InstallDir = Sys.getenv("INSTALLDIR"),
ForceAuth = FALSE,
ForceLicenseGet = FALSE,
verbose = getOption("verbose")
)
InstallDir |
A character string specifying the directory
where the NLME Engine is installed e.g., |
ForceAuth |
A logical value indicating whether to force
re-authentication even if already authenticated. Default is |
ForceLicenseGet |
A logical value indicating whether to force obtaining
the license even if already licensed. Default is |
verbose |
A logical value indicating whether to print verbose output.
Default is |
This function checks for the presence of the necessary
appsettings.json
file as indicated by the CAD_CONFIG_FILE
environment variable,
runs the licensing tool to authenticate the user, and attempts to obtain
an NLME license. It prints detailed messages if the verbose
parameter is set to TRUE
.
A logical value indicating whether the license was successfully obtained.
result <- obtain_NLMELicense("C:/Program Files/Certara/NLME_Engine", verbose = TRUE)
if (result) {
message("License obtained successfully!")
} else {
message("Failed to obtain license.")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.