Search code examples
rinstallationmanual

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


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


Solution

  • 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 :)