Jump to content

Error installing package: error in upzip(zipfile): error calling zip command


Brian Pownall 2

Recommended Posts

  • 5 months later...

I have a similar problem, I am having trouble installing Dplyr library using the library manager of RStudio.

 

I am using TIBCO Enterprise Runtime for R version 5.1.0 (2020-05-20)

 

with Rstudio 1.3.1073.

 

Both are running on Windows10 via Parallels on a Macbook pro.

 

I installed RTools40 for Windows and executed this line from R:

 

writeLines('PATH="${RTOOLS40_HOME}\mingw64\bin;${PATH}"', con = "~/.TERRenviron")

 

Which seemed to work as I get this output:

 

> Sys.which("make")
                             make 
"C:\rtools40\mingw64\bin\make.exe" 

 

And I also tried using this path: C:rtools40usrbin

 

But still I get these errors when installing Dplyr:

 

The first warning claims that Rtools is not installed, but it clealy is.

 

Then there are a binch of check-dir errors that I assume that have to do with running TERR.

 

Lastly there is an error with Zip but I am not sure if this is an error on its own or connected to the previous errors.

 

 

 

> install.packages("dplyr", lib="C:/PROGRA~1/TIBCO/terrde51/SITE-L~1")

also installing the dependencies 'rlang' 'assertthat' 'fansi' 'crayon' 'glue' 'digest' 'ellipsis' 'magrittr' 'utf8' 'cli' 'vctrs' 'lifecycle' 'purrr' 'pkgconfig' 'pillar' 'tidyselect' 'tibble' 'R6' 'generics'

WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

 

https://cran.rstudio.com/bin/windows/Rtools/

Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/rlang_0.4.7.zip' to file 'C:UsersadiAppDataLocalTempTERR_03b400291/downloaded_packages/rlang_0.4.7.zip'

Downloaded 1150600 bytes

Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/assertthat_0.2.1.zip' to file 'C:UsersadiAppDataLocalTempTERR_03b400291/downloaded_packages/assertthat_0.2.1.zip'

Downloaded 54967 bytes

Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/fansi_0.4.1.zip' to file 'C:UsersadiAppDataLocalTempTERR_03b400291/downloaded_packages/fansi_0.4.1.zip'

Downloaded 223643 bytes

Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/crayon_1.3.4.zip' to file 'C:UsersadiAppDataLocalTempTERR_03b400291/downloaded_packages/crayon_1.3.4.zip'

Downloaded 749860 bytes

Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/glue_1.4.2.zip' to file 'C:UsersadiAppDataLocalTempTERR_03b400291/downloaded_packages/glue_1.4.2.zip'

Downloaded 154159 bytes

Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/digest_0.6.25.zip' to file 'C:UsersadiAppDataLocalTempTERR_03b400291/downloaded_packages/digest_0.6.25.zip'

Downloaded 249494 bytes

Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/ellipsis_0.3.1.zip' to file 'C:UsersadiAppDataLocalTempTERR_03b400291/downloaded_packages/ellipsis_0.3.1.zip'

Downloaded 46092 bytes

Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/magrittr_1.5.zip' to file 'C:UsersadiAppDataLocalTempTERR_03b400291/downloaded_packages/magrittr_1.5.zip'

Downloaded 157505 bytes

Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/utf8_1.1.4.zip' to file 'C:UsersadiAppDataLocalTempTERR_03b400291/downloaded_packages/utf8_1.1.4.zip'

Downloaded 215361 bytes

Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/cli_2.0.2.zip' to file 'C:UsersadiAppDataLocalTempTERR_03b400291/downloaded_packages/cli_2.0.2.zip'

Downloaded 398327 bytes

Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/vctrs_0.3.2.zip' to file 'C:UsersadiAppDataLocalTempTERR_03b400291/downloaded_packages/vctrs_0.3.2.zip'

Downloaded 1189233 bytes

Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/lifecycle_0.2.0.zip' to file 'C:UsersadiAppDataLocalTempTERR_03b400291/downloaded_packages/lifecycle_0.2.0.zip'

