[R] download.file - it works on my Mac but not on Windows.

Roy Mendelssohn Roy.Mendelssohn at noaa.gov
Mon Jul 2 22:28:34 CEST 2007


Thanks muchly.  That fixed the problem.

-Roy M.

On Jul 2, 2007, at 12:11 PM, Henrique Dallazuanna wrote:

> Try whit:
>
> destfile="C:/Users/Catherine Holt/test.nc"
>
> --  
> Henrique Dallazuanna
> Curitiba-Paraná-Brasil
> 25° 25' 40" S 49° 16' 22" O
>
> On 02/07/07, Roy Mendelssohn <Roy.Mendelssohn at noaa.gov> wrote: Hi:
>
> I am working with someone remotely to allow them access to our data.
> The follow command using "download.file" works perfectly on my Mac:
>
>
> > > download.file(url=" http://oceanwatch.pfeg.noaa.gov:8081/thredds/
> > wcs/satellite/AG/ssta/14day?
> >  
> request=GetCoverage&version=1.0.0&service=WCS&format=NetCDF3&coverage=
> > AGssta&Vertical=.0&time=2006-01-06T00:00:00Z&bbox=220,20,250,50",
> > destfile="/users/rmendels/desktop/carrie.nc")
> > trying URL 'http://oceanwatch.pfeg.noaa.gov:8081/thredds/wcs/
> > satellite/AG/ssta/14day?
> >  
> request=GetCoverage&version=1.0.0&service=WCS&format=NetCDF3&coverage=
> > AGssta&Vertical=.0&time=2006-01-06T00:00:00Z&bbox=220,20,250,50'
> > Content type 'application/x-netcdf' length 369144 bytes
> > opened URL
> > ==================================================
> > downloaded 360Kb
> >
> >
>
> On Windows, which this person is using, the following fails:
>
> > download.file(url=" http://oceanwatch.pfeg.noaa.gov:8081/thredds/ 
> wcs/
> > satellite/AG/ssta/14day?
> >  
> request=GetCoverage&version=1.0.0&service=WCS&format=NetCDF3&coverage=
> > AGssta&Vertical=.0&time=2006-01-06T00:00:00Z&bbox=220,20,250,50",
> > destfile="C:\Users\Catherine Holt\test.nc")
> >
>
>
> The error message is:
>
> > Error: Uxxxxxxx sequences are not supported on Windows
> >
>
> Relevant Info:
>
> Mac:
>
> > version
>                 _
> platform       powerpc-apple-darwin8.9.1
> arch           powerpc
> os             darwin8.9.1
> system         powerpc, darwin8.9.1
> status
> major          2
> minor          5.1
> year           2007
> month          06
> day            27
> svn rev        42083
> language       R
> version.string R version 2.5.1 (2007-06-27)
>
>
> Windows:
>
> Here's my Version information:
>                _
> platform       i386-pc-mingw32
> arch           i386
> os             mingw32
> system         i386, mingw32
> status
> major          2
> minor           5.0
> year           2007
> month          04
> day            23
> svn rev        41293
> language       R
> version.string R version 2.5.0 (2007-04-23)
>
>
> Any help or workarounds appreciated.
>
> -Roy M.
>
>
>
>
>
>
> **********************
> "The contents of this message do not reflect any position of the U.S.
> Government or NOAA."
> **********************
> Roy Mendelssohn
> Supervisory Operations Research Analyst
> NOAA/NMFS
> Environmental Research Division
> Southwest Fisheries Science Center
> 1352 Lighthouse Avenue
> Pacific Grove, CA 93950-2097
>
> e-mail: Roy.Mendelssohn at noaa.gov (Note new e-mail address)
> voice: (831)-648-9029
> fax: (831)-648-8440
> www: http://www.pfeg.noaa.gov/
>
> "Old age and treachery will overcome youth and skill."
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>

**********************
"The contents of this message do not reflect any position of the U.S.  
Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division	
Southwest Fisheries Science Center
1352 Lighthouse Avenue
Pacific Grove, CA 93950-2097

e-mail: Roy.Mendelssohn at noaa.gov (Note new e-mail address)
voice: (831)-648-9029
fax: (831)-648-8440
www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."



More information about the R-help mailing list