ck37 / varimpact

Variable importance through targeted causal inference, with Alan Hubbard
57 stars 13 forks source link

Installation issue #16

Closed saleonard closed 3 years ago

saleonard commented 3 years ago

I realize you aren't actively working on varImpact, but I'm trying to finish off a project that used it and I'm getting an error when I try to install. I've tried installing SuperLearner separately and same issue. Any thoughts on what to try?

remotes::install_github("ck37/varimpact") Downloading GitHub repo ck37/varimpact@HEAD

  • installing source package 'varimpact' ... using staged installation R ** byte-compile and prepare package for lazy loading Error: (converted from warning) package 'SuperLearner' was built under R version 4.0.5 Execution halted ERROR: lazy loading failed for package 'varimpact'
  • removing '\phs-isilon.private/phs/users/sleo/Documents/R/win-library/4.0/varimpact' Error: Failed to install 'varimpact' from GitHub: (converted from warning) installation of package ‘s:/temp/sleo/16/Rtmp2xRj7b/filebbc268f5d6a/varimpact_1.3.0-9005.tar.gz’ had non-zero exit status In addition: Warning messages: 1: In untar2(tarfile, files, list, exdir) : skipping pax global extended headers 2: In untar2(tarfile, files, list, exdir) : skipping pax global extended headers
ck37 commented 3 years ago

Hmm the main issue is this line here: "Error: (converted from warning) package 'SuperLearner' was built under R version 4.0.5". Normally R would just note that as a warning and everything would be fine, but this system is setup to convert all warnings to errors, which is why it's stopping. I believe getOption("warn") will show the value of that setting, and options(warn = 0) should disable that.

saleonard commented 3 years ago

Oh right! This happened to me once before. I had to move data to a new platform for analysis. Installing pillar separately and options(warn=-1) did the trick for me just now. Thank you!