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

Error while running 8_AnalysingModelOutputs.Rmd in the tutorials folder #348

Closed
amnmalik opened this issue Mar 26, 2021 · 7 comments
Closed
Assignees

Comments

@amnmalik
Copy link
Contributor

image

@amnmalik amnmalik changed the title Error while running 8_AnalysingModelOutputs.Rmd Error while running 8_AnalysingModelOutputs.Rmd in the tutorials folder Mar 26, 2021
@0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q
Copy link
Member

🕵️‍♂️

# Download demonstration data
Before starting the tutorial we need to download the input data we are going to use from PIK's RSE server.
```{r}
download.file("http://rse.pik-potsdam.de/data/example/fulldata.gdx", "fulldata.gdx", mode="wb")
download.file("http://rse.pik-potsdam.de/data/example/REMIND_generic_BAU.mif", "REMIND_generic_BAU.mif")
download.file("http://rse.pik-potsdam.de/data/example/REMIND_generic_RCP20.mif", "REMIND_generic_RCP20.mif")
download.file("http://rse.pik-potsdam.de/data/example/REMIND_generic_RCP26.mif", "REMIND_generic_RCP26.mif")
download.file("http://rse.pik-potsdam.de/data/example/historical.mif", "historical.mif")
```

Did you run the notebook from the top?

@amnmalik
Copy link
Contributor Author

Yes, I did.

@0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q
Copy link
Member

So we have the same data. What does sessionInfo() return?

@amnmalik
Copy link
Contributor Author

R version 3.5.0 (2018-04-23)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 14393)

Matrix products: default

locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252
[3] LC_MONETARY=German_Germany.1252 LC_NUMERIC=C
[5] LC_TIME=German_Germany.1252

attached base packages:
[1] grid stats graphics grDevices utils datasets methods
[8] base

other attached packages:
[1] shinyresults_0.28.3 shiny_1.4.0 magclass_5.21.2

loaded via a namespace (and not attached):
[1] Rcpp_1.0.3 countrycode_1.2.0 lattice_0.20-38
[4] tidyr_1.0.2 snow_0.4-3 zoo_1.8-6
[7] rprojroot_1.3-2 assertthat_0.2.1 digest_0.6.25
[10] packrat_0.5.0 foreach_1.4.7 mime_0.7
[13] R6_2.4.1 plyr_1.8.6 backports_1.1.5
[16] evaluate_0.14 lusweave_1.46.0 httr_1.4.1
[19] ggplot2_3.3.3 pillar_1.4.6 rlang_0.4.10
[22] lazyeval_0.2.2 curl_4.2 rstudioapi_0.11
[25] data.table_1.13.0 citation_0.4.0 quitte_0.3086.0
[28] rmarkdown_2.3 desc_1.2.0 readr_1.4.0
[31] stringr_1.4.0 htmlwidgets_1.5.3 munsell_0.5.0
[34] compiler_3.5.0 httpuv_1.5.2 xfun_0.16
[37] pkgconfig_2.0.3 htmltools_0.4.0 doSNOW_1.0.18
[40] tidyselect_1.1.0 tibble_3.0.4 gridExtra_2.3
[43] codetools_0.2-16 viridisLite_0.3.0 crayon_1.3.4
[46] dplyr_1.0.2 later_1.0.0 jsonlite_1.6.1
[49] xtable_1.8-4 gtable_0.3.0 lifecycle_0.2.0
[52] magrittr_1.5 scales_1.0.0 KernSmooth_2.23-16
[55] stringi_1.4.3 reshape2_1.4.4 promises_1.1.0
[58] mip_0.126.0 ellipsis_0.3.0 generics_0.0.2
[61] vctrs_0.3.4 qualV_0.3-3 RColorBrewer_1.1-2
[64] iterators_1.0.12 tools_3.5.0 forcats_0.4.0
[67] glue_1.4.1 purrr_0.3.3 hms_0.5.2
[70] parallel_3.5.0 fastmap_1.0.1 yaml_2.2.1
[73] trafficlight_1.13.0 colorspace_1.4-1 lucode2_0.6.1
[76] plotly_4.9.1 knitr_1.29

@0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q
Copy link
Member

other attached packages:
[1] shinyresults_0.28.3 shiny_1.4.0 magclass_5.21.2

OK. I can replicate the error by downgrading magclass to 5.21.2.

But with 5.21.3 it works. So update magclass to at least that version (devtools::install_github(repo = 'pik-piam/magclass', ref = 'b546d0c')) or better the current one, and try again.

@amnmalik
Copy link
Contributor Author

Thanks a lot, Michaja. The file knits now without errors. There are some problems in how the output is displayed but better to discuss that separately. I am closing the issue.

@0UmfHxcvx5J7JoaOhFSs5mncnisTJJ6q
Copy link
Member

There are some problems in how the output is displayed but better to discuss that separately.

Ghastly. Did a #349.

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

3 participants