I am trying to get a local package to work but it depends on doMC which is only available for Mac and I don't have a Mac. Is there any way I can still make the package work? I use the following code:
install.packages("~/R/AMT/Code/CLVTools_1.0.5.tar.gz",repos=NULL,type="source")
After running the code I get the following error message:
Installing package into ‘C:/Users/alexa_000/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)ERROR: dependency 'doMC' is not available for package 'CLVTools'
* removing 'C:/Users/alexa_000/Documents/R/win-library/3.0/CLVTools'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-30~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\alexa_000\Documents\R\win-library\3.0" "C:/Users/alexa_000/Documents/R/AMT/Code/CLVTools_1.0.5.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/alexa_000/Documents/R/AMT/Code/CLVTools_1.0.5.tar.gz’ had non-zero exit status
Does anyone have any ideas how to run the package anyways?
Any kind of help highly appreciated
Based on the documentation, that package should run on any Unix system, not just OS X.
Your best bet is to install a virtual machine and put a Linux distro on it, or dual-boot your Windows PC with Linux.
More generally, if you are going to be doing a lot of data processing with open source tools like R, Linux is your friend.
Related
I am trying to install the tsDyn package on my Macbook Pro running MacOSX Catalina version 10.15.2. in RStudio (v.1.3.959), running R (v.4.0.1). I get the following error:
ERROR: compilation failed for package ‘mnormt’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/mnormt’
Warning in install.packages :
installation of package ‘mnormt’ had non-zero exit status
I tried installing 'mnormt' myself, as well as deleted all irrelevant packages manually to get rid of any possible older versions that may be interfering with the 'tsDyn' package, but nothing seems to be working.
The 'tsDyn' package seems to be installing otherwise, but I cannot call the function 'VECM' because it R states that it does not exist.
Any help would be much appreciated.
If you are using Anaconda, inside Environments search for "r-mnormt" and install from there. Also you can try inside RStudio:
install.packages("r-mnormt")
It should work now.
I've followed as many threads as I can on this to resolve, but no luck. Simply can't install R package "rgl". I have Upgraded Ubuntu server 16 to R version 3.3.1.
PuTTY X11 proxy: Unsupported authorisation protocol
Warning in rgl.init(initValue, onlyNULL) :
RGL: unable to open X11 display
Warning: 'rgl_init' failed, running with rgl.useNULL = TRUE
* DONE (rgl)
I've tried these bits of advice:
Error in installing rgl package
error: installation of package ‘rgl’ had non-zero exit status
I have X11 working fine outside R:
http://www.tomsitpro.com/articles/how-to-use-x11-forwarding,2-843.html
but still get the error above.
Thanks for any help,
S.
Ok, this seems to be solved. I was root, after exiting and using:
sudo R
install.packages("rgl")
everything was ok. so it seems you must install as sudo, not root, for everything to go in the right place.
Thanks,
S.
I checked it. Everything seems to work properly... Rscript - screen
But in "related" here I see some questions about error in installing rgl. Take a look e.g. Error in installing rgl package
I tried to install rPython under windows with install.packages("rPython"). However I am getting an error that the package does not exist.
Warning in install.packages :
package ‘rPython’ is not available (for R version 3.2.5)
In the installation doc of the package I can only find this:
WINDOWS SYSTEMS
===============
On a Windows system, the package can only be installed from source at this time. Details to come.
Is there a work-around to work with Python in R?
Try 'rPython-win' if you use windows.
rPython works in Linux.
https://github.com/cjgb/rPython-win
I want to install http://cran.r-project.org/src/contrib/Archive/mecdf/ using RStudio but when I use
> install.packages('C:\\Users\\jandre\\Desktop\\mecdf_0.6.1.tar.gz', repos=NULL, type="source")
I get this error:
Installing package into ‘C:/Users/jandre/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Warning in install.packages :
running command '"C:/Program Files/R/R-3.1.1/bin/x64/R" CMD INSTALL -l "C:\Users\jandre\Documents\R\win-library\3.1" "C:/Users/jandre/Desktop/mecdf_0.6.1.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/jandre/Desktop/mecdf_0.6.1.tar.gz’ had non-zero exit status
This occurs in every package I want to install using the tar.gz file. I'm on Win7 x64. RStudio Version 0.98.1028
Can't think of a way to fix this at the moment -- sorry -- but the R administration manual says explicitly:
Note that installing R into a directory whose path contains spaces is not supported, and at least some aspects (such as installing source packages) will not work.
I don't know why this doesn't bite people much more often, given that C:/Program Files/... seems like a relatively normal place to install things on Windows.
I would also expect that the double quotation marks around your R executable name ("C:/Program Files/R/R-3.1.1/bin/x64/R") in the system call should have protected you from this problem ... ?
I had the same error message with the installation of some packages(under Windows 10 OS with R and Rstudio).
It seems that the R software (not R Studio) is dealing with the library where package are installed.
I uninstalled R and Rstudio and installed it a path without space (ex: C:\Program\R).I tried to load the packages that previously failed and it seemed to fix the problem.
I've installed R and Rstudio on a netbook running SolusOS (Debian) and those installations seem to be working OK. However I've had no success with installing the R package ggplot2 .
I've tried the stock command from within R and in Rstudio of:
install.packages(“ggplot2”)
also:
install.packages(“ggplot2”, dependencies=TRUE)
both as user and with root privileges. But when I go to a mirror I get:
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
package 'ggplot2' is not available
I've also set up a /data/Rpackages/ directory as recommended in http://www.r-bloggers.com/installing-r-packages/ but this has also not been successful.
If anyone has advice on what else to try or indeed to how remove and reinstall R and start again I would be grateful.