Troubles installing catboost in R - r

I keep getting the error message:
Warning in file(con, "r") :
cannot open file 'C:PROGRA~1RR-42~1.2/share/Rd/macros/system.Rd': No such file or directory
Error in file(con, "r") : cannot open the connection
Execution halted
Error: Failed to install 'unknown package' from URL:
! System command 'Rcmd.exe' failed
when I try to install catboost in R. I have tried following the docs regarding the installation process but can't get catboost working on R. Here's my code
Sys.setenv(RETICULATE_PYTHON="C:/Users/jasmi/AppData/Local/Programs/Python/Python311/")
library(reticulate)
library(devtools)
devtools::install_url('https://github.com/catboost/catboost/releases/download/v0.16.5/catboost-R-Windows-0.16.5.tgz')
library(catboost)
boxing <- readRDS('datafullboxingdatasetnew.RDS')
p <- import("pandas")
cat_model <- p$read_pickle("catmodelsummary.pkl")

Related

Error in Installing Keras in rstudio: ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied

I have already successfully run the following commands:
install.packages("keras")
library(keras)
However, when I am trying to install keras using "install_keras()", I get the following error:
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\\ProgramData\\Anaconda3\\Lib\\site-packages\\urllib3\\__init__.py'
Consider using the --user option or check the permissions.
Error: Error installing package(s): "\"tensorflow==2.9.*\"", "\"tensorflow-hub\"", "\"scipy\"", "\"requests\"", "\"Pillow\"", "\"h5py\"", "\"pandas\"", "\"pydot\""
In addition: Warning message:
In shell(fi, intern = intern) :
'C:\Users\coraz\AppData\Local\Temp\RtmpaENb3p\file20a82e256c80.bat' execution failed with error code 1
I have used the RStudio version 2022.07.2-576 downloaded from the official website and also RStudio version 1.1.456 which is supplied with Anaconda.
I am using Windows 11 with Anaconda 22.9.0

Error while checking the R package created

I was running the check for my package that I have created when I got this error due to some example file that has been created outside my package directory which has been created due to the vignette I have created because while checking when R was reading the vignette, it got this error and I tried to delete the folder that has been created outside my package directory but I am not able to. Here is the error that is shown while checking the package:
E checking examples ... Running examples in 'ikpack-Ex.R' failed
Warning in file(con, "r") :
cannot open file 'ikpack-Ex.Rout': Permission denied Error in file(con, "r") : cannot open the connection Execution halted
Any kind of help related to this is appreciated.

R Studio gzfile error when using library() function

I am getting an error when trying to utilize any installed packages.
Here is the code I use.
install.packages("tidyverse")
> library(tidyverse)
Error in gzfile(file, "rb") : cannot open the connection
In addition: Warning message:
In gzfile(file, "rb") :
cannot open compressed file 'C:/Users/M/Appdata/Local/R/win-library/4.2/vctrs/R/vctrs.rdx', probable reason 'No such file or directory'
Error: package or namespace load failed for ‘tidyverse’:
unable to load R code in package ‘vctrs’
I have tried the following:
restarting R Studio
re-installing R Studio
downloading the packages and putting them in wd()
tried moving the wd()
appreciate the help

Error installing tensorflow in R: /Users/emmeran/.virtualenvs/r-reticulate/bin/pip: No such file or directory

After installing the tensorflow package for R from Github, and loading with library(tensorflow), when doing install_tensorflow(), I get the error message below. I don't know how to get it to find the file or where I can even know where the file is. Thanks
install_tensorflow()
Using virtual environment '~/.virtualenvs/r-reticulate' ...
sh: /Users/emmeran/.virtualenvs/r-reticulate/bin/pip: No such file or directory
Error: Error installing package(s): 'pip'
In addition: Warning message:
In system2(pip, args) : error in running command

Installing Pandoc in Windows 7 using R

I'm trying to install Pandoc on Windows 7 from R 3.1.1 using installr package. I used the following code:
library(installr)
install.pandoc()
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") : unsupported URL scheme
How can I resolve these errors?
please run:
setInternet2(TRUE)
And then try again.

Resources