[R] cannot open connection: Authorization Required
Hi, All: Is there a way in R to access a file / web site that requires permission? Consider for example the following: readLines('http://www.r-project.org/', 4) [1] "" [2] "" [3] "" [4] "The R Project for Statistical Computing" readLines(URL) # URL = web address, which I can see via manual access. Error in file(con, "r") : cannot open the connection In addition: Warning message: In file(con, "r") : cannot open: HTTP status was '401 Authorization Required' Thanks, Spencer Graves > sessionInfo() R version 2.7.2 (2008-08-25) i386-pc-mingw32 locale: LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] cannot open connection: Authorization Required
Hi, All: Is there a way in R to access a file / web site that requires permission? Consider for example the following: > readLines('http://www.r-project.org/', 4) [1] "" [2] "" [3] "" [4] "The R Project for Statistical Computing" > readLines(URL) # URL = web address, which I can see via manual access. Error in file(con, "r") : cannot open the connection In addition: Warning message: In file(con, "r") : cannot open: HTTP status was '401 Authorization Required' Thanks, Spencer Graves __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] cannot open connection: Authorization Required
Em Sex, 2008-10-03 às 11:22 -0700, Spencer Graves escreveu: > Hi, All: > > Is there a way in R to access a file / web site that requires > permission? > > Consider for example the following: > > > > readLines('http://www.r-project.org/', 4) > [1] "" > [2] "" > [3] "" > [4] "The R Project for Statistical Computing" > > > readLines(URL) # URL = web address, which I can see via manual access. > Error in file(con, "r") : cannot open the connection > In addition: Warning message: > In file(con, "r") : > cannot open: HTTP status was '401 Authorization Required' > > > Thanks, > Spencer Graves Spencer, this is a local problem in my system > > > readLines('http://www.r-project.org/') > [1] "" > > [2] "" > > [3] "" > > [4] "The R Project for Statistical Computing" > > [5] "" > > [6] " type=\"image/x-icon\">" > [7] "" > > [8] "" > > [9] "" > > [10] "" > > [11] "" > > [12] "" > > [13] "" > > [14] "" > > [15] "" > > [16] "" > > [17] "The R Project for Statistical Computing" > > [18] "" > > [19] "Your browser seems not to support frames," > > [20] "here is the contents page of the R > Project's" > [21] "website." > > [22] "" > > [23] "" > > [24] "" > > [25] "" > > [26] "" > I run R.2.7.2 in Ubuntu AMD 64 machine -- Bernardo Rangel Tura, M.D,MPH,Ph.D National Institute of Cardiology Brazil __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.