I am trying to install a package from GitHub in support of deploying an app to shinyapps.io. If I download the package onto my machine, then it installs without issue. However, if I execute the command (in RStudio):
devtools::install_github(repo="rlmoore0/NMDeploy", subdir="NymbulCredentials")
then I get an error message: Error in (function (n) :
lazy-load database '../R/NymbulCredentials.rdb' is corrupt
This GitHub repo is public, so anyone can try running this command from within R/RStudio with devtools installed. I am on a Windows box running R 3.6.3, Win10.
Any suggestions?
I have looked at questions from other people with similar problems and based on the responses to them, I have tried:
Closing and restarting R/RStudio
Executing the command devtools::unload("NymbulCredentials")
Executing the command unloadNamespace("NymbulCredentials")
Removing the installation library the package is being installed to as referenced by .libPaths() and trying a fresh directory as the installation location.
The error still persists.
I am trying to install a time series package in R studio (hts), however, I am getting an error:
"Error in install.packages : cannot open file 'C:/Users/Salam/Documents/R/win-library/3.5/file39b01ea77002/glue/DESCRIPTION': Permission denied"
I tried turning off the firewall, the user that I am using has a full control on the folder, I also removed the check from the option "read only", running R as an administrator.
anyone has an idea?
Thanks.
When i try to search for a package or a theme i get this error message
Searching for “package” failed. connect ETIMEDOUT
xx.xx.xxx.xx:xxx
But When i try to install a package or a theme if it the searched worked without a problem i get this error message
Installing “package#ver” failed
Request for package information failed: connect ETIMEDOUT
xx.xx.xxx.xx:xxx (5 attempts) (ETIMEDOUT)
Compiler tools not found Packages that depend on modules that contain
C/C++ code will fail to install. Read here for instructions on
installing Python and Visual Studio. Run apm install --check after
installing to test compiling a native module.
I have been trying to deploy my shiny application in shiny server which i have installed on Linux VM (RHEL 6.5, 64 bit) by following the instructions given in this site
The server is started successfully but i get the following when i try to access the sample application provided as a part of the shiny server.
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/usr/lib64/R/library/Rcpp/libs/Rcpp.so':
/usr/lib64/R/library/Rcpp/libs/Rcpp.so: invalid ELF header
In addition: Warning message:
package ‘shiny’ was built under R version 3.3.0
Error: package or namespace load failed for ‘shiny’ Execution halted
I installed all the required packages without any error still i got this exception when i tried to access the sample application.
The following are the steps i followed to install shiny server.
Installed R. In my office EPEL repository is blocked since it is maintained by a third party organization. So I downloaded the rpm file for R from EPEL website and installed the same using the rpm command.
Next i downloaded the shiny package from the CRAN repository and installed the same using the following command
R CMD INSTALL shiny_0.13.2.tgz
Finally i downloaded and installed the shiny server RPM file.
The server was successfully installed and started without any errors, yet i get the above error when trying to access the application deployed in the server.
I googled a lot for this error but could not find much. Has anybody else faced this issue? Could someone help me out with this?
I found out the issue. I installed all the packages as root user but shiny server runs under a different username "shiny". In order to solve this I started an R session using the following command
sudo R
Then I installed the packages using their source, as my LINUX VM (office machine)did not have internet access. I used the following command for installing the packages from the source. First we need to untar the source and then run the following command.
require(devtools)
install('path-to-the-untared-folder')
The below link helped me in finding out the solution.
R - shiny server on Ubuntu
I'm not able to install any packages in R. I tried in all versions of R starting from 3.2.2 till 3.2.4(revised), but I get the same error. It seems like a proxy issue to me as I'm connected to my college firewall. I was able to install the packages when I'm connected to my home network. Can you please guide me to resolve this issue.?
Here are the error messages
> chooseCRANmirror()
Error in download.file(url, destfile = f, quiet = TRUE) :
cannot open URL 'https://cran.r-project.org/CRAN_mirrors.csv'
In addition: Warning message:
In download.file(url, destfile = f, quiet = TRUE) :
InternetOpenUrl failed: 'The server name or address could not be resolved'
> install.packages("ggplot2")
Installing package into ‘C:/Users/HP/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
Warning: unable to access index for repository https://cran.rstudio.com/src/contrib
Warning: unable to access index for repository
Warning: unable to access index for repository
Warning: unable to access index for repository
Warning message:
package ‘ggplot2’ is not available (for R version 3.2.2)
This is the same problem I was also facing while installing any packages. The main reason what I think is that your R session can't connect to the files path on Cran server.
What I did was just manually go to the Cran website and download the windows release for that particular package. Now unzip the files and manually paste the folder into your library folder of R.
The library folder path will be something like this:
C:\Program Files\R\R-3.2.3\library
Now go to your R console and load it with library(package name).
You can now use your package.
Simply use HTTP mirror instead of HTTPS ones.
To change mirror go to "Packages menu" -> "Set CRAN mirror" -> "(HTTP mirrors)" -> select any
Thanks for your valuable feedback guys. The solution to this problem drove me crazy. I have set my proxy settings according to my college network in MOZILLA, however, I have not set the same for IE. I guess, R downloads the packages based on IE settings, which was not configured. After setting the proxy to connect to the internet, I was able to download the packages without any issues.
Figured this out after trying all your solutions, but at last it was this silly thing that worked.
Thanks for all your time and suggestions.
you can reset and restore your internet connection (for windows and your default explorer),The problem will be solved.
To fix:
Uncheck the 'use secure download method' checkbox in Rstudio global options.
Restart internet then restart Rstudio
utils:::menuInstallPkgs()
--- Please select a CRAN mirror for use in this session ---
Warning: unable to access index for repository https://ftp.iitm.ac.in/cran/src/contrib:
cannot open URL 'https://ftp.iitm.ac.in/cran/src/contrib/PACKAGES'
Error in install.packages(NULL, .libPaths()[1L], dependencies = NA, type = type) :
no packages were specified