You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On windows, short path name (or 8.3 filename) are still used on GHA. This path can cause issue with some tools - specifically we encounter error on windows with LaTeX when rendering from a tempfile()
As nothing is done specifically in setup-r, R will look at %TEMP% which contains a short filename - this has been reported already and it is normal. (actions/runner-images#712)
What about setting TEMPDIR, TMP or TEMP to the runner temp directory by default? (RUNNER_TEMP, runner.temp, process.env["RUNNER_TEMP"]). This is already use to place the R user library (R_LIBS_USER). This folder has the advantage to not have space on Windows, so no short file name with ~.
It could also be a parameter to pass to the action to set the R temp dir to a different location
I have never really ran into this issue in any of our workflows, so I don't think this is widespread enough to change the default, and the workaround you mentioned above seems like a good solution.
On windows, short path name (or 8.3 filename) are still used on GHA. This path can cause issue with some tools - specifically we encounter error on windows with LaTeX when rendering from a
tempfile()
As nothing is done specifically in
setup-r
, R will look at%TEMP%
which contains a short filename - this has been reported already and it is normal. (actions/runner-images#712)What about setting
TEMPDIR
,TMP
orTEMP
to the runner temp directory by default? (RUNNER_TEMP
,runner.temp
,process.env["RUNNER_TEMP"]
). This is already use to place the R user library (R_LIBS_USER
). This folder has the advantage to not have space on Windows, so no short file name with~
.It could also be a parameter to pass to the action to set the R temp dir to a different location
Currently to make the test pass, I set this environment for the step
I could also do it for the job by setting globally using a custom step
it seems this variable can't be define in
env:
at the job level, as it is done withsecrets
(no access to${{ runner.temp }}
there it seems)Would it be something to consider ?
The text was updated successfully, but these errors were encountered: