Displaying 20 results from an estimated 185 matches for "destfile".
Did you mean:
testfile
2008 Mar 31
1
download.file error
Dear all,
I am looking for a way to work out if a file on the internet exists before attempting to download it using the function download.file(). For example,
using a url that does not exist
url <- "http://finance.yahoo.com/ftse.csv"
destfile <- tempfile()
download.file(url = url, destfile = destfile)
# gives the following response ...
trying URL 'http://finance.yahoo.com/ftse.csv'
Error in download.file(url = url, destfile = destfile) :
cannot open URL 'http://finance.yahoo.com/ftse.csv'
In addition: Warning mes...
2015 Jan 23
0
issue with update.packages()
...ttp://bioconductor.org/packages/3.1/bioc
Update (y/N/c)? y
also installing the dependencies ?IRanges?, ?BiocGenerics?, ?Biobase?, ?GenomeInfoDb?, ?DBI?, ?RSQLite?, ?S4Vectors?
trying URL 'http://bioconductor.org/packages/3.1/bioc/src/contrib/IRanges_2.1.35.tgz'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'http://bioconductor.org/packages/3.1/bioc/src/contrib/IRanges_2.1.35.tgz'
In addition: Warning message:
In download.file(url, destfile, method, mode = "wb", ...) :
cannot open: HTTP status was '404 Not Found'
War...
2019 Jan 02
6
[Bug 13735] New: Synchronize files when the sending side has newer change times while modification times and sizes are identical on both sides
...while forcibly preserving a specific mtime.
To the best of my knowledge, rsync does not have any option to transfer these
files in an efficient manner.
I illustrate the issue below:
# Create two different files with same size
echo 'new content' > srcfile
echo 'old content' > destfile
# Set identical mtime for both files: Update srcfile's mtime to match
destfile's mtime
touch -mr destfile srcfile
# At this point, srcfile and destfile have:
# - identical size
# - identical mtime
# - different content
# - srcfile's ctime is newer than destfile's ctime
# rsync ex...
2010 Mar 17
0
In readGDAL(destfile, silent = TRUE) : GeoTransform values not available
Dear Ruser,
I am trying to use the map library. But I have been problem the follow
message.
Warning message:
*In readGDAL(destfile, silent = TRUE) : GeoTransform values not available
*
library(rgdal)
library(RgoogleMaps)
> GetMap(markers =
'40.702147,-74.015794,blues%7C40.711614,-74.012318,greeng%7C40.718217,-73.998284,redc',
destfile = "MyTile1.png");
Read 1 item
[1]
"40.702147,-74.015794,blues%7C...
2010 May 13
3
R cannot access the web?
...ying to install package -
GenABEL - it has now become clear that R is not able to connect to the net.
Below are a couple of things I've tried with the resulting errors
I am running R 2.6.2 on Linux e15 X86
How can I fix this? Thank you!
1) download.file("http://www.nytimes.com", destfile<-tempfile())
Error:
trying URL 'http://www.nytimes.com'
Error in download.file("http://www.nytimes.com", destfile <- tempfile()) :
cannot open URL 'http://www.nytimes.com'
In addition: Warning message:
In download.file("http://www.nytimes.com", destfile...
2010 Mar 19
1
error in map library
Dear Ruser,
>
>
> I am trying to use the map library. But unfortunately I am facing the
> warning message above:
> Warning message:
> *In readGDAL(destfile, silent = TRUE) : GeoTransform values not available
> *
I want to use that library because I intend to plot some station in a
Brazilian map.
I really appreciate any help.
>
>
===here what I was testing========
> library(rgdal)
>
> library(RgoogleMaps)
> > GetMap(markers...
2011 Nov 08
2
download.file
...lue.
Now it exits when there is an error or file not present. How can I use
"try" and "if" condition together so that the program does not exit on
error and delete the created file in destination folder.
for (i in 1: 100)
{
fileUrl = ucscfilenames[i]
if (download.file(fileUrl, destFile, 'wget' , quiet = TRUE) != 0)
{
file.remove(destFile)
}
}
thanks
--
-------------
Mary Kindall
Yorktown Heights, NY
USA
[[alternative HTML version deleted]]
2008 Oct 01
1
changing 'https' to 'http' when using download.file(), any side effects or just use RCurl?
...R-Help,
>From reading the help file, it is my understanding the the download.file()
function does not support HTTPS connections. So therefore, understandably,
the follow produces an error:
### R Code
> url <- "https://stat.ethz.ch/pipermail/r-help/2008-October/thread.html"
> destfile <- "//PFO-SBS001/Redirected/tonyb/Desktop/R_web_test/tmp.txt"
> download.file(url, destfile)
Error in download.file(url, destfile) : unsupported URL scheme
My question is: What about if i remove the 's' from the 'https' url? The
download.file() function seems to now...
2016 Feb 18
1
default destfile in download.file()
A nice default value for the `destfile` argument in download.file() would
be `basename(url)` i.e. the name of the downloaded file. This would
correspond to default behavior in many other web/ftp clients and makes code
slightly more concise:
download.file("https://svn.r-project.org/R/trunk/doc/CRAN_mirrors.csv")
mirrors &l...
2008 Sep 04
1
Error with update.packages()
...4-06.tgz'
Content type 'application/x-gzip' length 365965 bytes (357 Kb)
opened URL
==========================================
downloaded 304 Kb
trying URL 'http://www.ibiblio.org/pub/languages/R/CRAN/bin/macosx/universal/contrib/2.7/spam_0.15-0.tgz'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'http://www.ibiblio.org/pub/languages/R/CRAN/bin/macosx/universal/contrib/2.7/spam_0.15-0.tgz'
In addition: Warning messages:
1: In download.file(url, destfile, method, mode = "wb", ...) :
downloaded length 312279 != rep...
2007 Mar 08
1
cant fully capture child output
...est #{my_project}`
tmp << "youngest got"
results[:txt] = tmp
rev = "_rev#{youngest.chomp!}"
fname = [
"backup_#{repo}_",
Time.now.strftime(''%Y-%m-%d''),
"#{rev}",
''.gz''
]
destfile = "#{DIRS[:backups]}/#{fname.join}"
tmp << "destfile #{destfile}"
results[:txt] = tmp
FileUtils.mv(temp_file, destfile)
tmp << "backup file created at #{Time.now}"
results[:txt] = tmp
end
My previous messages shows taht all data befor...
2011 Sep 16
1
download files using ftp: avoid error
...g to download a large number of files from some website. I am
using the following script.
files2down = c('aaa', 'bbb', ................)
for (i in 1: len)
{
print(paste('downloading file', i, ' of total ', len));
url = paste(urlPrefix, files2down[i], sep='')
destfile = paste (dest, 'inDir', files2down[i], sep='/' )
download.file(url, destfile, quiet = FALSE)
}
It works fine as long as the file is present. When the file is not present,
it exit from loop. Is there a way to continue looping if error occurs.
Thanks
--
-------------
Mary Kindall...
2006 Jan 09
1
Saving an upload
...#upload_dir = File.expand_path(UPLOAD_PATH) +
"/#{item.class}/#{item.id}/"
upload_dir = File.expand_path(UPLOAD_PATH) +
"/#{@type}/#{@parent_id}/"
if !File.exists? upload_dir
Dir.mkdir upload_dir
end
# Save the file to /films/123/foo.jpg
destfile = "#{upload_dir}/#{filename}"
p destfile
logger.debug "saving ''#{destfile}''"
FileUtils.copy @temp_file.local_path, destfile
#assert File.exists?(destfile), "File upload failed"
end
end
def uploaded_file=(incoming_file...
2013 Apr 28
2
unsupported url scheme
fileUrl <- "https://data.baltimorecity.gov/api/views/dz54-2aru/rows.csv?accessType=DOWNLOAD"download.file(fileUrl,destfile="./data/Cameras.csv",method="curl") I tried it after installing package "RCurl" but it give error message: Error in download.file(fileUrl, destfile = "Cameras.csv") :
unsupported URL schemeI can you help me to solve this problem. JAWAD HUSSAIN ASHRAF...
2012 May 16
3
install ggplot2 package
...ibrary'
(as 'lib' is unspecified)
also installing the dependency 'scales'
trying URL
'http://cran.case.edu/bin/windows/contrib/2.14/scales_0.2.0.zip'
Warning in install.packages :
cannot open: HTTP status was '404 Not Found'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL
'http://cran.case.edu/bin/windows/contrib/2.14/scales_0.2.0.zip'
Warning in install.packages :
download of package 'scales' failed
trying URL
'http://cran.case.edu/bin/windows/contrib/2.14/ggplot2_0.9.0.zip'
Wa...
2008 Aug 13
1
problems with packages tseries and robustbase
...p.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> utils:::menuInstallPkgs()
--- Please select a CRAN mirror for use in this session ---
trying URL
'http://cran.uk.r-project.org/bin/windows/contrib/2.7/robustbase_0.2-8.zip'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL
'http://cran.uk.r-project.org/bin/windows/contrib/2.7/robustbase_0.2-8.zip'
In addition: Warning message:
In download.file(url, destfile, method, mode = "wb", ...) :
cannot open: HTTP status was '404 Not Found'
W...
2015 Jan 26
4
problem with update.packages() in R-Devel (3.2.0) on Windows
Dear all,
I've noticed the following problem for the past several days:
---------------- snip ----------------
> update.packages(ask=FALSE)
. . .
trying URL 'http://cran.utstat.utoronto.ca/src/contrib/zoo_1.7-11.zip'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL
'http://cran.utstat.utoronto.ca/src/contrib/zoo_1.7-11.zip'
In addition: Warning message:
In download.file(url, destfile, method, mode = "wb", ...) :
cannot open: HTTP status was '404 Not Found'
Warning in downloa...
2008 Aug 07
3
Downloading Yahoo data
...I am trying to download the data from R. I give the below command.
> library(fImport)
> yahooSeries("IBM")
trying URL
'http://chart.yahoo.com/table.csv?s=IBM&a=7&b=08&c=2007&d=7&e=07&f=2008&
g=d&x=.csv'
Error in download.file(url = url, destfile = file, method = method) :
cannot open URL
'http://chart.yahoo.com/table.csv?s=IBM&a=7&b=08&c=2007&d=7&e=07&f=2008&
g=d&x=.csv'
In addition: Warning message:
In download.file(url = url, destfile = file, method = method) :
unable to connect to 'ch...
2016 Apr 21
2
installation problem on Ubuntu
...tall r-base r-base-dev
> >
> > But this only installed an earlier version. Finally I tried installing
> from
> > source (./configure, Make install). This worked. However, when I try to
> > install packages, I get this error:
> >
> > Error in download.file(url, destfile = f, quiet = TRUE) :
> > internet routines cannot be loaded
> > In addition: Warning message:
> > In download.file(url, destfile = f, quiet = TRUE) :
> > unable to load shared object '/usr/local/lib/R/modules//internet.so':
> > /usr/local/lib/R/modules//i...
2011 Apr 28
1
Problems downloading statmod cran package
...downloading
statmod:
> install.packages("statmod")
Installing package(s) into ‘C:\Users\Isaac\Documents/R/win-library/2.12’
(as ‘lib’ is unspecified)
trying URL '
http://www.revolution-computing.com/cran/bin/windows/contrib/2.12/statmod_1.4.9.zip
'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL '
http://www.revolution-computing.com/cran/bin/windows/contrib/2.12/statmod_1.4.9.zip
'
In addition: Warning message:
In download.file(url, destfile, method, mode = "wb", ...) :
cannot open: HTTP status was '404 Not Fo...