download_direct: Download a direct data access file using 'download.file'

Description Usage Arguments Value

View source: R/direct.R

Description

Download a direct data access file using download.file

Usage

1
2
3
download_direct(filename, output_filename, output_path = ".",
  base_uri = "https://oceandata.sci.gsfc.nasa.gov/cgi/getfile",
  mode = "wb", ...)

Arguments

filename

the name of the file to download - required as 'A2016186.L3m_DAY_CHL_chlor_a_4km.nc'

output_filename

character the name of the output file, the default is the same as filename

output_path

the file path to save to, the default is to save to the current path "."

base_uri

character Oceandata's base uri (default 'http://oceandata.sci.gsfc.nasa.gov/cgi/getfile')

mode

character - see download.file

...

other argments for download.file

Value

0 for success and non-zero otherwise - see download.file


BigelowLab/obpgcrawler documentation built on Nov. 6, 2019, 5:02 a.m.