statist7 / sitar

Growth curve analysis
13 stars 3 forks source link

Instillation difficulties #13

Open maccodenm opened 10 months ago

maccodenm commented 10 months ago

Hi,

I am sorry if this is a stupid question I am relatively new to Rstudio and github.

I have tried installing the sitar package but whenever i try to load it from the library it says : Error in library(sitar) : there is no package called ‘sitar`.

There are various errors which I have tried to remedy that appear during the instillation process. I have tried the following.

  1. Runing Rstudio as an administrator
  2. Installing the newest version of Rtools.
  3. Reinstalling dplyr and rsample.
  4. Installing from both source and cran binary.

I don't feel it is a more general error because other packages are downloading and running fine. Has anyone else experienced this or what would next steps be?

The full instillation text is below:

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/Niall Macsweeney/OneDrive/Documents/R/win-library/4.1’ (as ‘lib’ is unspecified) also installing the dependencies ‘rlang’, ‘tibble’, ‘vctrs’, ‘dplyr’, ‘rsample’

There are binary versions available but the source versions are later: binary source needs_compilation rlang 1.1.0 1.1.2 TRUE vctrs 0.6.1 0.6.4 TRUE dplyr 1.1.2 1.1.4 TRUE rsample 1.1.1 1.2.0 FALSE sitar 1.3.0 1.4.0 FALSE

Binaries will be installed trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/rlang_1.1.0.zip' Content type 'application/zip' length 1710397 bytes (1.6 MB) downloaded 1.6 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/tibble_3.2.1.zip' Content type 'application/zip' length 702025 bytes (685 KB) downloaded 685 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/vctrs_0.6.1.zip' Content type 'application/zip' length 1581321 bytes (1.5 MB) downloaded 1.5 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/dplyr_1.1.2.zip' Content type 'application/zip' length 1646641 bytes (1.6 MB) downloaded 1.6 MB

package ‘rlang’ successfully unpacked and MD5 sums checked Warning in install.packages : cannot remove prior installation of package ‘rlang’ Warning in install.packages : problem copying C:\Users\Niall Macsweeney\OneDrive\Documents\R\win-library\4.1\00LOCK\rlang\libs\x64\rlang.dll to C:\Users\Niall Macsweeney\OneDrive\Documents\R\win-library\4.1\rlang\libs\x64\rlang.dll: Permission denied Warning in install.packages : restored ‘rlang’ package ‘tibble’ successfully unpacked and MD5 sums checked Warning in install.packages : cannot remove prior installation of package ‘tibble’ Warning in install.packages : problem copying C:\Users\Niall Macsweeney\OneDrive\Documents\R\win-library\4.1\00LOCK\tibble\libs\x64\tibble.dll to C:\Users\Niall Macsweeney\OneDrive\Documents\R\win-library\4.1\tibble\libs\x64\tibble.dll: Permission denied Warning in install.packages : restored ‘tibble’ package ‘vctrs’ successfully unpacked and MD5 sums checked Warning in install.packages : cannot remove prior installation of package ‘vctrs’ Warning in install.packages : problem copying C:\Users\Niall Macsweeney\OneDrive\Documents\R\win-library\4.1\00LOCK\vctrs\libs\x64\vctrs.dll to C:\Users\Niall Macsweeney\OneDrive\Documents\R\win-library\4.1\vctrs\libs\x64\vctrs.dll: Permission denied Warning in install.packages : restored ‘vctrs’ package ‘dplyr’ successfully unpacked and MD5 sums checked Warning in install.packages : cannot remove prior installation of package ‘dplyr’ Warning in install.packages : problem copying C:\Users\Niall Macsweeney\OneDrive\Documents\R\win-library\4.1\00LOCK\dplyr\libs\x64\dplyr.dll to C:\Users\Niall Macsweeney\OneDrive\Documents\R\win-library\4.1\dplyr\libs\x64\dplyr.dll: Permission denied Warning in install.packages : restored ‘dplyr’

The downloaded binary packages are in C:\Users\Niall Macsweeney\AppData\Local\Temp\RtmpqsZXkf\downloaded_packages installing the source packages ‘rsample’, ‘sitar’

trying URL 'https://cran.rstudio.com/src/contrib/rsample_1.2.0.tar.gz' Content type 'application/x-gzip' length 328388 bytes (320 KB) downloaded 320 KB

trying URL 'https://cran.rstudio.com/src/contrib/sitar_1.4.0.tar.gz' Content type 'application/x-gzip' length 549945 bytes (537 KB) downloaded 537 KB

The downloaded source packages are in ‘C:\Users\Niall Macsweeney\AppData\Local\Temp\RtmpqsZXkf\downloaded_packages’

Any help appreciated thanks,

Niall

statist7 commented 10 months ago

Hi Niall,

I think your sitar problem is part of a wider issue with permissions. If you read through the installation text you'll see that the process is failing multiple times: rlang, vctrs and dplyr compile ok but fail to install as they can't remove the previous version, so they stay with the previous version. rsample and sitar don't need compiling, but rsample fails to load because dplyr has not been updated, so the process fails before even trying to install sitar.

How did you install R and RStudio - did you use homebrew or CRAN? I know that homebrew can mess up permissions, which looks to be your problem. Unfortunately I don't know how you go about fixing them - try some googling.

Best wishes, Tim