Skip to contents

Tries to find the installation path for a specific version of PK-Sim. Searching is done in the following order:

  1. Search via Windows registry entry

  2. Search via filesystem in a guessed installation folder from the (fallback 1)


  pksim.version = ospsuiteEnv$suiteVersion, = Sys.getenv("ProgramW6432")



The version number of Pk-Sim as a string.

The base folder for filesystem-lookup fallback (default: 64-bit program folder)


The path to the PK-Sim installation for version pksim.version or NA if no path could be found. The path is separated with slashes (unix-style) and in compliance with base-R without a trailing slash. If more than one matching path is found a warning is produced.


# \dontrun{
path <- .getPathToPKSimInstallDir("9")
#> Error in .getPathToPKSimInstallDir("9"): could not find function ".getPathToPKSimInstallDir"
path2 <- .getPathToPKSimInstallDir("10.1", "C:/MyOSPFolder/")
#> Error in .getPathToPKSimInstallDir("10.1", "C:/MyOSPFolder/"): could not find function ".getPathToPKSimInstallDir"
# }
#' @keywords internal