Cannot install crrri package on Mac OS - r

I'm running into the following error when trying to install the headless chrom crrri package on Mac OS using remotes::install_github('rlesur/crrri'):
Downloading GitHub repo rlesur/crrri#HEAD Running R CMD build...
checking for file ‘/private/var/folders/6q/k8llt_rd5d3cc2tgx1fy8vth0000gn/T/RtmpinLlHt/remotes2f540ee01d2/RLesur-crrri-69c54e6/DESCRIPTION’
... OK
preparing ‘crrri’:
checking DESCRIPTION meta-information ... OK
checking for LF line-endings in source and make files and shell scripts
checking for empty or unneeded directories Omitted ‘LazyData’ from DESCRIPTION
building ‘crrri_0.0.13.tar.gz’ Warning: invalid package ‘/var/folders/6q/k8llt_rd5d3cc2tgx1fy8vth0000gn/T//RtmpinLlHt/file2f549b9a34b/*
building ‘crrri_0.0.13.tar.gz’’ Error: ERROR: no packages specified
Warning message: In i.p(...) : installation of package
'/var/folders/6q/k8llt_rd5d3cc2tgx1fy8vth0000gn/T//RtmpinLlHt/file2f549b9a34b/*
building ‘crrri_0.0.13.tar.gz’' had non-zero exit status

Don't know what the issue was but used devtools::install_github instead of remotes and that worked.

Related

Errors when install_github was used for install package 'cindex' in Rstudio on windows machine

When I run the command install_github("chrchang/plink-ng", subdir="/2.0/cindex") in Rstudio, I get the following error message:
Downloading GitHub repo chrchang/plink-ng#HEAD
chrchang-plink-ng-b39d989/2.0/cindex/src/include: Can't create '\\\\?\\C:\\Users\\xxx\\AppData\\Local\\Temp\\Rtmp6PucTt\\remotes68581e00563b\\chrchang-plink-ng-b39d989\\2.0\\cindex\\src\\include'
chrchang-plink-ng-b39d989/2.0/pgenlibr/src/include: Can't create '\\\\?\\C:\\Users\\xxx\\AppData\\Local\\Temp\\Rtmp6PucTt\\remotes68581e00563b\\chrchang-plink-ng-b39d989\\2.0\\pgenlibr\\src\\include'
chrchang-plink-ng-b39d989/2.0/pgenlibr/src/libdeflate: Can't create '\\\\?\\C:\\Users\\xxx\\AppData\\Local\\Temp\\Rtmp6PucTt\\remotes68581e00563b\\chrchang-plink-ng-b39d989\\2.0\\pgenlibr\\src\\libdeflate'
chrchang-plink-ng-b39d989/2.0/pgenlibr/src/pgenlib_ffi_support.cpp: Can't create '\\\\?\\C:\\Users\\xxx\\AppData\\Local\\Temp\\Rtmp6PucTt\\remotes68581e00563b\\chrchang-plink-ng-b39d989\\2.0\\pgenlibr\\src\\pgenlib_ffi_support.cpp'
chrchang-plink-ng-b39d989/2.0/pgenlibr/src/pgenlib_ffi_support.h: Can't create '\\\\?\\C:\\Users\\xxx\\AppData\\Local\\Temp\\Rtmp6PucTt\\remotes68581e00563b\\chrchang-plink-ng-b39d989\\2.0\\pgenlibr\\src\\pgenlib_ffi_support.h'
chrchang-plink-ng-b39d989/2.0/pgenlibr/src/pvar_ffi_support.cpp: Can't create '\\\\?\\C:\\Users\\xxx\\AppData\\Local\\Temp\\Rtmp6PucTt\\remotes68581e00563b\\chrchang-plink-ng-b39d989\\2.0\\pgenlibr\\src\\pvar_ffi_support.cpp'
chrchang-plink-ng-b39d989/2.0/pgenlibr/src/pvar_ffi_support.h: Can't create '\\\\?\\C:\\Users\\xxx\\AppData\\Local\\Temp\\Rtmp6PucTt\\remotes68581e00563b\\chrchang-plink-ng-b39d989\\2.0\\pgenlibr\\src\\pvar_ffi_support.h'
chrchang-plink-ng-b39d989/2.0/pgenlibr/src/zstd: Can't create '\\\\?\\C:\\Users\\xxx\\AppData\\Local\\Temp\\Rtmp6PucTt\\remotes68581e00563b\\chrchang-plink-ng-b39d989\\2.0\\pgenlibr\\src\\zstd'
tar.exe: Error exit delayed from previous errors.
√ checking for file 'C:\Users\xxx\AppData\Local\Temp\Rtmp6PucTt\remotes68581e00563b\chrchang-plink-ng-b39d989\2.0\cindex/DESCRIPTION' ...
- preparing 'cindex':
√ checking DESCRIPTION meta-information ...
- cleaning src
- checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories
- building 'cindex_0.2.tar.gz'
Installing package into ‘C:/Users/xxx/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
* installing *source* package 'cindex' ...
** using staged installation
** libs
*** arch - i386
make: *** No rule to make target 'include/plink2_base.o', needed by 'cindex.dll'. Stop.
ERROR: compilation failed for package 'cindex'
* removing 'C:/Users/xxx/Documents/R/win-library/4.0/cindex'
错误: Failed to install 'cindex' from GitHub:
(由警告转换成)installation of package ‘C:/Users/xxx/AppData/Local/Temp/Rtmp6PucTt/file685860d615b0/cindex_0.2.tar.gz’ had non-zero exit status
此外: Warning message:
In utils::untar(tarfile, ...) :
‘tar.exe -xf "C:\Users\xxx\AppData\Local\Temp\Rtmp6PucTt\file68583f07ec.tar.gz" -C "C:/Users/xxx/AppData/Local/Temp/Rtmp6PucTt/remotes68581e00563b"’ returned error code 1*
install_github() on Windows 10 R does not seem to handle Git symlinks correctly. A workaround is to clone the repository and manually expand the symlinks in your copy.

