Closed 0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q closed 9 months ago
Crap. This fails on the cluster in general. (While I cannot make it fail for me locally, so it seemed quite robust.)
Options would be:
igdx(Sys.getenv("GAMSROOT"))
, which is defined on the cluster.setenv R_GAMS_SYSDIR /p/system/packages/gams/…
in the gams
module.append-path LD_LIBRARY_PATH /p/system/packages/gams/…
in the gams
module.PATH
, which igdx()
does on its own on Windows, but not on Linux.@0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q would it be an option to combine old and new methodology? Shouldn't that cover all known setups?
Sure, option 4.
Will do that.
I went with options 4 and 1. We could do options 2 and 3 on the cluster as well.
Fixed an undocumented "feature" of R CMD check
, which fails if packageStartupMessage()
passes anything containing the string "Error".
I noticed recently R 4.4 builds on windows on r-universe fail with the fail state output, see e.g. here. Any ideas how to fix that @0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q ?
R version 4.4.0 alpha (2024-03-26 r86209 ucrt)
Interesting choice …
R 4.3 would complain if packageStartupMessage()
contained the string "Error", see here. So either try to find the part of the message that is offending R 4.4, or call igdx()
only when it is actually needed (inside readGDX()
and writeGDX()
), not when the package is loaded.
We had trouble with tests being skipped because the GDX libraries were not loaded correctly (see this Mattermost discussion).
This code https://github.com/pik-piam/gdx/blob/ab8fa071c4f0a358605a2a191a7426e725dd3c62/R/onLoad.R#L8-L17 will fail silently (more accurately: report
NULL
) when there are no elements containing "gams" on the path (which was the case here).At least since version 1.0.2 the
gdxrrw
uses improved mechanisms to find GAMS on its own, see here.So this change uses that instead.
Output of the fail state (with unloaded
gams
module on the cluster) looks like