benmarwick / rrtools

rrtools: Tools for Writing Reproducible Research in R
Other
670 stars 85 forks source link

Package installation issue on Windows #79

Closed moldach closed 5 years ago

moldach commented 5 years ago

I get an error when trying to install this specific repo (I tried for wordcountaddin and it works).

> devtools::install_github("benmarwick/rrtools")
Downloading GitHub repo benmarwick/rrtools@master
√  checking for file 'C:\Users\Matthew\AppData\Local\Temp\RtmpSiOQXr\remotes449cbac15fc\benmarwick-rrtools-d52ebf1/DESCRIPTION' (414ms)
-  preparing 'rrtools': (427ms)
√  checking DESCRIPTION meta-information ... 
-  checking for LF line-endings in source and make files and shell scripts
-  checking for empty or unneeded directories
   Removed empty directory 'rrtools/analysis'
-  building 'rrtools_0.1.0.tar.gz'

Installing package into ‘C:/Users/Matthew/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
* installing *source* package 'rrtools' ...
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package 'rrtools'
    finding HTML links ... done
    add_dependencies_to_description         html  
    as.package                              html  
    check_dep_version                       html  
    create_compendium                       html  
    github_pat                              html  
    is.package                              html  
    package_file                            html  
    parse_deps                              html  
    use_analysis                            html  
    use_build_ignore                        html  
    use_circleci                            html  
    use_compendium                          html  
    use_dockerfile                          html  
    use_git                                 html  
    use_git_hook                            html  
    use_git_quietly                         html  
    use_github                              html  
    use_github_links                        html  
    use_readme_rmd                          html  
    use_travis                              html  
** building package indices
** installing vignettes
** testing if installed package can be loaded
*** arch - i386
Error: package or namespace load failed for 'rrtools':
 .onAttach failed in attachNamespace() for 'rrtools', details:
  call: get(name, envir = asNamespace(pkg), inherits = FALSE)
  error: object 'field' not found
Error: loading failed
Execution halted
*** arch - x64
Error: package or namespace load failed for 'rrtools':
 .onAttach failed in attachNamespace() for 'rrtools', details:
  call: get(name, envir = asNamespace(pkg), inherits = FALSE)
  error: object 'field' not found
Error: loading failed
Execution halted
ERROR: loading failed for 'i386', 'x64'
* removing 'C:/Users/Matthew/Documents/R/win-library/3.5/rrtools'
In R CMD INSTALL
Error in i.p(...) : 
  (converted from warning) installation of package ‘C:/Users/Matthew/AppData/Local/Temp/RtmpSiOQXr/file449c786c3c93/rrtools_0.1.0.tar.gz’ had non-zero exit status

Here's my environment:

sessionInfo()
R version 3.5.2 (2018-12-20)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17134)

Matrix products: default

locale:
[1] LC_COLLATE=English_Canada.1252  LC_CTYPE=English_Canada.1252    LC_MONETARY=English_Canada.1252
[4] LC_NUMERIC=C                    LC_TIME=English_Canada.1252    

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

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.1         rstudioapi_0.10    magrittr_1.5       usethis_1.4.0.9000 devtools_2.0.1    
 [6] pkgload_1.0.2      R6_2.4.0           rlang_0.3.3        tools_3.5.2        pkgbuild_1.0.3    
[11] sessioninfo_1.1.1  cli_1.1.0          withr_2.1.2        remotes_2.0.2      assertthat_0.2.1  
[16] digest_0.6.18      rprojroot_1.3-2    crayon_1.3.4       processx_3.3.0     callr_3.2.0       
[21] fs_1.2.7           ps_1.3.0           curl_3.3           testthat_2.0.1     memoise_1.1.0.9000
[26] glue_1.3.1         compiler_3.5.2     desc_1.2.0         backports_1.1.3    prettyunits_1.0.2 
benmarwick commented 5 years ago

That's an unusual error message I haven't seen before. I attempted to reproduce your problem on Windows 10 with R 3.5.3, and could not reproduce your error. The package install completed successfully. May I suggest that you update the version of R on your machine and try again? I guess there is some corruption in your local libraries.

> sessionInfo()
R version 3.5.3 (2019-03-11)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

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  
[7] base     

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.1        rstudioapi_0.10   magrittr_1.5     
 [4] usethis_1.4.0     devtools_2.0.1    pkgload_1.0.2    
 [7] R6_2.4.0          rlang_0.3.3       tools_3.5.3      
[10] pkgbuild_1.0.3    sessioninfo_1.1.1 cli_1.1.0        
[13] withr_2.1.2       remotes_2.0.2     yaml_2.2.0       
[16] assertthat_0.2.1  digest_0.6.18     rprojroot_1.3-2  
[19] crayon_1.3.4      processx_3.3.0    callr_3.2.0      
[22] fs_1.2.7          ps_1.3.0          curl_3.3         
[25] testthat_2.0.1    memoise_1.1.0     glue_1.3.1       
[28] compiler_3.5.3    desc_1.2.0        backports_1.1.3  
[31] prettyunits_1.0.2
toniher commented 5 years ago

I've found the same problem just today, this time using a Mac OS X.

> sessionInfo()
R version 3.5.3 (2019-03-11)
Platform: x86_64-apple-darwin17.7.0 (64-bit)
Running under: macOS High Sierra 10.13.6

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /usr/local/Cellar/openblas/0.3.5/lib/libopenblasp-r0.3.5.dylib

locale:
[1] ca_ES.UTF-8/ca_ES.UTF-8/ca_ES.UTF-8/C/ca_ES.UTF-8/ca_ES.UTF-8

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

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.1        rstudioapi_0.10   magrittr_1.5      usethis_1.5.0    
 [5] devtools_2.0.2    pkgload_1.0.2     R6_2.4.0          rlang_0.3.4      
 [9] tools_3.5.3       pkgbuild_1.0.3    sessioninfo_1.1.1 cli_1.1.0        
[13] withr_2.1.2       remotes_2.0.2     yaml_2.2.0        assertthat_0.2.1 
[17] digest_0.6.18     rprojroot_1.3-2   crayon_1.3.4      processx_3.3.0   
[21] callr_3.2.0       fs_1.2.7          ps_1.3.0          curl_3.3         
[25] memoise_1.1.0     glue_1.3.1        compiler_3.5.3    desc_1.2.0       
[29] backports_1.1.3   prettyunits_1.0.2
benmarwick commented 5 years ago

We've taken a look and reproduced the error. The problem seems to have been a major update to the usethis pkg, which changed the names of many functions that we depend on. I think we've fixed it now (working on OSX and Linux), would you mind to check and let us know how you go?