f1dataR
f1dataR copied to clipboard
It doesn´t load package name
When trying to install, it can´t load package name. This message appears: Error: package or namespace load failed for 'f1dataR'. Path argument is considered not valid. Could you help with this? Thank you!
Hi. Yes absolutely
Can you send me the exact code you're running to install with the full console output?
Thanks
Yes, here it is.
remotes::install_github("SCasanova/f1dataR") Downloading GitHub repo SCasanova/f1dataR@HEAD 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: rlang (1.0.3 -> 1.0.4) [CRAN]
5: Rcpp (1.0.8.3 -> 1.0.9) [CRAN]
6: pillar (1.7.0 -> 1.8.1) [CRAN]
7: tibble (3.1.7 -> 3.1.8) [CRAN]
Enter one or more numbers, or an empty line to skip updates: 1 rlang (1.0.3 -> 1.0.4) [CRAN] Rcpp (1.0.8.3 -> 1.0.9) [CRAN] pillar (1.7.0 -> 1.8.1) [CRAN] tibble (3.1.7 -> 3.1.8) [CRAN] Installing 4 packages: rlang, Rcpp, pillar, tibble Installing packages into ‘C:/Users/User/AppData/Local/R/win-library/4.2’ (as ‘lib’ is unspecified) trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/rlang_1.0.4.zip' Content type 'application/zip' length 1574803 bytes (1.5 MB) downloaded 1.5 MB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/Rcpp_1.0.9.zip' Content type 'application/zip' length 2842762 bytes (2.7 MB) downloaded 2.7 MB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/pillar_1.8.1.zip' Content type 'application/zip' length 689695 bytes (673 KB) downloaded 673 KB
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.2/tibble_3.1.8.zip' Content type 'application/zip' length 733126 bytes (715 KB) downloaded 715 KB
package ‘rlang’ successfully unpacked and MD5 sums checked package ‘Rcpp’ successfully unpacked and MD5 sums checked package ‘pillar’ successfully unpacked and MD5 sums checked package ‘tibble’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in C:\Users\User\AppData\Local\Temp\RtmpAFAvJb\downloaded_packages WARNING: Rtools is required to build R packages, but is not currently installed.
Please download and install Rtools 4.2 from https://cran.r-project.org/bin/windows/Rtools/ or https://www.r-project.org/nosvn/winutf8/ucrt3/.
checking for file 'C:\Users\User\AppData\Local\Temp\RtmpAFAvJb\remotes2bacc435aa\SCasanova-f1dataR-b603fe1/DESCRIPTION' ...
checking for file 'C:\Users\User\AppData\Local\Temp\RtmpAFAvJb\remotes2bacc435aa\SCasanova-f1dataR-b603fe1/DESCRIPTION' ...
✔ checking for file 'C:\Users\User\AppData\Local\Temp\RtmpAFAvJb\remotes2bacc435aa\SCasanova-f1dataR-b603fe1/DESCRIPTION' (1.9s)
─ preparing 'f1dataR': (2.8s) checking DESCRIPTION meta-information ...
checking DESCRIPTION meta-information ...
✔ checking DESCRIPTION meta-information
─ checking for LF line-endings in source and make files and shell scripts (646ms)
─ checking for empty or unneeded directories
─ building 'f1dataR_0.3.8.tar.gz'
Installing package into ‘C:/Users/User/AppData/Local/R/win-library/4.2’ (as ‘lib’ is unspecified)
- installing source package 'f1dataR' ... ** using staged installation ** R ** data *** moving datasets to lazyload DB ** byte-compile and prepare package for lazy loading Warning message: package 'reticulate' was built under R version 4.2.1 ** help *** installing help indices *** copying figures ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location Warning: package 'reticulate' was built under R version 4.2.1 Error: package or namespace load failed for 'f1dataR': .onLoad failed in loadNamespace() for 'f1dataR', details: call: path.expand(path) error: invalid 'path' argument Error: loading failed Execution halted ERROR: loading failed
- removing 'C:/Users/User/AppData/Local/R/win-library/4.2/f1dataR' Warning message: In i.p(...) : installation of package ‘C:/Users/User/AppData/Local/Temp/RtmpAFAvJb/file2bac541d641e/f1dataR_0.3.8.tar.gz’ had non-zero exit status
Ok I think I may know what the issue is. I will try to fix later today. Thanks for bringing it up
Can you also provide your R and RStudio versions please
I tried it on R versions 4.1.3, 4.2.0 and 4.2.1. I don´t use R Studio.
I don't know if it can help, but on R version 4.1.3 the error message is a little bit different.
remotes::install_github("SCasanova/f1dataR") Downloading GitHub repo SCasanova/f1dataR@HEAD Running
R CMD build
...
- checking for file 'C:\Users\User\AppData\Local\Temp\RtmpCairjD\remotes3a64277c1396\SCasanova-f1dataR-b603fe1/DESCRIPTION' ... OK
- preparing 'f1dataR':
- checking DESCRIPTION meta-information ... OK
- checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories
- building 'f1dataR_0.3.8.tar.gz' Installing package into ‘C:/Users/User/Documents/R/win-library/4.1’ (as ‘lib’ is unspecified)
- installing source package 'f1dataR' ... ** using staged installation ** R ** data *** moving datasets to lazyload DB ** byte-compile and prepare package for lazy loading Error in loadNamespace(x) : there is no package called 'memoise' Error: unable to load R code in package 'f1dataR' Execution halted ERROR: lazy loading failed for package 'f1dataR'
- removing 'C:/Users/User/Documents/R/win-library/4.1/f1dataR' Warning message: In i.p(...) : installation of package ‘C:/Users/User/AppData/Local/Temp/RtmpCairjD/file3a642cfd719a/f1dataR_0.3.8.tar.gz’ had non-zero exit status
Try now and let me know if it works please