Description Usage Arguments Value Examples
Cache, fetch, and list files from the BSRTO FTP server
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | bs_cached(
x,
ftp = bs_ftp_server(),
cache = bs_cache_dir(),
async = FALSE,
retries = 4,
quiet = FALSE
)
bs_ftp_list(
x,
pattern = NULL,
recursive = FALSE,
ftp = bs_ftp_server(),
print = FALSE,
quiet = FALSE
)
|
x |
A path relative to /pub/dfo |
ftp |
The location of the FTP server |
cache |
Path to a local copy of /pub/dfo where files will be cached or written. |
async |
Use |
retries |
The number of retries to use |
quiet |
Use |
pattern |
A regular expression against which files are matched
or |
recursive |
Use |
print |
Use |
bs_cached()
returns the file path to the local version of the
file after downloading; bs_ftp_list()
returns a list of files (not
directories!) that match pattern
.
1 2 3 4 5 | ## Not run:
bs_cached("barrow/BarrowStraitDataSummary.xlsx")
bs_ftp_list("barrow")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.