Open fipoucat opened 2 months ago
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
Thank you Page,
I installed the packages but was not very lucky because at one point in the
install process I have another error:
[
1] "module_energy_L202.Ccoef"
[1] "- make 0.01"
[1] "module_energy_L210.resources"
Error in mutate()
at gcamdata/R/utils-data.R:32:3:
ℹ In argument: environCost = if_else(resource == "coal" & region %in% L210.low_reg, 0, environCost)
.
Caused by error in if_else()
:
! false
must be a vector, not NULL
.
Backtrace:
▆
<named list>
)<fn>
(NULL), "false", <env>
)On Sun, Apr 28, 2024 at 7:27 AM Page Kyle @.***> wrote:
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
— Reply to this email directly, view it on GitHub https://github.com/JGCRI/gcam-core/issues/421#issuecomment-2081370871, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXY6LLBCATKJCVHACXFL2LY7SQFHAVCNFSM6AAAAABG4EM656VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBRGM3TAOBXGE . You are receiving this because you authored the thread.Message ID: @.***>
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: https://github.com/JGCRI/gcam-core/issues/393#issue-2134461031 And my first reply is what I'd recommend doing here too: https://github.com/JGCRI/gcam-core/issues/393#issuecomment-1945281914
There is an issue cloning the repository.
git remote add github_pkyle https://github.com/pkyle/gcam-core.git fatal: not a git repository (or any parent up to mount point /media/sarr) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
On Mon, Apr 29, 2024 at 3:50 PM Page Kyle @.***> wrote:
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) https://github.com/JGCRI/gcam-core/issues/393#issue-2134461031 And my first reply is what I'd recommend doing here too: #393 (comment) https://github.com/JGCRI/gcam-core/issues/393#issuecomment-1945281914
— Reply to this email directly, view it on GitHub https://github.com/JGCRI/gcam-core/issues/421#issuecomment-2083088813, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXY6LM6JFZTFVFDHZR7YJLY7ZT5DAVCNFSM6AAAAABG4EM656VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGA4DQOBRGM . You are receiving this because you authored the thread.Message ID: @.***>
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:
https://github.com/pkyle/gcam-core/commit/f3377fc2a517c6e3da12dd1036bf733e404ac627
https://github.com/pkyle/gcam-core/commit/1d25fbc585d9b7620179f1649acdb93cca564267
Well, leave it there for now, waiting another release
On Wed, May 1, 2024 at 7:16 PM Page Kyle @.***> wrote:
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: @. https://github.com/pkyle/gcam-core/commit/f3377fc2a517c6e3da12dd1036bf733e404ac627 @. https://github.com/pkyle/gcam-core/commit/1d25fbc585d9b7620179f1649acdb93cca564267
— Reply to this email directly, view it on GitHub https://github.com/JGCRI/gcam-core/issues/421#issuecomment-2088957125, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXY6LPL2O6SCWDLVCUCLJDZAE5SNAVCNFSM6AAAAABG4EM656VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBYHE2TOMJSGU . You are receiving this because you authored the thread.Message ID: @.***>
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