Error installing FAS package from github

Following the instructions from fishR, I get the next message:

Error in function (type, msg, asError = TRUE) : couldn’t connect to host

Of course, my institution filters outgoing internet connection through a proxy, so here is some steps to overcome this issue:

## ------------------------------------------
install.packages("httr")
if (!require('devtools')) install.packages('devtools')
library(devtools)
library(httr)

## settings your proxy using 'httr' package
set_config(use_prox(url="http://proxyname.or.number",port=8080,username="youruser",password="yourpass"))
(set_config(verbose())) # check the configuration

## installing from github
devtools::install_github('FSA','droglenc')

reset_config()  # only if you want to revert the proxy configuration
## ------------------------------------------

 

Advertisements

One thought on “Error installing FAS package from github

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s