What is the error in "install_github" for using an R Package from github

I am trying to download and use an R Package provided on github (SvenKlaassen/GGMtest). But I receive an error causing the process to stop. I am using windows.This is the error message:
Error: Failed to install 'GGMtest' from GitHub:
(converted from warning) installation of package
'C:/Users/MYUSER/AppData/Local/Temp/RtmpeOALa5/file7d43f52565e/GGMtest_0.1.0.tar.gz' had non-zero
exit status
This seems to be a somewhat common message when searching for the error but I cannot figure out how work this out. The full message is this:
install_github("SvenKlaassen/GGMtest")
Downloading GitHub repo SvenKlaassen/GGMtest#HEAD
During startup - Warning message:
Setting LC_CTYPE= failed
√ checking for file 'C:\Users\MYUSER\AppData\Local\Temp\RtmpeOALa5\remotes7d45119371d\SvenKlaassen-
GGMtest-ddc314d/DESCRIPTION' ...
- preparing 'GGMtest':
√ checking DESCRIPTION meta-information ...
- checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories
- building 'GGMtest_0.1.0.tar.gz'
Error: (converted from warning) Setting LC_CTYPE= failed
Execution halted
Error: Failed to install 'GGMtest' from GitHub:
(converted from warning) installation of package
'C:/Users/MYUSER/AppData/Local/Temp/RtmpeOALa5/file7d43f52565e/GGMtest_0.1.0.tar.gz' had non-zero
exit status
Maybe someone can help!

R: unable to install gbm.auto package from Github

