search for: cacheok

Displaying 20 results from an estimated 21 matches for "cacheok".

2018 Dec 04
3
patch to support custom HTTP headers in download.file() and url()
...*R_NewUrlRoutine)(const char *description, const char * const mode, SEXP headers, int method); typedef Rconnection (*R_NewSockRoutine)(const char *host, int port, int server, const char *const mode, int timeout); -typedef void * (*R_HTTPOpenRoutine)(const char *url, const char *headers, const int cacheOK); +typedef void * (*R_HTTPOpenRoutine)(const char *url, const char *agent, const char *headers, const int cacheOK); typedef int (*R_HTTPReadRoutine)(void *ctx, char *dest, int len); typedef void (*R_HTTPCloseRoutine)(void *ctx); diff --git a/src/library/base/R/connections.R b/src/library/ba...
2006 Jun 15
2
download.file() yields incomplete files with method="internal"
...first example (a small text file) and only sometimes (but without obvious pattern) with the second example, which is a binary file. > download.file("ftp://ftp.nhc.noaa.gov/pub/atcf/btk/bal012006.dat", "C:/temp/bal012006.dat", method = 'internal', mode = 'w', cacheOK = FALSE) trying URL 'ftp://ftp.nhc.noaa.gov/pub/atcf/btk/bal012006.dat' ftp data connection made, file length 5110 bytes opened URL downloaded 0 bytes Warning message: downloaded length 0 != reported length 5110 > download.file("ftp://ftp.nhc.noaa.gov/pub/atcf/aid_public/aal012006...
2004 Jan 12
1
ReadLines does not give results with urls
...to use readLines() with urls. This seems to be a problem with our proxy-server. Downloading files work with download.file() with wget but not without: > download.file(url = "http://cran.r-project.org/src/contrib/PACKAGES", destfile = "test.txt", method = "wget", cacheOK = FALSE) This works! > download.file(url = "http://cran.r-project.org/src/contrib/PACKAGES", destfile = "test.txt", cacheOK = FALSE) This does not work! For readLines() there seems not to be the possibility to use wget. So I can only read the local pages which are accessibl...
2007 May 22
1
Segfault?
...se select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... done *** caught segfault *** address 0x5f4d4550, cause 'memory not mapped' Traceback: 1: download.file(url = paste(repos, "PACKAGES.gz", sep = "/"), destfile = tmpf, method = method, cacheOK = FALSE, quiet = TRUE, mode = "wb") 2: try(download.file(url = paste(repos, "PACKAGES.gz", sep = "/"), destfile = tmpf, method = method, cacheOK = FALSE, quiet = TRUE, mode = "wb"), silent = TRUE) 3: available.packages(contriburl = contriburl, metho...
2012 Sep 17
1
download truncating large files
...E); url <- "http://cran.csiro.au/bin/windows/contrib/2.15/"; dir <- "U:\\"; ## This download being reasonable small works OK file <- "XLConnect_0.2-1.zip"; status <- .Internal(download(paste0(url, file), paste0(dir, file), quiet=FALSE, mode="wb", cacheOK=FALSE)); cat(paste("the value of status for", file, "is", status, "\n\n")); ## This big download fails - a progress indicator quickly progresses to 99% and stops file <- "XLConnectJars_0.2-0.zip"; status <- .Internal(download(paste0(url, file), paste...
2008 Nov 14
1
Problems when I try to download.file pdfs
...I only receive a blank sheets. I used the option internet2 in windows: Rgui.exe --internet2 but I recieved the same result. I use the next command: ulr2 <- "http://cran.r-project.org/doc/manuals/R-intro.pdf" download.file(url = ulr2, destfile = "D:\\users2\\r-intro.pdf",cacheOK = FALSE) Any ideas how I can resolve this problem? Thanks in advance, [[alternative HTML version deleted]]
2012 Apr 04
1
Using download.file() to grab information from a Password Protected Website
I am new to R and have been spinning my wheels on the following. *Issue:* I have a membership to a website, and I want to grab data from the website using download.file(). download.file(url, destfile, method, quiet = T, mode = "w", cacheOK = TRUE) The R Documentation is helpful. However, I have been unsuccessful in figuring out how to access the website using my username and password. Using an example, can someone show me how to embed the username and password into download.file() so that I can grab the data? Better yet, can I tel...
2011 Aug 26
1
issue with available.packages() and download.file()
...am.wisc.edu/R/", type = "win.binary")) I dug a little deeper and found the following line of code from available.packages() to be causing the problem: z <- tryCatch(download.file(url = paste(repos, "PACKAGES.gz", sep = "/"), destfile = tmpf, method = method, cacheOK = FALSE, quiet = TRUE, mode = "wb"), error = identity) The problem occurs because "PACKAGES.gz" does not exist in the repository, so my router redirects the invalid URL to a search page and some JavaScript is downloaded instead. The error is generated when R tries to read the...
2005 May 12
2
Batch mode problem: figure margins too large (code corrected for word wrap)
...ode (it will work on your R, but you need internet access through R as it will download a table from a US gov site). #Code Start download.file("http://www.cftc.gov/files/dea/history/deacot2005.zip", "c:/deacot2005.zip", "internal", quiet = FALSE, mode = "wb",cacheOK = TRUE) unzipped<-zip.file.extract("c:/annual.txt", zipname = "deacot2005.zip") #Unzip data <-read.table(unzipped, header=TRUE, sep=',') windows(height=11,width=8.5) z <- layout(matrix(c(1:8), 4,2, byrow = TRUE)) for (i in 1:8) { #loop to fill layout tbonds<...
2005 May 18
2
Why can't I download "window binary" zip packages
Hello there, I tried so many times to download windows binary zip package but it told me that I don't have the access to do so. It worked for me a few months ago. Please help me with it. Thank you Lisa Wang Msc. Princess Margaret Hospital Toronto , Canada tel: (416) 946 4501 ext.5201
2006 Aug 31
0
Data Download Probelm from Yahoo
...y table closing <-NULL #Downalod consituents since I don't have it on my comp download.file("http://www2.standardandpoors.com/spf/csv/index/sp500.csv", "Z:/BETA PROJECT/DATA DOWNLOAD FROM YAHOO/Constituents.csv", "internal", quiet = FALSE, mode = "wb",cacheOK = TRUE) constituents<-as.matrix(read.csv("Z:/BETA PROJECT/AUGUST/YEARLY WORK/MASTER Constituents.csv",header=T)) for (i in constituents[1:250,1]) { s<-yahoo.get.hist.quote(instrument = sub("\\.","\\-",i), destfile = paste(i, ".csv", sep = ""...
2009 Jul 22
0
download.file() help! setting the proxy for user /passw0rd
...have read the FAQ but unfortunately I am a newbie on R and couldnt figure out how to do it. Many thanks in advance download.file('ftp://ftp-esg.ucllnl.org/ipcc/20c3m/land/mo/pr//run1/pr_A1_1.nc', destfile="clt_A1.nc", method="wget", quiet = FALSE, mode = "w",cacheOK=TRUE) --2009-07-22 19:20:12-- ftp://ftp-esg.ucllnl.org/ipcc/20c3m/land/mo/pr//run1/pr_A1_1.nc => `clt_A1.nc' Resolving ftp-esg.ucllnl.org... 192.12.137.5 Connecting to ftp-esg.ucllnl.org|192.12.137.5|:21... connected. Logging in as anonymous ... Login incorrect. Warning messag...
2017 Jun 06
0
Error in readRDS(dest) SOLVED
...|> likely created earlier in your R session. Likely the download a few |> lines down |> |> download.file(url = paste0(repos, "/PACKAGES.rds"), |> destfile = dest, method = method, |> cacheOK = FALSE, quiet = TRUE, |> mode = "wb") |> |> 'succeeded' but created a zero-length file. |> |> You could try to troubleshoot this with something like the |> following, downloading to a temporary location |> |> dest = tempfile() |> url = "http...
2002 Jan 07
1
internet2 and proxies
gday R gurus, I've never attempted to use download.file before on my win2k machine but this version 1.4 looks exciting. However, I'm not getting something right. I've passed my R shortcut --internet2 and I can tell it's using the wininet calls because it's asking about authentication but how do I tell it my username/password? The help file only talks about user/pw for non
2006 May 09
1
Seg fault when installing package from bad repository
...t ../../../../R-2.3.0/src/main/errors.c:211 #4 0x01092e68 in Rf_warning (format=0x3 <Address 0x3 out of bounds>) at ../../../../R-2.3.0/src/main/errors.c:223 #5 0x023c39a8 in in_R_HTTPOpen (url=0x212c930 "/Library/Frameworks/R.framework/Resources/share/locale/en/LC_MESSAGES/R.mo", cacheOK=404) at ../../../../../R-2.3.0/src/modules/internet/internet.c:490 #6 0x023c3f00 in in_do_download (call=0x5f4d4553, op=0xbfff2a03, args=0x195d300, env=0x34) at ../../../../../R-2.3.0/src/modules/internet/internet.c:320 #7 0x010b6290 in do_download (call=0x18d0078, op=0x181c2a8, args=0x18c3b50, e...
2005 May 12
0
Batch mode problem: figure margins too large
...s the code (it will work on you side, but you need internet access through R as it will download a table from a US gov site) download.file("http://www.cftc.gov/files/dea/history/deacot2005.zip", "c:/deacot2005.zip", "internal", quiet = FALSE, mode = "wb",cacheOK = TRUE) unzipped<-zip.file.extract("c:/annual.txt", zipname = "deacot2005.zip") #Unzip data <-read.table(unzipped, header=TRUE, sep=',') #windows(height=11,width=8.5) z <- layout(matrix(c(1:8), 4,2, byrow = TRUE)) for (i in 1:8) { #loop to fill layou...
2005 May 12
0
RE: Batch mode problem: figure margins too large (aligned R code to the left)
...ork on you side, but you need internet access > through R as it will download a table from a US gov site) > > download.file("http://www.cftc.gov/files/dea/history/deacot2005.zip", > "c:/deacot2005.zip", > "internal", quiet = FALSE, mode = "wb",cacheOK = TRUE) > unzipped<-zip.file.extract("c:/annual.txt", zipname = "deacot2005.zip") > #Unzip > data <-read.table(unzipped, header=TRUE, sep=',') > #windows(height=11,width=8.5) > z <- layout(matrix(c(1:8), 4,2, byrow = TRUE)) > for (i in 1:8) {...
2018 Dec 20
0
R 3.5.2 is released
...vector" case fixing PR#17474, reported by Alexandre Courtiol. * With a very large number of variables terms() could segfault (PR#17480). * cut(rep(0, 7)) now works, thanks to Joey Reid and Benjamin Tyner (PR#16802). * download.file(*, method = "curl", cacheOK = FALSE) should work now on Windows, thanks to Kevin Ushey's patch in PR#17323. * duplicated(<dataframe with 'f'>) now works, too, thanks to Andreas Kersting's PR#17485; ditto for anyDuplicated(). * legend(*, cex = 1:2) now works less badly. * The pr...
2018 Dec 20
0
R 3.5.2 is released
...vector" case fixing PR#17474, reported by Alexandre Courtiol. * With a very large number of variables terms() could segfault (PR#17480). * cut(rep(0, 7)) now works, thanks to Joey Reid and Benjamin Tyner (PR#16802). * download.file(*, method = "curl", cacheOK = FALSE) should work now on Windows, thanks to Kevin Ushey's patch in PR#17323. * duplicated(<dataframe with 'f'>) now works, too, thanks to Andreas Kersting's PR#17485; ditto for anyDuplicated(). * legend(*, cex = 1:2) now works less badly. * The pr...
2011 Oct 31
0
R 2.14.0 is released
...ximate string matches as well as all substrings corresponding to parenthesized subexpressions of the given regular expression. o download.file() has an extra argument to pass additional command-line options to the non-default methods using command-line utilities. cacheOK = FALSE is now supported for method = "curl". o interaction.plot(*, type = .) now also allows type "o" or "c". o axTicks(*, log=TRUE) did sometimes give more values than the ticks in the corresponding graphics::axis(). By default, it now makes us...