Issue with package installation of gganimate - r

I want to install gganimate, but as I work behind a firewall in a corporate setting, install_github is not an option as it returns:
install_github("dgrtwo/gganimate")
Error in curl::curl_fetch_disk(url, x$path, handle = handle) :
Couldn't resolve host nam
I have tried to install it mannually, but the result I get is:
install.packages("C:/Users/stefanj/Downloads/gganimate.zip", repos = NULL, type = "win.binary")
Installing package into ‘C:/Users/stefanj/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
Warning in install.packages :
cannot open compressed file 'gganimate/DESCRIPTION', probable reason 'No such file or directory'
Error in install.packages : cannot open the connection
I found a work-around for a different library (rCharts):
library(downloader)
download("https://github.com/ramnathv/rCharts/archive/master.tar.gz", "rCharts.tar.gz")
install.packages("rCharts.tar.gz", repos = NULL, type = "source")
But I can't find the tar.gz file for gganimate. I only have a zip file. Anyone knows how I can install source from a zip or where I can find the actuall tar.gz file for gganimate?
I have tried
install.packages("gganimate.zip", repos = NULL, type = "source")
but it failed.

Related

Unable to install [R] package slidify on Windows

I downloaded ramnathv-slidify-4260813.zip and copied it into C:/Users//Documents/R/win-library/3.5
On Windows 7 64bit machine
In Rstudio with Admin privileges I ran this:
install.packages("~/R/win-library/3.5/ramnathv-slidify-4260813.zip", repos = NULL, type = "win.binary")
Installing package into ‘C:/Users//Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
cannot open compressed file 'ramnathv-slidify-4260813/DESCRIPTION', probable reason 'No such file or directory'
Error in install.packages : cannot open the connection
How can I bypass the Error message above and install 'slidify' successfully on my machine?
thank you
Managed to install by first downloading 'slidify' and 'slidifyLibraries' gz files and then running: *install.packages("C:/Users/<...>/Downloads/ramnathv-slidify-v0.3.3-154-g1dd41a3.tar.gz", repos = NULL, type = "source")
install.packages("C:/Users/<...>/Downloads/slidifyLibraries-master.zip", repos = NULL, type = "win.binary") commands in RStudio
Alternatively, in RStudio this can be done via GUI: click Packages > Install Packages > in Install Packages window select Install from: package archive ... > then Browse to the location you downloaded your file to > click Install.
Thanks

unable to install caret package in R

When I try to install caret package in R I get the following error message:
utils:::menuInstallPkgs()
--- Please select a CRAN mirror for use in this session ---
Warning: failed to download mirrors file (cannot open URL 'https://cran.r-project.org/CRAN_mirrors.csv'); using local file 'C:/PROGRA~1/R/R-34~1.0/doc/CRAN_mirrors.csv'
Warning: unable to access index for repository https://rweb.crmda.ku.edu/cran/src/contrib:
cannot open URL 'https://rweb.crmda.ku.edu/cran/src/contrib/PACKAGES'
Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/src/contrib:
cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES'
Error in install.packages(NULL, .libPaths()[1L], dependencies = NA, type = type) :
no packages were specified
In addition: Warning message:
In download.file(url, destfile = f, quiet = TRUE) :
InternetOpenUrl failed:
How can I solve it?
Try any of the following methods:
Edit: changed https to http
install.packages("http://cran.r-project.org/src/contrib/caret_6.0-80.tar.gz",
repos=NULL, method="libcurl")
or
library(devtools)
install_url("http://cran.r-project.org/src/contrib/caret_6.0-80.tar.gz")

Failed to download mirror file in R programing language (version 3.5)

I facing problem to install any package in R programing language.
install.packages("nnet")
after hitting enter to run the above code, getting the following:
Installing package into ‘C:/Users/Acer/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Warning: failed to download mirrors file (cannot open URL 'https://cran.r-project.org/CRAN_mirrors.csv'); using local file 'C:/PROGRA~1/R/R-34~1.2/doc/CRAN_mirrors.csv'
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' Warning: unable to
access index for repository
https://ftp.iitm.ac.in/cran/bin/windows/contrib/3.4: cannot open URL
'https://ftp.iitm.ac.in/cran/bin/windows/contrib/3.4/PACKAGES' Warning
messages:
1: In download.file(url, destfile = f, quiet = TRUE) :
InternetOpenUrl failed: 'The connection with the server was reset'
2: package ‘nnet’ is not available (for R version 3.4.2)
I am not able to fix the problem. Can anyone help me on this issue, please?

Error in install.packages : cannot open the connection

I am trying to install a R package from zip file using code below:
install.packages("M:/packages/predictCRIS.zip", repos = NULL, type = "win.binary")
I get following error in R
Warning in install.packages :
cannot open compressed file 'predictCRIS/DESCRIPTION', probable reason 'No such file or directory'
Error in install.packages : cannot open the connection
Can someone have try to install/troubleshoot it?
link to the package in google drive:
download

rJava installation from local directory in windows

I installed R 2.11.1 and am running java 1.7.0
I downloaded the rJava source file rJava_0.8-8.zip from
http://cran.us.r-project.org/bin/windows/contrib/2.11/
and ran install.packages("rJava_0.8-8.zip",repos=NULL,type="source") in R from the directory containing the file. But I am getting the following lines as error:
Warning in install.packages("rJava_0.8-8.zip", repos = NULL, type = "source") :
argument 'lib' is missing: using 'C:\Users\Shiladitya\Documents/R/win64-library/2.11'
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) :
object 'unpackPkgZip' not found
Warning message:
In install.packages("rJava_0.8-8.zip", repos = NULL, type = "source") :
installation of package 'rJava_0.8-8.zip' had non-zero exit status
I'm being unable to install rJava the usual way by doing
install.packages('rJava', .libPaths()[1], repos="http://cran.us.r-project.org")
since that is leading to an error message like this:
Warning: unable to access index for repository http://cran.us.r-project.org/bin/windows64/contrib/2.11
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
package ‘rJava’ is not available
Please help!

Resources