1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-05 22:00:05 +00:00

chore: replace env variable RSCRIPT_PATH with R_PATH

This commit is contained in:
2022-09-09 15:23:46 +05:00
parent 16b7aa6abb
commit 662b2ca36a
7 changed files with 19 additions and 19 deletions

View File

@@ -254,7 +254,7 @@ const verifyRUN_TIMES = (): string[] => {
const verifyExecutablePaths = () => {
const errors: string[] = []
const { RUN_TIMES, SAS_PATH, NODE_PATH, PYTHON_PATH, RSCRIPT_PATH, MODE } =
const { RUN_TIMES, SAS_PATH, NODE_PATH, PYTHON_PATH, R_PATH, MODE } =
process.env
if (MODE === ModeType.Server) {
@@ -272,8 +272,8 @@ const verifyExecutablePaths = () => {
errors.push(`- PYTHON_PATH is required for ${RunTimeType.PY} run time`)
}
if (runTimes?.includes(RunTimeType.R) && !RSCRIPT_PATH) {
errors.push(`- RSCRIPT_PATH is required for ${RunTimeType.R} run time`)
if (runTimes?.includes(RunTimeType.R) && !R_PATH) {
errors.push(`- R_PATH is required for ${RunTimeType.R} run time`)
}
}