search for: fileurl

Displaying 2 results from an estimated 2 matches for "fileurl".

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, de...
2011 Nov 08
2
download.file
...move the file if the download function has non zero value. 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]]