tidymodels / multilevelmod

Parsnip wrappers for mixed-level and hierarchical models
https://multilevelmod.tidymodels.org/
Other
74 stars 3 forks source link

Install multilevelmod #3

Closed josefortou closed 4 years ago

josefortou commented 4 years ago

Hi,

I'm trying to install the GitHub version of multilevelmod using devtools::install_github():

devtools::install_github("tidymodels/multilevelmod")

Instead, I'm getting Error: Failed to install 'multilevelmod' from GitHub. I have the most recent version of tidymodels alreayd installed. The complete output I'm seeing is:

Downloading GitHub repo tidymodels/multilevelmod@master
√  checking for file 'C:\Users\user\AppData\Local\Temp\Rtmpwx3kfi\remotes4c846045653\tidymodels-multilevelmod-487354b/DESCRIPTION' (374ms)
-  preparing 'multilevelmod':
√  checking DESCRIPTION meta-information ... 
-  checking for LF line-endings in source and make files and shell scripts
-  checking for empty or unneeded directories
-  building 'multilevelmod_0.0.0.9000.tar.gz'

Installing package into ‘C:/Users/user/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
* installing *source* package 'multilevelmod' ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error: (converted from warning) package 'parsnip' was built under R version 4.0.2
Execution halted
ERROR: lazy loading failed for package 'multilevelmod'
* removing 'C:/Users/user/Documents/R/win-library/4.0/multilevelmod'
Error: Failed to install 'multilevelmod' from GitHub:
  (converted from warning) installation of package ‘C:/Users/user/AppData/Local/Temp/Rtmpwx3kfi/file4c8467a32ad5/multilevelmod_0.0.0.9000.tar.gz’ had non-zero exit status

Running sessionInfo() gets me:

R version 4.0.0 (2020-04-24)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252 
[2] LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

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

loaded via a namespace (and not attached):
 [1] rstudioapi_0.11   magrittr_1.5      usethis_1.6.1     devtools_2.3.0   
 [5] pkgload_1.0.2     R6_2.4.1          rlang_0.4.7       fansi_0.4.1      
 [9] tools_4.0.0       pkgbuild_1.0.8    xfun_0.14         sessioninfo_1.1.1
[13] tinytex_0.23      cli_2.0.2         withr_2.2.0       ellipsis_0.3.1   
[17] remotes_2.1.1     assertthat_0.2.1  digest_0.6.25     rprojroot_1.3-2  
[21] crayon_1.3.4      processx_3.4.2    callr_3.4.3       fs_1.4.1         
[25] ps_1.3.3          curl_4.3          testthat_2.3.2    memoise_1.1.0    
[29] glue_1.4.1        compiler_4.0.0    desc_1.2.0        backports_1.1.7  
[33] prettyunits_1.1.1

I can see that the CRAN version isn't quite ready for installing. Is there something I'm missing? Thanks!

juliasilge commented 4 years ago

Thanks for your patience with this installation question! 🙌

This can definitely happen more often on Windows, because the binary package you installed from CRAN was built on a newer version of R than what you have. Some options you have include:

Let us know if you continue to have problems. 👍

github-actions[bot] commented 3 years ago

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.