I am unable to install "bbplot" package, I thought to install through devtools package, but it is not downloading as well. The following error appears while installing "devtools";
Warning in install.packages :
error 1 in extracting from zip file
Warning in install.packages :
cannot open compressed file 'DT/DESCRIPTION', probable reason 'No such file or directory'
Error in install.packages : cannot open the connection
I have also tried to download using the following method but no success:
path <- "https://github.com/bbc/bbplot"
install.packages(path, repos = NULL, type = "source")
The following error appears, while installing through above method:
Error in getOctD(x, offset, len) : invalid octal digit
Warning in install.packages :
installation of package ‘C:/Users/work/AppData/Local/Temp/RtmpyC6V4z/downloaded_packages/bbplot’ had non-zero exit status
For the beginning user who is not familiar with loading packages into R Studio, you will need to do the following in this order: 1) install the devtools package. 2) Restart R Studio 3) Open the devtools library 4) Use devtools to install the BBplot package 5) Run the bbplot package
install.packages("devtools") # Adds the devtools package to R Studio library
# Reboot Computer
libaray(devtools) # opens the devtools
devtools::install_github('bbc/bbplot') # Uses devtools to install bbplot package
library(bbplot) # opens bbplot
Related
I tried to install R package "heplots" in R 4.1.3 using Rstudio but I get the following error:
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/src/contrib:
cannot open destfile 'C:\Users\myuser\AppData\Local\Temp\RtmpiIlWmJ\file821048e42b13', reason 'No such file or directory'
Installing package into ‘C:/Users/myuser/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/src/contrib:
cannot open destfile 'C:\Users\myuser\AppData\Local\Temp\RtmpiIlWmJ\file8210644e40c6', reason 'No such file or directory'
Warning in install.packages :
package ‘heplots’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/4.1:
cannot open destfile 'C:\Users\myuser\AppData\Local\Temp\RtmpiIlWmJ\file8210db01a9c', reason 'No such file or directory'
This appeared when I used the install.packages function. If I download the .tar.gz file from CRAN and try to install it that way I get this message:
Installing package into ‘C:/Users/guill/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
ERROR: dependency 'car' is not available for package 'heplots'
* removing 'C:/Users/myuser/Documents/R/win-library/4.1/heplots'
Warning in install.packages :
installation of package ‘C:/Users/myuser/Downloads/heplots_1.3-9.tar.gz’ had non-zero exit status
So I thought that if I install "car" then it would work. The problem is that the same happens with car and a lot of new dependenies appear (also the imports need to be installed), and when I try to install those manually they also have their own dependencies that need installing. I surrendered after the fourth layer of dependencies. Anyone knows how it should be done or am I stuck on manual dependency hell?
I need to install the package MXNET on a Mac OS.
I have tried
install.packages("mxnet")
and get the following error
Warning in install.packages :
unable to access index for repository https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/23/src/contrib:
impossibile aprire URL 'https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/23/src/contrib/PACKAGES'
Warning in install.packages :
unable to access index for repository https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/23/src/contrib:
impossibile aprire URL 'https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/23/src/contrib/PACKAGES'
Warning in install.packages :
package ‘mxnet’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Warning in install.packages :
unable to access index for repository https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/23/bin/macosx/contrib/4.0:
impossibile aprire URL 'https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/23/bin/macosx/contrib/4.0/PACKAGES'
Online solutions do not seem to work for my version of r and I keep getting the same error message as above.
I tried specifying the repository as follows with no luck
cran <- getOption("repos")
cran["dmlc"] <- "https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/23"
options(repos = cran)
install.packages("mxnet")
Another option I tried is
install.packages("drat", repos="https://cran.rstudio.com")
drat:::addRepo("dmlc")
install.packages("mxnet")
require(devtools)
install_version("DiagrammeR", version = "0.8.1", repos = "http://cran.us.r-project.org")
require(mxnet)
This does not return an error when installing, but if I run something as easy as
mx.set.seed(0)
I get a message saying there is no function mx.set.seed
Does someone know if I can download a zip file for the package and import it manually into r, or if there is a simpler way of doing this?
Thank you
I have a package which I wrote that is deployed on a local CRAN. I built the tgz with R CMD build and deployed it to a local cran initialised with miniCRAN. Of course, this package is deployed by miniCRAN as source.
Now, in a packrat environment I have to install this package and its dependencies, but the dependencies come from CRAN. I do
> install.packages("mypackage", repos=c("file:///path/to/my/localCRAN", "https://mran.microsoft.com/snapshot/2018-08-01"), type="source")
However, this forces every package to build as source, and this fails because I don't have stuff to compile, say, dplyr or other stuff. I want to download the binaries for those.
If I issue instead
> install.packages("mypackage", repos=c("file:///path/to/my/localCRAN", "https://mran.microsoft.com/snapshot/2018-08-01"))
then install.packages tries to install also my package as binary and stops first with this error
Error in read.dcf(file = tmpf) : cannot open the connection
In addition: Warning message:
In read.dcf(file = tmpf) :
cannot open compressed file '/Users/username/my/localCRAN/bin/macosx/el-capitan/contrib/3.5/PACKAGES', probable reason 'No such file or directory'
So I created an empty PACKAGES file at that path, and now it fails with the following error
package ‘mypackage’ is available as a source package but not as a binary
Warning message:
package ‘mypackage’ is not available (as a binary package for R version 3.5.3)
How can I install my package as source, and its CRAN dependencies as binary?
I have set up an AWS and I am trying to install a package. I run the following but get an error.
> devtools::install_github("https://github.com/nwstephens/RStudioAMI.git")
Downloading GitHub repo nwstephens/RStudioAMI#master
✔ checking for file ‘/tmp/RtmpEH49ON/remotes33643b988bf8/nwstephens-RStudioAMI-8507ced/DESCRIPTION’
─ preparing ‘RStudioAMI’:
✔ checking DESCRIPTION meta-information ... OK
Warning in file(con, "r") :
cannot open file 'man': No such file or directory
ERROR
computing Rd index failed:cannot open the connection
Error in (function (command = NULL, args = character(), error_on_status = TRUE, :
System command error
Running also:
> install.packages("RStudioAMI")
Installing package into ‘/home/msmith/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘RStudioAMI’ is not available (for R version 3.4.4)
I have tried updating my R version.
> install.packages("installr")
Installing package into ‘/home/msmith/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘installr’ is not available (for R version 3.4.4)
I am not sure how I can proceed with this from here… Do you know of something I can run in the terminal to install this package?
EDIT: Using Ubuntu 18
Solved (I think)
I downloaded the package from GitHub: https://github.com/nwstephens/RStudioAMI
Uploaded this .zip to the server and then;
In R studio I created a new Project and then selected build -> Build Source Package which seemed to work.
I am using R 3.1.3 and had installed Rcplex via tar.gz file at http://cran.at.r-project.org/web/packages/Rcplex/index.html
When I load the library I get following error:
library (Rcplex)
Error in library(Rcplex) : ‘Rcplex’ is not a valid installed package
EDIT:
The package was installed by extracting the contents of the tar.gz file where other libraries are stored /installed.
Also tried installing it through the source:
install.packages ("<file path>/Rcplex_0.3-2.tar.gz", repos=NULL,type="source")
In install.packages("("<file path>//Rcplex_0.3-2.tar.gz",: installation of package ‘("<file path>/Rcplex_0.3-2.tar.gz’ had non-zero exit status
Lastly, tried via CRAN url.
install.packages ("Rcplex", repos="http://cran.us.r-project.org",type="source")
Warning: unable to access index for repository http://cran.us.r-project.org/src/contrib
Warning message: package ‘Rcplex’ is not available (for R version 3.1.3)