Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
**/.flattened-pom.xml
*/*.jar
**/CHANGELOG.md
**/.pixi/
17 changes: 17 additions & 0 deletions workflow-tests/pixi.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[workspace]
channels = ["conda-forge"]
platforms = ["linux-64", "win-64", "osx-64", "osx-arm64"]

[dependencies]
r-base = ">=4.3,<5"
"r-data.table" = "*"
r-ggplot2 = "*"
r-pmml = "*"
r-rserve = "*"

# Cairo is only required on macOS for bitmap graphics devices (png, bmp, etc.)
[target.osx-64.dependencies]
r-cairo = "*"

[target.osx-arm64.dependencies]
r-cairo = "*"
1 change: 1 addition & 0 deletions workflow-tests/preferences-Linux.epf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
\!/=
file_export_version=3.0
/instance/org.knime.conda/condaDirectoryPath=/home/jenkins/miniconda3
/instance/org.knime.ext.r.bin/knime.r.home=<placeholder_for_r_home>
1 change: 1 addition & 0 deletions workflow-tests/preferences-MacOSX.epf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
\!/=
file_export_version=3.0
/instance/org.knime.conda/condaDirectoryPath=/Users/jenkins/miniconda3
/instance/org.knime.ext.r.bin/knime.r.home=<placeholder_for_r_home>
1 change: 1 addition & 0 deletions workflow-tests/preferences-Windows.epf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
\!/=
file_export_version=3.0
/instance/org.knime.conda/condaDirectoryPath=C:\\Users\\jenkins\\Miniconda3
/instance/org.knime.ext.r.bin/knime.r.home=<placeholder_for_r_home>
14 changes: 14 additions & 0 deletions workflow-tests/setup-Linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
# Set up the pixi-managed R environment for workflow tests

echo "Setting up pixi R environment..."
cd "${WORKSPACE}/workflow-tests"
pixi install

# The pixi default environment prefix
R_HOME="${WORKSPACE}/workflow-tests/.pixi/envs/default/lib/R"
echo "R_HOME: ${R_HOME}"

# Write the R home into the preferences file
sedi "s|<placeholder_for_r_home>|${R_HOME}|g" "${WORKSPACE}/workflow-tests/preferences-Linux.epf"
cat "${WORKSPACE}/workflow-tests/preferences-Linux.epf"
14 changes: 14 additions & 0 deletions workflow-tests/setup-MacOSX.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
# Set up the pixi-managed R environment for workflow tests

echo "Setting up pixi R environment..."
cd "${WORKSPACE}/workflow-tests"
pixi install

# The pixi default environment prefix
R_HOME="${WORKSPACE}/workflow-tests/.pixi/envs/default/lib/R"
echo "R_HOME: ${R_HOME}"

# Write the R home into the preferences file
sedi "s|<placeholder_for_r_home>|${R_HOME}|g" "${WORKSPACE}/workflow-tests/preferences-MacOSX.epf"
cat "${WORKSPACE}/workflow-tests/preferences-MacOSX.epf"
14 changes: 14 additions & 0 deletions workflow-tests/setup-Windows.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
# Set up the pixi-managed R environment for workflow tests

echo "Setting up pixi R environment..."
cd "${WORKSPACE}/workflow-tests"
pixi install

# The pixi default environment prefix (backslash separators for Windows paths)
R_HOME="${WORKSPACE}\\workflow-tests\\.pixi\\envs\\default\\lib\\R"
echo "R_HOME: ${R_HOME}"

# Write the R home into the preferences file (escape backslashes for EPF/Java-properties format)
sedi "s|<placeholder_for_r_home>|${R_HOME//\\/\\\\\\\\}|g" "${WORKSPACE}/workflow-tests/preferences-Windows.epf"
cat "${WORKSPACE}/workflow-tests/preferences-Windows.epf"