R studio-Install package (ggstatsplot) problem

Hello,

I recently installed package of ggstatsplot on R version 3.6.1 (2019-07-05) and am having trouble. I would greatly appreciate some guidance! Please see below on my R console output:

install.packages("ggstatsplot")
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/
Installing package into ‘C
(as ‘lib’ is unspecified)
also installing the dependency ‘broomExtra’

There is a binary version available but the source version is later:
binary source needs_compilation
broomExtra 4.0.0 4.0.2 FALSE

Try URL
Content type 'application/zip' length 3085856 bytes (2.9 MB)
downloaded 2.9 MB

package ‘ggstatsplot’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\Gerry.lin\AppData\Local\Temp\RtmpS0sgOW\downloaded_packages
installing the source package ‘broomExtra’

Try URL 'https://cran.rstudio.com/src/contrib/broomExtra_4.0.2.tar.gz'
Content type 'application/x-gzip' length 228643 bytes (223 KB)
downloaded 223 KB

  • installing source package 'broomExtra' ...
    ** package 'broomExtra' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
    namespace 'tibble' 2.1.3 is already loaded, but >= 3.0.0 is required
    Calls: ... namespaceImportFrom -> asNamespace -> loadNamespace

ERROR: lazy loading failed for package 'broomExtra'

  • removing 'C:/Users/Gerry.lin/Documents/R/win-library/3.6/broomExtra'
    Warning in install.packages :
    installation of package ‘broomExtra’ had non-zero exit status

You are been asked to update the tibble package

install.packages("tibble")
1 Like

I tried, but the message showed "Permission denied".
The R console output demonstrate as below:

install.packages("tibble")
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/
Installing package into ‘C:/Users/Gerry.lin/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
嘗試 URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/tibble_3.0.1.zip'
Content type 'application/zip' length 411693 bytes (402 KB)
downloaded 402 KB

package ‘tibble’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘tibble’
Warning in install.packages :
複製 C:\Users\Gerry.lin\Documents\R\win-library\3.6\00LOCK\tibble\libs\x64\tibble.dll 到 C:\Users\Gerry.lin\Documents\R\win-library\3.6\tibble\libs\x64\tibble.dll 時出了問題:Permission denied
Warning in install.packages :
restored ‘tibble’

The downloaded binary packages are in
C:\Users\Gerry.lin\AppData\Local\Temp\RtmpcNnxPu\downloaded_packages

To deal with this problem you can try the following:

  • Restart RStudio and try to update tibble before loading any other package, or
  • Manually delete that folder with your file browser and then try to install tibble again

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.