@platforma-sdk/workflow-tengo 2.9.3 → 2.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tengo/lib/exec.R.internal.lib.tengo +15 -4
- package/dist/tengo/lib/exec.internal.lib.tengo +20 -9
- package/dist/tengo/tpl/exec.R.create-renv.plj.gz +0 -0
- package/dist/tengo/tpl/exec.exec.plj.gz +0 -0
- package/dist/tengo/tpl/exec.monetization_to_json.plj.gz +0 -0
- package/dist/tengo/tpl/exec.python.create-venv.plj.gz +0 -0
- package/dist/tengo/tpl/exec.python.install-deps.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.aggregate.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-multiple-pcolumns.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-pframe.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-single-pcolumn.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.import-dir.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.map-pframe.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.xsv-export-pframe.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.xsv-import-map.plj.gz +0 -0
- package/dist/tengo/tpl/workdir.save.plj.gz +0 -0
- package/dist/tengo/tpl/workflow.build-ctx.plj.gz +0 -0
- package/package.json +2 -2
|
@@ -15,17 +15,28 @@ rDescriptor: desc.runEnvScheme,
|
|
|
15
15
|
R: validation.reference
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
runRBuilder := func(wd, rPackage, rDescriptor) {
|
|
18
|
+
runRBuilder := func(operationMode, wd, rPackage, rDescriptor) {
|
|
19
19
|
t := desc.canBackendUseExpressions() ? constants.ARG_TYPE_EXPRESSION : constants.ARG_TYPE_VAR
|
|
20
20
|
rule := desc.canBackendUseExpressions() ? "R" : "{R}"
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
builder := runcmd.builder(wd).
|
|
23
23
|
ref("r-run-environment", rPackage).
|
|
24
24
|
substitutionRule(rule, "r-run-environment").
|
|
25
25
|
addToPath(t, path.join("{R}", rDescriptor.binDir)).
|
|
26
|
-
envTyped("R_HOME_DIR", t, "{R}").
|
|
27
26
|
envTyped("RHOME", t, "{R}").
|
|
28
|
-
envTyped("
|
|
27
|
+
envTyped("R_HOME_DIR", t, "{R}").
|
|
28
|
+
envTyped("RENV_PATHS_ROOT", t, path.join("{R}", "renv-root")).
|
|
29
|
+
envTyped("RENV_PATHS_BINARY", t, path.join("{R}", "renv-root", "binaries")).
|
|
30
|
+
envTyped("RENV_PATHS_SOURCE", t, path.join("{R}", "renv-root", "sources")).
|
|
31
|
+
envTyped("RENV_PATHS_CACHE", t, path.join("{R}", "renv-root", "cache"))
|
|
32
|
+
|
|
33
|
+
if (operationMode != "dev-local") {
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
builder.envTyped("RENV_CONFIG_REPOS_OVERRIDE", t, path.join("{R}", "packages"))
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return builder
|
|
29
40
|
}
|
|
30
41
|
|
|
31
42
|
export ll.toStrict({
|
|
@@ -162,20 +162,31 @@ rRefVar := _newRefVar(_ARG_VAR_R, rRefKey, rPackage)
|
|
|
162
162
|
rEnvRefKey := softName + "/R-virtual-env"
|
|
163
163
|
rEnvRefVar := _newRefVar(_ARG_VAR_R_VENV, rEnvRefKey, rEnv)
|
|
164
164
|
|
|
165
|
+
renvRootArg := path.join(_expr(_ARG_VAR_R), "renv-root")
|
|
166
|
+
|
|
167
|
+
envs := {
|
|
168
|
+
"RHOME": _newArg(false, _expr(_ARG_VAR_R)), // for Rscript (it uses RHOME instead of R_HOME)
|
|
169
|
+
"R_HOME_DIR": _newArg(false, _expr(_ARG_VAR_R)), // for R startup script. It configures all the rest required for R to start.
|
|
170
|
+
"RENV_PATHS_ROOT": _newArg(false, renvRootArg),
|
|
171
|
+
"RENV_PATHS_BINARY": _newArg(false, path.join(renvRootArg, "binaries")),
|
|
172
|
+
"RENV_PATHS_SOURCE": _newArg(false, path.join(renvRootArg, "sources")),
|
|
173
|
+
"RENV_PATHS_CACHE": _newArg(false, path.join(renvRootArg, "cache")),
|
|
174
|
+
"RENV_PATHS_RENV": _newArg(false, path.join(_expr(_ARG_VAR_R_VENV), "renv")),
|
|
175
|
+
"RENV_PATHS_LOCKFILE": _newArg(false, path.join(_expr(_ARG_VAR_PKG), descriptor.dependencies.lockFile))
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (operationMode != "dev-local") {
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
envs["RENV_CONFIG_REPOS_OVERRIDE"] = _newArg(false, path.join(_expr(_ARG_VAR_R), "packages"))
|
|
182
|
+
}
|
|
183
|
+
|
|
165
184
|
return ll.toStrict({
|
|
166
185
|
runEnvType: "R",
|
|
167
186
|
|
|
168
187
|
variables: [ rRefVar, rEnvRefVar ],
|
|
169
188
|
customPaths: [ _newArg(false, rBinDir) ],
|
|
170
|
-
envs:
|
|
171
|
-
"R_HOME_DIR": _newArg(false, _expr(_ARG_VAR_R)),
|
|
172
|
-
"RHOME": _newArg(false, _expr(_ARG_VAR_R)),
|
|
173
|
-
"RENV_PATHS_ROOT": _newArg(false, path.join(_expr(_ARG_VAR_R), "renv-root")),
|
|
174
|
-
"RENV_PATHS_RENV": _newArg(false, path.join(_expr(_ARG_VAR_R_VENV), "renv")),
|
|
175
|
-
"RENV_PATHS_LOCKFILE": _newArg(false, path.join(_expr(_ARG_VAR_PKG), descriptor.dependencies.lockFile)),
|
|
176
|
-
"RENV_CONFIG_AUTO_SNAPSHOT": _newArg(true, "FALSE"),
|
|
177
|
-
"RENV_CONFIG_SYNCHRONIZED_CHECK": _newArg(true, "FALSE")
|
|
178
|
-
}
|
|
189
|
+
envs: envs
|
|
179
190
|
})
|
|
180
191
|
}
|
|
181
192
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platforma-sdk/workflow-tengo",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.5",
|
|
4
4
|
"description": "Tengo SDK library",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"./dist/**/*"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@milaboratories/software-pframes-conv": "2.1.
|
|
19
|
+
"@milaboratories/software-pframes-conv": "2.1.4",
|
|
20
20
|
"@platforma-open/milaboratories.software-small-binaries": "^1.15.6"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|