Get site information
Value
A named list of 20 elements of site specific information used by the application.
The first seven elements (center, baseUrl,
schemaName, folderPath, queryName,
lkPedColumns and mapPedColumns) are read from the
configuration file when one exists. A configuration file that lacks one of
these keys causes an error ("Could not find ..."). When no configuration
file exists, the defaults for the ONPRC are returned instead: center
"ONPRC", baseUrl "https://primeuat.ohsu.edu", schemaName "study",
folderPath "/ONPRC/EHR" and queryName "demographics". A warning is
signaled for the missing file only when expectConfigFile is
TRUE.
The format of the configuration file is described in the notes at the top
of the example file, example_nprcgenekeepr_config, in the package's
extdata/examples folder.
The returned list contains the following elements.
center– center name, such as "ONPRC" or "SNPRC"baseUrl– base URL of the LabKey serverschemaName– LabKey schema namefolderPath– LabKey folder pathqueryName– LabKey query name, "demographics" by defaultlkPedColumns– LabKey column names for the pedigreemapPedColumns– the package column names thatlkPedColumnsare renamed tosysname,release,version,nodename,machine,login,userandeffective_user– character strings fromSys.info()homeDirandconfigFile– the home directory and the expected configuration file path, fromgetConfigFileNamerequiredCols– the required studbook columns, fromgetRequiredColspossibleCols– the possible studbook columns, fromgetPossibleColsincludeColumns– the superset of report-inclusion columns, fromgetIncludeColumns
Examples
library(nprcgenekeepr)
## default sends warning if configuration file is missing
suppressWarnings(getSiteInfo())
#> $center
#> [1] "ONPRC"
#>
#> $baseUrl
#> [1] "https://primeuat.ohsu.edu"
#>
#> $schemaName
#> [1] "study"
#>
#> $folderPath
#> [1] "/ONPRC/EHR"
#>
#> $queryName
#> [1] "demographics"
#>
#> $lkPedColumns
#> [1] "Id" "gender" "birth" "death"
#> [5] "lastDayAtCenter" "Id/parents/dam" "Id/parents/sire"
#>
#> $mapPedColumns
#> [1] "id" "sex" "birth" "death" "exit" "dam" "sire"
#>
#> $sysname
#> [1] "Linux"
#>
#> $release
#> [1] "6.17.0-1022-azure"
#>
#> $version
#> [1] "#22-Ubuntu SMP Mon Jul 27 17:24:03 UTC 2026"
#>
#> $nodename
#> [1] "runnervm8k3b6"
#>
#> $machine
#> [1] "x86_64"
#>
#> $login
#> [1] "unknown"
#>
#> $user
#> [1] "runner"
#>
#> $effective_user
#> [1] "runner"
#>
#> $homeDir
#> [1] "/home/runner"
#>
#> $configFile
#> [1] "/home/runner/.nprcgenekeepr_config"
#>
#> $requiredCols
#> [1] "id" "sire" "dam" "sex" "birth"
#>
#> $possibleCols
#> [1] "id" "sire" "dam" "sex" "species"
#> [6] "gen" "birth" "exit" "death" "age"
#> [11] "ancestry" "population" "origin" "status" "condition"
#> [16] "departure" "spf" "vasxOvx" "pedNum" "first"
#> [21] "second" "first_name" "second_name" "recordStatus" "affected"
#> [26] "name"
#>
#> $includeColumns
#> [1] "id" "sex" "age" "birth" "exit"
#> [6] "population" "condition" "origin" "first_name" "second_name"
#>
getSiteInfo(expectConfigFile = FALSE)
#> $center
#> [1] "ONPRC"
#>
#> $baseUrl
#> [1] "https://primeuat.ohsu.edu"
#>
#> $schemaName
#> [1] "study"
#>
#> $folderPath
#> [1] "/ONPRC/EHR"
#>
#> $queryName
#> [1] "demographics"
#>
#> $lkPedColumns
#> [1] "Id" "gender" "birth" "death"
#> [5] "lastDayAtCenter" "Id/parents/dam" "Id/parents/sire"
#>
#> $mapPedColumns
#> [1] "id" "sex" "birth" "death" "exit" "dam" "sire"
#>
#> $sysname
#> [1] "Linux"
#>
#> $release
#> [1] "6.17.0-1022-azure"
#>
#> $version
#> [1] "#22-Ubuntu SMP Mon Jul 27 17:24:03 UTC 2026"
#>
#> $nodename
#> [1] "runnervm8k3b6"
#>
#> $machine
#> [1] "x86_64"
#>
#> $login
#> [1] "unknown"
#>
#> $user
#> [1] "runner"
#>
#> $effective_user
#> [1] "runner"
#>
#> $homeDir
#> [1] "/home/runner"
#>
#> $configFile
#> [1] "/home/runner/.nprcgenekeepr_config"
#>
#> $requiredCols
#> [1] "id" "sire" "dam" "sex" "birth"
#>
#> $possibleCols
#> [1] "id" "sire" "dam" "sex" "species"
#> [6] "gen" "birth" "exit" "death" "age"
#> [11] "ancestry" "population" "origin" "status" "condition"
#> [16] "departure" "spf" "vasxOvx" "pedNum" "first"
#> [21] "second" "first_name" "second_name" "recordStatus" "affected"
#> [26] "name"
#>
#> $includeColumns
#> [1] "id" "sex" "age" "birth" "exit"
#> [6] "population" "condition" "origin" "first_name" "second_name"
#>
