unable to install gganimate package from Github, both automatically and manually - r

I am currently trying to install the gganimate package but seem unable to.
I am running Win 10, Rx64 3.3.0 and Rstudio 0.99.896;
the following command:
devtools::install_github("dgrtwo/gganimate")
will throw this error:
Downloading GitHub repo dgrtwo/gganimate#master
from URL https://api.github.com/repos/dgrtwo/gganimate/zipball/master
Error in curl::curl_fetch_memory(url, handle = handle) :
Problem with the SSL CA cert (path? access rights?)
So after a few hours of despair, I decided to try and install the package manually. I followed this link:
here
the following command:
install.packages(pkgs = "C:/Users/Superzucca/Desktop/gganimate-master.zip", repos = NULL)
results in:
Installing package into ‘C:/Users/Superzucca/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
but then when I call:
library("gganimate-master") #### -> as suggsted by R itself!!
this error is thrown:
Error in library("gganimate-master") : there is no package called ‘gganimate-master’
please, help. I don't have any problems installing other pkgs and honestly don't know what else to try.
Thank you in advance,
Superzucca

Try out this. It's working for me.
library(devtools)
library(RCurl)
library(httr)
set_config( config( ssl_verifypeer = 0L ) )
devtools::install_github("dgrtwo/gganimate")

Figured out the problem, updating with an answer if anybody in the future might need it.
this LINK to another SO question partially solved my problem;
I also had to add R, Rstudio and the library folder to my AntiVirus' excption list, and of course running as administrator :)

I had the same problem like you but I was successful at last.
Generally, you have to deal with two issues: first, connecting to github; second, installing both Rcpp and gganimate.
library(devtools)
library(RCurl)
library(httr)
set_config( config( ssl_verifypeer = 0L ) )
devtools::install_github("RcppCore/Rcpp")
devtools::install_github("dgrtwo/gganimate")

Try the following:
install.packages("gganimate")
Note: This will depend on the version of R installed and if you are downloading from the Cran site.

Related

Trying to install library 'quantmod' in R

I'm trying to download library 'quantmod' in R:
install.packages("quantmod")
console:
The downloaded source packages are in
‘/tmp/RtmpwSKGIl/downloaded_packages’
then:
library("quantmod", lib.loc="/tmp/RtmpwSKGIl/downloaded_packages")
console:
Error in library("quantmod", lib.loc = "/tmp/RtmpwSKGIl/downloaded_packages") :
there is no package called ‘quantmod’
What is the problem?
I get no problem when I try to load this package.Have you tried to provide R the full name path to your package file directory ?C:/Users/...Is your R version up to date ? Try to check if you have the latest, I tried and it worked with :
R 3.3.3
If you are a Windows or MAC user you might want to force the download of the package from source to binary, this can be done by setting the right options in the install.packages command:
options(install.packages.check.source = "no")
https://stat.ethz.ch/R-manual/R-devel/library/utils/html/install.packages.html
I guess I am a year late, but just got out of this situation by installing the Package from R (instead of RStudio) by changing the CRAN.
You can then run library(quantmod) in Rstudio. Hope this works(worked?) for you too.
I am ready to go now!

Error using install_github for statsr package

I'm trying to install the companion R package for a Coursera course, with the following commands:
library(devtools)
install_github("StatsWithR/statsr")
Error in curl::curl_fetch_disk(url, x$path, handle = handle) :
Couldn't resolve host name
Bet the error is due to the firewall, because at home (where I have no firewall, but exactly the same versions of R and RStudio) I can install flawlessly. Is it possible to fix it? Otherwise, since I've been able to download the package from Github on my pc, how do I install the package manually?
Please change you DNS to public one.
You can try Google DNS (8.8.8.8 and 8.8.4.4) .
It worked fine for me.
Click here to see how to set public DNS
to solve this problem you have to install these packages which worked for me.
install.packages("devtools")
install.packages("dplyr")
install.packages("rmarkdown")
install.packages("ggplot2")
install.packages("broom")
install.packages("gridExtra")
install.packages("shiny")
install.packages("cubature")
library(devtools)
install_github("StatsWithR/statsr")
or use this
install.packages(data.table)
devtools::install_github("arunsrinivasan/cran.stats")
you can try to install Rtools first and then run the commands.
https://cran.r-project.org/bin/windows/Rtools/

Timeout R package installation from Github

I'm trying to install a package from github for R with devtools package.
But I'm encountering Timeout error from curl each time!
install_github('ramhiser/datamicroarray')
Error in curl::curl_fetch_disk(url, x$path, handle = handle) :
Timeout was reached
Any Idea why this happens? Any help will be appreciated.
When I want to download this package it also takes long to get a connection but in the end it works as expected. Another possibility is to download the zip file and then install it.
To install the package after downloading, the following code works:
install.packages("/address/to/zip-package", repos = NULL, type="source")
and write the address of the downloaded package in place of /address/to/zip-package, or use RStudio and Packages -> Install.

Unable to install packages in R console

I am getting the following error when installing packages in R , can anyone please provide me a solution for this? I have tried the solutions posted on other posts but none of it has helped.
install.packages("ggplot2")
--- 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');
You can try
install.packages('ggplot2', repos = 'http://cran.us.r-project.org')

package ‘RHTMLForms’ is not available (for R version 3.2.3) - tried most online suggestions

I need to install RHTMLForms.
Based on suggestions elsewhere, so far I tried:
manually specifying repo: install.packages("RHTMLForms", repos = "http://www.omegahat.org/R", type = "source")
mentioning method, both "curl", "wget"
running : options(download.file.method = "wget") before install.packages
using R from terminal
Nothing seems to work. Will somebody please help to suggest what might be wrong?
If possibly the repo is outdated (here, omegahat.org) how to find other way to download this package?
What about using devtools?
if(!require("devtools"))
install.packages("devtools")
devtools::install_github("omegahat/RHTMLForms")
This works fine for me!

Resources