Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

admin_password: Error in open.connection #8

Open
ghost opened this issue Mar 28, 2017 · 4 comments
Open

admin_password: Error in open.connection #8

ghost opened this issue Mar 28, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Mar 28, 2017

Dear Andrea,
Thank you for your prompt responses. As per your direction. I am posting the error:
I followed all the steps and all of them worked fine but for the last one.
updateR(admin_password = ‘XXXXXXXX’)
Error in open.connection(x, “rb”) : cannot open the connection

I am using Rstudio (Version 1.0.136) and has R (version 3.1.0) on OSX10.8.5. i am a sudo user and hence I gave my sudo password in place of XXXXXs in the command above.
Please help.
Thanks,
Jayant

@AndreaCirilloAC
Copy link
Owner

thank you for opening the issue.
It seeps to be related to the connection to the Internet. Have you got any kind of limited access to the Internet due to administrators blocks ( I actually guess no since you said you are sudo)...
anyway, to be sure: could you try to run the following:

require(xml2)
page_source = "https://cran.rstudio.com/bin/macosx/"
file <- xml2::read_html(page_source)

and follow-up?
just to be sure the problem lies within the connection phase.
Really thank you for your help!

@ghost
Copy link
Author

ghost commented Mar 28, 2017

Thank you for your suggestions. I ran the above commands and got the following:
> require(xml2) Loading required package: xml2
`> page_source = "https://cran.rstudio.com/bin/macosx/"

file <- xml2::read_html(page_source)
Error in url(path) : https:// URLs are not supported

require(xml2)
page_source = "http://cran.rstudio.com/bin/macosx/"
file <- xml2::read_html(page_source)
Error in open.connection(x, "rb") : cannot open the connection`

@RobertMyles
Copy link
Contributor

@JPen Hi, I just tested the updateR() function, and it works fine for me:


trying URL 'https://cran.rstudio.com/bin/macosx/R-3.3.3.pkg'
Content type 'unknown' length 74888743 bytes (71.4 MB)
==================================================
downloaded 71.4 MB

Installing R-3.3.3...please wait
Package "R-3.3.3.pkg":
   Status: signed by a certificate trusted by Mac OS X
   Certificate Chain:
    1. Developer ID Installer: Simon Urbanek
       SHA1 fingerprint: B7 EB 39 5E 03 CF 1E 20 D1 A6 2E 9F D3 17 90 26 D8 D6 3B EF
       -----------------------------------------------------------------------------
    2. Developer ID Certification Authority
       SHA1 fingerprint: 3B 16 6C 3B 7D C4 B7 51 C9 FE 2A FA B9 13 56 41 E3 88 E1 86
       -----------------------------------------------------------------------------
    3. Apple Root CA
       SHA1 fingerprint: 61 1E 5B 66 2C 59 3A 08 FF 58 D1 4A E2 24 52 D1 98 DF 6C 60

Everything went smoothly, R was updated to R version 3.3.3 (2017-03-06) -- "Another Canoe"

Can you give us more details? You can try the devel version at my fork of Andrea's repo and see if it works: https://github.com/RobertMyles/updateR

@johnsonzhj
Copy link

I came across a similar problem using updateR, I got stuck at the last step as well.
updateR(admin_password = "XXXXX")
Error in download.file(url, file) : invalid 'destfile' argument

my R version is 3.4.1 and Rstudio is Version 1.1.423(which seems not compatible with the R version so I need to update R) and the Mac OSX version is .10.12.6.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants