boxuancui / DataExplorer

Automate Data Exploration and Treatment
http://boxuancui.github.io/DataExplorer/
Other
512 stars 88 forks source link

Unable to install DataExplorer #151

Closed statslady closed 3 years ago

statslady commented 3 years ago

Hi, I am trying to install this package in R and here is the code that I used. library(devtools) devtools::install_github("boxuancui/DataExplorer", ref = "develop")

But this still does not work.

Here is the error message that I get:

devtools::install_github("boxuancui/DataExplorer", ref = "develop") Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : namespace ‘ellipsis’ 0.3.0 is already loaded, but >= 0.3.1 is required

Please advise.

Thanks!

boxuancui commented 3 years ago

You will need to update ‘ellipsis’ to 0.3.1 as the message suggests.

statslady commented 3 years ago

Thanks for your quick response. Yes, I have tried to do it but I am not sure what the following errors mean. I have tried SO as well but not seeing any specific resolutions for this error.

library(ellipsis) library(devtools) Loading required package: usethis devtools::install_github("boxuancui/DataExplorer", ref = "develop") Downloading GitHub repo boxuancui/DataExplorer@develop sh: 1: /usr/bin/gzip: not found sh: 1: /bin/gtar: not found sh: 1: /usr/bin/gzip: not found sh: 1: /bin/gtar: not found Error: Failed to install 'DataExplorer' from GitHub: error in running command In addition: Warning messages: 1: In system(paste(TAR, "--version >", tf, "2>&1")) : error in running command 2: In system(cmd) : error in running command 3: In utils::untar(tarfile, ...) : ‘/usr/bin/gzip -dc '/tmp/RtmpLbCjqS/file8f5f5513a1e6.tar.gz' | /bin/gtar -xf '-' -C '/tmp/RtmpLbCjqS/remotes8f5f188ceb02'’ returned error code 127 4: In system(paste(TAR, "--version >", tf, "2>&1")) : error in running command

statslady commented 3 years ago

It is looking for the gzip, gtar files but where would I find them? Thanks much for your help!

boxuancui commented 3 years ago

Could you install from the master branch please?

devtools::install_github("boxuancui/DataExplorer", ref = "master")
statslady commented 3 years ago

Hi, I still get the same message after changing the ref value.

devtools::install_github("boxuancui/DataExplorer", ref = "master") Downloading GitHub repo boxuancui/DataExplorer@master sh: 1: /usr/bin/gzip: not found sh: 1: /bin/gtar: not found sh: 1: /usr/bin/gzip: not found sh: 1: /bin/gtar: not found Error: Failed to install 'DataExplorer' from GitHub: error in running command In addition: Warning messages: 1: In system(paste(TAR, "--version >", tf, "2>&1")) : error in running command 2: In system(cmd) : error in running command 3: In utils::untar(tarfile, ...) : ‘/usr/bin/gzip -dc '/tmp/RtmpDoBtc7/file2032486ef156.tar.gz' | /bin/gtar -xf '-' -C '/tmp/RtmpDoBtc7/remotes2032345b2fa5'’ returned error code 127 4: In system(paste(TAR, "--version >", tf, "2>&1")) : error in running command

boxuancui commented 3 years ago

Hmm. Looks like something is not correctly set up here. What is your OS? Could you make sure those files are in place?

sh: 1: /usr/bin/gzip: not found
sh: 1: /bin/gtar: not found
sh: 1: /usr/bin/gzip: not found
sh: 1: /bin/gtar: not found

In addition, I just pushed a new version to master and develop that fixed a dependency problem. I don't think that fixes your problem, but just want to bring it up.

statslady commented 3 years ago

I am using Windows OS. I am trying this on my own computer. I also restarted the R session. How long does it take to download this package?

statslady commented 3 years ago

This seems to have worked finally. I had to update a few packages prior to the install and it was failing because of that. I will test some of the functionality and see if it actually worked.

Proloy2018 commented 3 years ago

Hi I followed the recommended code but could not install the package (see below). I need your advice please.

devtools::install_github("boxuancui/DataExplorer", ref = "master") Downloading GitHub repo boxuancui/DataExplorer@master These packages have more recent versions available. It is recommended to update all of them. Which would you like to update?

1: All
2: CRAN packages only
3: None
4: processx (3.4.4 -> 3.4.5 ) [CRAN] 5: isoband (0.2.2 -> 0.2.3 ) [CRAN] 6: data.table (1.13.2 -> 1.13.4) [CRAN]

Enter one or more numbers, or an empty line to skip updates:1 ps (NA -> 1.5.0 ) [CRAN] processx (3.4.4 -> 3.4.5 ) [CRAN] isoband (0.2.2 -> 0.2.3 ) [CRAN] networkD3 (NA -> 0.4 ) [CRAN] data.table (1.13.2 -> 1.13.4) [CRAN] Installing 5 packages: ps, processx, isoband, networkD3, data.table Installing packages into ‘C:/Users/VALENTINE/Documents/R/win-library/4.0’ (as ‘lib’ is unspecified) trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/ps_1.5.0.zip' Content type 'application/zip' length 763312 bytes (745 KB) downloaded 745 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/processx_3.4.5.zip' Content type 'application/zip' length 1379230 bytes (1.3 MB) downloaded 1.3 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/isoband_0.2.3.zip' Content type 'application/zip' length 3034447 bytes (2.9 MB) downloaded 2.9 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/networkD3_0.4.zip' Content type 'application/zip' length 196667 bytes (192 KB) downloaded 192 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/data.table_1.13.4.zip' Content type 'application/zip' length 2582460 bytes (2.5 MB) downloaded 2.5 MB

package ‘ps’ successfully unpacked and MD5 sums checked Error: Failed to install 'DataExplorer' from GitHub: (converted from warning) cannot remove prior installation of package ‘ps’

boxuancui commented 3 years ago

@Proloy2018 Maybe remove ps package manually and try again?

boxuancui commented 3 years ago

DataExplorer 0.8.2 is on CRAN now. You should be able to install directly from R.

statslady commented 3 years ago

Thanks! Do we need to be on a specific version of R and R Studio?

On Tue, Dec 15, 2020, 7:17 PM Boxuan Cui notifications@github.com wrote:

DataExplorer 0.8.2 is on CRAN now. You should be able to install directly from R.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/boxuancui/DataExplorer/issues/151#issuecomment-745700259, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKYP2ABOF5ZQF4QZDMWCFZLSVADEPANCNFSM4URBTZFQ .

boxuancui commented 3 years ago

@statslady You should be able any R version greater than R 3.6.0 and any compatible RStudio version.

statslady commented 3 years ago

Thank you very much! Just installed it.

On Tue, Dec 15, 2020 at 9:08 PM Boxuan Cui notifications@github.com wrote:

@statslady https://github.com/statslady You should be able any R version greater than R 3.6.0 and any compatible RStudio version.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/boxuancui/DataExplorer/issues/151#issuecomment-745733818, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKYP2AC6CKRTCNUQ2IH6GETSVAQBBANCNFSM4URBTZFQ .

Proloy2018 commented 3 years ago

Thank you very much. It worked for me too.