Install R Package Directly From GitHub

In R, you can install packages directly from Github with simple 2-3 line of codes.

Step I : Install and load devtools package
Step II : Install Package from GitHub
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 -

set_config(use_proxy(url="", port=80, username="user",password="password"))

How to find proxy server settings :
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 Settings
Step 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 - . OR
Related Posts
Spread the Word!
About Author:
Deepanshu Bhalla

Deepanshu founded ListenData with a simple objective - Make analytics easy to understand and follow. He has over 10 years of experience in data science. During his tenure, he worked with global clients in various domains like Banking, Insurance, Private Equity, Telecom and HR.

3 Responses to "Install R Package Directly From GitHub"
    Thank you so much, I needed it to begin an online course.

  2. I'm trying to install the TStools package and I get this error mesage

    Error in curl::curl_fetch_disk(url, x$path, handle = handle) :
    Problem with the SSL CA cert (path? access rights?)

    how can I fix it?

  3. This comment has been removed by the author.


Next → ← Prev
Looks like you are using an ad blocker!

To continue reading you need to turnoff adblocker and refresh the page. We rely on advertising to help fund our site. Please whitelist us if you enjoy our content.