Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install from source #421

Open
fipoucat opened this issue Apr 27, 2024 · 6 comments
Open

install from source #421

fipoucat opened this issue Apr 27, 2024 · 6 comments

Comments

@fipoucat
Copy link

I am attempting to install version7 on Ubuntu 22.04 but experiencing error message:

cd input/gcamdata && Rscript -e "devtools::load_all('.')" -e "driver(write_output=FALSE, write_xml=TRUE)"
ℹ Loading gcamdata
Error in load_imports(path) :
The package "assertthat" (>= 0.2) is required.
Calls: ... load_imports -> deps_check_installed -> check_installed
Execution halted
make: *** [Makefile:5: xml] Error 1

expect hint from some with experience installing from source.

Thank you

@pkyle
Copy link
Contributor

pkyle commented Apr 28, 2024

gcamdata doesn't install R packages on your computer. There is a list of packages that should be installed, using the install.packages() function in R, in the file input/gcamdata/DESCRIPTION. The file isn't automatically updated, and as such the version numbers indicated in that file can be ignored. Still, every package listed in the "Imports" section should be installed locally. Copying here in case it's helpful.

assertthat
dplyr
methods
magrittr
tibble
tidyr
readr
data.table
rlang
stringr

@fipoucat
Copy link
Author

fipoucat commented Apr 28, 2024 via email

@pkyle
Copy link
Contributor

pkyle commented Apr 29, 2024

Right, that's because we never followed up the GCAM7 release last summer with another release that fixes this issue. I think that code didn't crash in some older versions of dplyr, for some reason, because it worked when it was tested out! This exact error is shown here: #393 (comment)
And my first reply is what I'd recommend doing here too: #393 (comment)

@fipoucat
Copy link
Author

fipoucat commented May 1, 2024 via email

@pkyle
Copy link
Contributor

pkyle commented May 1, 2024

Oh, that git remote ... command can only be executed from within a git repo. So, your working directory should be gcam-core (or one of the subdirectories). If you're working from a static release version, as opposed to a locally cloned git repository, I'm not sure that there's any simple/clean way to automatically apply (cherry-pick) these commits, but they're pretty small, and can just be done manually. Here are the two that you'll want:
pkyle@f3377fc
pkyle@1d25fbc

@fipoucat
Copy link
Author

fipoucat commented May 2, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants