Replies: 1 comment 8 replies
-
hi @Wutttong, can you check whether the package |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear MAgPIE Community,
I'm running into an issue with the readGDX function in the gdx2 package. When I try to use the function, I get the following error:
Error in readGDX(gdx, "f10_land", "f_land", format = "first_found") :
could not find function "readGDX"
Here are the steps I’ve followed so far:
Installed the latest version of the gdx2 package from GitHub using devtools::install_github("pik-piam/gdx2").
Verified that gdx2 is loaded, and running ls("package:gdx2") shows that the readGDX function exists in the package.
However, when calling the function like this:
gdx2::readGDX(gdx, "f10_land", "f_land", format = "first_found")
I get the error: could not find function 'readGDX'.
In addition to this, I noticed that there may be some function masking happening due to other loaded packages (dplyr, magclass, etc.), but I am not sure if this is contributing to the issue. The console also shows the following:
The following object is masked from 'package:magclass':
where
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
I suspect that the function is not being correctly invoked despite the package loading successfully. I'm not sure if this is a namespace conflict or an issue with the installation of readGDX.
I appreciate your time and look forward to your suggestions.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions