Skip to content

Commit 348342b

Browse files
committed
Fix IRkernel: set PATH in R before installspec
Use Sys.setenv to add ~/.local/bin to PATH before running installspec, so R can find the jupyter binary.
1 parent fb384aa commit 348342b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/conformance.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ jobs:
3333
- name: irkernel
3434
install: |
3535
python -m pip install jupyter
36-
export PATH="$HOME/.local/bin:$PATH"
37-
jupyter kernelspec --version
3836
Rscript -e "install.packages('IRkernel', repos='https://cloud.r-project.org')"
39-
Rscript -e "IRkernel::installspec()"
37+
Rscript -e "Sys.setenv(PATH = paste0(Sys.getenv('HOME'), '/.local/bin:', Sys.getenv('PATH'))); IRkernel::installspec()"
4038
kernel-name: ir
4139

4240
steps:

0 commit comments

Comments
 (0)