First time here? Check out the FAQ!

Ask Your Question
0

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

asked 10 years ago

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.

Preview: (hide)

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 ( 10 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 10 years ago

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)

Preview: (hide)
link

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: 10 years ago

Seen: 11,656 times

Last updated: Mar 27 '15