During installation of R package on Windows I got this error:
> install.packages("C:/Users/payala/Downloads/catboost-0.9.zip", repos = NULL, type = "win.binary")
Installing package into ‘C:/Users/payala/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
cannot open compressed file 'catboost-0.9/DESCRIPTION', probable reason 'No such file or directory'
Error in install.packages : cannot open the connection
> devtools::install_url('https://github.com/catboost/catboost/releases/download/v0.9.1.1/catboost-R-Windows-0.9.1.1.tgz', args = c("--no-multiarch"))
Downloading package from url: https://github.com/catboost/catboost/releases/download/v0.9.1.1/catboost-R-Windows-0.9.1.1.tgz
√ checking for file 'C:\Users\payala\AppData\Local\Temp\RtmpMzrUAT\remotes47c83b7d3610\catboost/DESCRIPTION' ...
- preparing 'catboost':
√ checking DESCRIPTION meta-information ...
Warning: C:/Users/payala/AppData/Local/Temp/RtmpYP52Ai/Rbuild2cb417ae6fb2/catboost/man/catboost.train.Rd:56: unknown macro '\t'
Warning: C:/Users/payala/AppData/Local/Temp/RtmpYP52Ai/Rbuild2cb417ae6fb2/catboost/man/catboost.train.Rd:56: unknown macro '\t'
Warning: C:/Users/payala/AppData/Local/Temp/RtmpYP52Ai/Rbuild2cb417ae6fb2/catboost/man/catboost.train.Rd:56: unknown macro '\t'
Warning: C:/Users/payala/AppData/Local/Temp/RtmpYP52Ai/Rbuild2cb417ae6fb2/catboost/man/catboost.train.Rd:56: unknown macro '\t'
- checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories
- building 'catboost_0.9.1.1.tar.gz'
Installing package into ‘C:/Users/payala/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
* installing *source* package 'catboost' ...
** R
** inst
** byte-compile and prepare package for lazy loading
** help
Warning: C:/Users/payala/AppData/Local/Temp/RtmpeIzSOL/R.INSTALL1b246e531c9a/catboost/man/catboost.train.Rd:56: unknown macro '\t'
Warning: C:/Users/payala/AppData/Local/Temp/RtmpeIzSOL/R.INSTALL1b246e531c9a/catboost/man/catboost.train.Rd:56: unknown macro '\t'
Warning: C:/Users/payala/AppData/Local/Temp/RtmpeIzSOL/R.INSTALL1b246e531c9a/catboost/man/catboost.train.Rd:56: unknown macro '\t'
Warning: C:/Users/payala/AppData/Local/Temp/RtmpeIzSOL/R.INSTALL1b246e531c9a/catboost/man/catboost.train.Rd:56: unknown macro '\t'
*** installing help indices
converting help for package 'catboost'
finding HTML links ... done
catboost.caret html
catboost.get_feature_importance html
catboost.get_model_params html
catboost.get_object_importance html
catboost.load_model html
catboost.load_pool html
catboost.predict html
catboost.save_model html
catboost.save_pool html
catboost.shrink html
catboost.staged_predict html
catboost.train html
dim.catboost.Pool html
dimnames.catboost.Pool html
head.catboost.Pool html
print.catboost.Pool html
tail.catboost.Pool html
** building package indices
** testing if installed package can be loaded
*** arch - i386
Error : package 'catboost' is not installed for 'arch = i386'
Error: loading failed
Ejecución interrumpida
*** arch - x64
ERROR: loading failed for 'i386'
* removing 'C:/Users/payala/Documents/R/win-library/3.5/catboost'
In R CMD INSTALL
Error in i.p(...) :
(converted from warning) installation of package ‘C:/Users/payala/AppData/Local/Temp/RtmpMzrUAT/file47c832ae7113/catboost_0.9.1.1.tar.gz’ had non-zero exit status
No matter what version I try to install, I alwaays get the same error. ¿Help please?
Operating System: Windows 10
Have a look here: https://github.com/catboost/catboost/issues/538
Success! Thanks guys :)
This does it:
install.packages('devtools',dependencies = T)
library(devtools)
options(devtools.install.args = c("--no-multiarch", "--no-test-load"))
devtools::install_url('https://github.com/catboost/catboost/releases/download/v0.11.1/catboost-R-Windows-0.11.1.tgz', INSTALL_opts = c("--no-multiarch", "--no-test-load"))
I tried the above code 👍
But found error message:
`library(devtools)
options(devtools.install.args = c("--no-multiarch", "--no-test-load"))
devtools::install_url('https://github.com/catboost/catboost/releases/download/v0.11.1/catboost-R-Windows-0.11.1.tgz', INSTALL_opts = c("--no-multiarch", "--no-test-load"))`
Error Message
Downloading package from url: https://github.com/catboost/catboost/releases/download/v0.11.1/catboost-R-Windows-0.11.1.tgz
catboost/inst/libs/x64/libcatboostr.dll: truncated gzip input
tar.exe: Error exit delayed from previous errors.
Error: Does not appear to be an R package (no DESCRIPTION)
@payala-pi This actually worked also for the latest version (v0.24). Thank you!
Most helpful comment
Success! Thanks guys :)
This does it: