Ask Your Question
0

Warning message: In open.connection(con, "r") : unable to connect to 'cran.r-project.org' on port 80.

asked 2014-12-23 11:43:27 +0100

Angelica gravatar image

R version 3.1.2, got this error when I install a package. How can I fix this? Warning message: In open.connection(con, "r") : unable to connect to 'cran.r-project.org' on port 80.

I want to install a 'psych' package.

edit retag flag offensive close merge delete

Comments

Probably we need more information about your exact setup. Is there a firewall or something, are you in a Sage notebook server or the Sage math cloud, or a local installation? I have no trouble installing this optional R package within Sage.

kcrisman gravatar imagekcrisman ( 2014-12-24 03:43:22 +0100 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2015-03-27 14:36:14 +0100

loffenauer gravatar image

Hi- you are trying to install a package, which will download data from the Internet. Not all sites are available through sagemath cloud. If you pick a mirror that is accessible this should work so try

install.packages("psych", repos="http://cran.cs.wwu.edu/")

Make sure that you say "y" (yes) to install the package locally.

Installing package into ‘/projects/<some_id>/R/x86_64-unknown-linux-gnu-library/3.1’ (as ‘lib’ is unspecified)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2014-12-23 11:43:27 +0100

Seen: 11,614 times

Last updated: Mar 27 '15