I'm trying to install the package gbm.auto via github, but the download does not seem to work. How can I solve this? I am working on a windows 10 Pro (R version 3.6.1, Rstudio version 1.2.5042). This is the error I get:
remotes::install_github("SimonDedman/gbm.auto")
Downloading GitHub repo SimonDedman/gbm.auto#master
√ checking for file 'C:\Users\Ststrubb\AppData\Local\Temp\RtmpOcwGGZ\remotes1d5c7c774f2a\SimonDedman-gbm.auto-96328bf/DESCRIPTION' ...
- preparing 'gbm.auto': (359ms)
√ checking DESCRIPTION meta-information ...
- checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories
- looking to see if a 'data/datalist' file should be added
- building 'gbm.auto_1.2.4.tar.gz'
Installing package into ‘C:/Users/Ststrubb/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
* installing *source* package 'gbm.auto' ...
** using staged installation
** R
Error in parse(outFile) :
C:/Users/Ststrubb/AppData/Local/Temp/RtmpALsbRt/R.INSTALL7320575e5a03/gbm.auto/R/gbm.valuemap.R:462:0: unexpected end of input
460: beep(8)} # notify user & close function
461:
^
ERROR: unable to collate and parse R files for package 'gbm.auto'
* removing 'C:/Users/***/Documents/R/win-library/3.6/gbm.auto'
Error: Failed to install 'gbm.auto' from GitHub:
(converted from warning) installation of package ‘C:/Users/***/AppData/Local/Temp/RtmpOcwGGZ/file1d5c40b85311/gbm.auto_1.2.4.tar.gz’ had non-zero exit status
I get the same error when I used
githubinstall or remotes::install_github.

Unable to load ggplot2 package

I was trying to install emmeans using install_github and it required that I install rtools and after attempting this I not only was unsuccessful in installing emmeans with the following code:
devtools::install_github("rvlenth/emmeans", dependencies = TRUE, build_opts = "")
Received this:
Error: Failed to install 'emmeans' from GitHub: System command 'Rcmd.exe' failed, exit status: 1, stdout + stderr:
checking for file 'C:\Users\jmb827\AppData\Local\Temp\RtmpYrGInN\remotes387066d354e0\rvlenth-emmeans-32bf444/DESCRIPTION' ... OK
preparing 'emmeans':
checking DESCRIPTION meta-information ... OK
checking for LF line-endings in source and make files and shell scripts
checking for empty or unneeded directories
looking to see if a 'data/datalist' file should be added
* building 'emmeans_1.4.5.009003.tar.gz'
ERROR
cannot change to directory ''
but now can not load ggplot2 among other packages with error:
package �ggplot2� was built under R version 3.6.3Error: package or namespace load failed for ‘ggplot2’:
package ‘tibble’ does not have a namespace

I can’t download the package BMR from github in R, it gives an error:

> library(devtools)
Download required package: usethis
Warning messages:
1: package ‘devtools' was built under R version 3.5.3
2: package ‘usethis’ was built under R version 3.5.3
> install_github("kthohr/BMR",force=TRUE)
Downloading GitHub repo kthohr/BMR#master
√ checking for file 'C:\Users\Asus\AppData\Local\Temp\RtmpqkzAt0\remotes4b403a3737ba\kthohr-BMR-63565cd/DESCRIPTION' ...
- preparing 'BMR': (3.1s)
√ checking DESCRIPTION meta-information ...
- cleaning src
- checking for LF line-endings in source and make files and shell scripts (1.1s)
- checking for empty or unneeded directories (362ms)
- looking to see if a 'data/datalist' file should be added
- building 'BMR_0.11.0.tar.gz'
Installing package into ‘C:/Users/Asus/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
* installing *source* package 'BMR' ...
** libs
Ошибка: (конвертировано из предупреждения) this package has a non-empty 'configure.win' file,
so building only the main architecture
* removing 'C:/Users/Asus/Documents/R/win-library/3.5/BMR'
In R CMD INSTALL
Error: Failed to install 'BMR' from GitHub:
(converted from warning) installation of package ‘C:/Users/Asus/AppData/Local/Temp/RtmpqkzAt0/file4b4017187131/BMR_0.11.0.tar.gz’ had non-zero exit status
Try this:
install.packages("devtools")
library(devtools)
install_github("kthohr/BMR",force=TRUE)
Please install Rtolls direct its path on R. Then use the following codes.
install.packages("devtools")
library(devtools)
install_github("kthohr/BMR")
library(BMR)
find_rtools()
This to check if rtolls is installed.
If still not working please reinstall R, Rstudio and Rtools then again try running it. It worked in my case.
To check if the package is installed try opening on of the data sets included in the package.
data(BMRMCData)

Resources