Open ghost opened 7 years ago
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!
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`
@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
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.
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(adminpassword = ‘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