Downloaded 101644 bytes

Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/purrr_0.3.4.zip' to file 'C:UsersadiAppDataLocalTempTERR_03b400291/downloaded_packages/purrr_0.3.4.zip'

Downloaded 430770 bytes

Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/pkgconfig_2.0.3.zip' to file 'C:UsersadiAppDataLocalTempTERR_03b400291/downloaded_packages/pkgconfig_2.0.3.zip'

Downloaded 22338 bytes

Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/pillar_1.4.6.zip' to file 'C:UsersadiAppDataLocalTempTERR_03b400291/downloaded_packages/pillar_1.4.6.zip'

Downloaded 182277 bytes

Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/tidyselect_1.1.0.zip' to file 'C:UsersadiAppDataLocalTempTERR_03b400291/downloaded_packages/tidyselect_1.1.0.zip'

Downloaded 203224 bytes

Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/tibble_3.0.3.zip' to file 'C:UsersadiAppDataLocalTempTERR_03b400291/downloaded_packages/tibble_3.0.3.zip'

Downloaded 415941 bytes

Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/R6_2.4.1.zip' to file 'C:UsersadiAppDataLocalTempTERR_03b400291/downloaded_packages/R6_2.4.1.zip'

Downloaded 59336 bytes

Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/generics_0.0.2.zip' to file 'C:UsersadiAppDataLocalTempTERR_03b400291/downloaded_packages/generics_0.0.2.zip'

Downloaded 65167 bytes

Trying to download URL 'https://cloud.r-project.org/bin/windows/contrib/3.6/dplyr_1.0.2.zip' to file 'C:UsersadiAppDataLocalTempTERR_03b400291/downloaded_packages/dplyr_1.0.2.zip'

Downloaded 1528967 bytes

* installing *binary* package rlang from "C:\Users\adi\AppData\Local\Temp\TERR_03b400291\downloaded_packages\rlang_0.4.7.zip" to "C:\Program Files\TIBCO\terrde51\site-library"

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/backtrace-ver.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/DESCRIPTION.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/help/.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/help/aliases.rds.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/help/AnIndex.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/help/figures/.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/help/figures/lifecycle-archived.svg.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/help/figures/lifecycle-defunct.svg.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/help/figures/lifecycle-deprecated.svg.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/help/figures/lifecycle-experimental.svg.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/help/figures/lifecycle-maturing.svg.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/help/figures/lifecycle-questioning.svg.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/help/figures/lifecycle-retired.svg.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/help/figures/lifecycle-soft-deprecated.svg.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/help/figures/lifecycle-stable.svg.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/help/figures/lifecycle-superseded.svg.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/help/figures/rlang.png.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/help/paths.rds.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/help/rlang.rdb.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/help/rlang.rdx.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/html/.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/html/00Index.html.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/html/R.css.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/INDEX.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/libs/.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/libs/i386/.

checkdir error: cannot create ./rlang

Permission denied

unable to process rlang/libs/i386/rlang.dll.

checkdir error: cannot create ./rlang

Pe

Link to comment
Share on other sites

I have Spotfire 10.10 installed, but I havn't got to the point where I am executing the code in Spotfire.

 

I am running the code in Rstudio 1.3.1073 with  TIBCO Enterprise Runtime for R version 5.1.0 (2020-05-20).

 

I am installing packages through the packages management tab of RStudio.

 

 

 

 

 

 

Link to comment
Share on other sites

To work around the permission problems you may have to run TERR as administrator or create a new library directory that you own and use that as the 'lib' argument to install.packages().  If the library directory is not writable then tar will fail to put an files into it.

 

Some 'untar' errors, can be fixed by specifying which tar.exe to call, with

 

Sys.setenv(TAR=shortPathName(file.path(R.home("bin"), "tar.exe"))

 

before doing the installation of a binary package.  Does that help

 

For the rtools problems with source packages, instead of using RStudio's menu items, try the command line expression

 

utils::install.package("dplyr",  type="source")

 

I think you need both "C:\Rtools40\usr\bin" and the compiler/platform-specific bin directory in PATH.  The 'rtools not installed' warning is from the RStudio IDE, I think.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...