In R, you can install packages directly from Github with simple 2-3 line of codes.
Step I : Install and load devtools package
I. Error : Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called ‘stringi’
Solution : Run "install.packages("stringi")" before running install_github command
II. Error : Error in curl::curl_fetch_memory(url, handle = handle) : Timeout was reached
Solution : Step 1. Update configuration for your proxy in the code below -
library(httr)
set_config(use_proxy(url="proxy.xxxx.com", port=80, username="user",password="password"))
How to find proxy server settings :
Important Note : If you want to build R package, you need to install Rtools along with devtools package. Rtools is not a package but an executable file.
install.packages("devtools")Step II : Install Package from GitHub
library(devtools)
install_github("tomasgreif/woe")Possible Errors while installing package from GitHub
I. Error : Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called ‘stringi’
Solution : Run "install.packages("stringi")" before running install_github command
II. Error : Error in curl::curl_fetch_memory(url, handle = handle) : Timeout was reached
Solution : Step 1. Update configuration for your proxy in the code below -
library(httr)
set_config(use_proxy(url="proxy.xxxx.com", port=80, username="user",password="password"))
Start>control panel>Network and Internet > click on Internet Options > click on connections tab then right at the bottom click on LAN settings > Check Proxy Server SettingsStep 2. Run this command - install_github("tomasgreif/woe")
Important Note : If you want to build R package, you need to install Rtools along with devtools package. Rtools is not a package but an executable file.
You can download Rtools from this link - https://cran.r-project.org/bin/windows/Rtools/ . OR
install.packages('installr')
install.Rtools()
EXCELLENT! YOU HAVE SAVED ME!
ReplyDeleteThank you so much, I needed it to begin an online course.
I'm trying to install the TStools package and I get this error mesage
ReplyDeleteError in curl::curl_fetch_disk(url, x$path, handle = handle) :
Problem with the SSL CA cert (path? access rights?)
how can I fix it?