install.packages ksh error when trying to install shiny package - r

Trying to install Shiny local pacakge after downloading:
install.packages("/tmp/shiny_0.13.1.tar.gz", repos=NULL, type="source")
I get this error:
-ksh: syntax error: `(' unexpected
is the syntax right ? Please advise

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

Cannot install R packages on a Mac

I am trying to install packages (ANY!) in R on a Mac but it always gives me the same error:
Error in install.packages : type 'binary' is not supported on this platform
I have also tried using:
> install.packages("ggplot2_3.3.3.tar.gz", repos = NULL, type="source") Warning: invalid package ‘ggplot2_3.3.3.tar.gz’ Error: ERROR: no packages specified Warning in install.packages : installation of package ‘ggplot2_3.3.3.tar.gz’ had non-zero exit status
Did not have this problem before.
Can someone help me out please?
Thanks
Valentina

Permission denied error installing rpart.plot package in R

Hello when I try to install rpart.plot package in R I receive the following error
Error in install.packages : cannot open file 'C:/Users/hp/Documents/R/win-library/4.0/file220c4f062ad7/Formula/doc/Formula.pdf': Permission denied
Perhaps a dependency problem. The rpart.plot package depends on pkg:'earth' and it in turn depends on pkg:Formula. Unfortunately, the install.packages function doesn't construct a search path for this situation and simply reports an error if the second-level dependency is not present. So do this:
install.packages("Formula", dependencies=TRUE)
Install.packages("rpart.plot", dependencies=TRUE)

Is there any way to install RMongo package as its officially removed from CRAN?

I need to install RMongo to connect to my local MongoDB database. On installing RMongo I am getting this error:
Warning in install.packages :
package ‘RMongo’ is not available (for R version 3.5.3)
I also downloaded RMongo tar file and stored in R directory where all packages get installed and tried to install the package by writing this command in R environment
install.packages("C:/Users/Akash/Documents/R/win-library/3.5/RMongo_0.0.25.tar", repos = NULL, type="source")
On trying to download the package through tar file I am getting this error,
Warning: invalid package 'C:/Users/Akash/Documents/R/win-library/3.5/RMongo_0.0.25.tar'
Error: ERROR: no packages specified
In R CMD INSTALL
Warning in install.packages :
installation of package ‘C:/Users/Akash/Documents/R/win-library/3.5/RMongo_0.0.25.tar’ had non-zero exit status
Any help is appreciated
Thanks in Advance

RQuantLib OSX installation issue

followed the steps below to install QuantLib on OSX and it went smoothly:
http://quantlib.org/install/macosx.shtml
Then trying to install RQuantLib. First download the source, unzipped and executed the following command from Terminal, with the error messages below:
$ R CMD INSTALL RQuantLib
Loading required package: DBI
Loading required package: rJava
Error in .jfindClass(as.character(driverClass)[1]) : class not found
Calls: JDBC -> is.jnull -> .jfindClass
Execution halted
Tried directly in R, same issue:
> install.packages("RQuantLib")
Loading required package: DBI
Loading required package: rJava
Error in .jfindClass(as.character(driverClass)[1]) : class not found
Calls: JDBC -> is.jnull -> .jfindClass
Execution halted
Warning in install.packages :
installation of package ‘RQuantLib’ had non-zero exit status
Tried reinstalling RJDBC in R, no success either. Somehow I can't get this to work, and am stuck now.
Any help is highly appreciated, thanks.

Resources