Description Usage Arguments Details
View source: R/read_repo_config.R
This configuration file specifies global settings that control the synchronization behaviour in general, and provides details of each of the datasets in the repository. Any global configuration setting can also be set at the dataset level. A dataset inherits any global configuration settings not overridden in its own configuration. It is suggested that a user only makes changes to the local_config_file, because package updates may change the default configuration file provided with the package. To use only a local_config_file, specify NULL for the default_config_file (and vice-versa).
1 2 3 | read_repo_config(local_config_file,
default_config_file = system.file("extdata", "raad_repo_config.json",
package = "raadsync"))
|
local_config_file |
string: file or URL to JSON configuration file. |
default_config_file |
string: file or URL to JSON configuration file. By default, the default_config_file is the one that ships with this package. |
The global settings include the following parameters:
wget_flags string: flags to pass to wget (default is "–no-passive-ftp")
http_proxy string: http proxy server to use in the form "http://your.proxy.server:8080" (default is no proxy server)
ftp_proxy string: ftp proxy server to use in the form "ftp://your.ftp.proxy.server:21" (default is no proxy server)
local_file_root string: the path to the data root directory. If the raadtools
library has been installed it defines a default data directory option. This will be used if no local_file_root is supplied in the raadsync
global configuration
clobber numeric: 0=do not overwrite existing files, 1=overwrite existing files if the remote copy is newer than the local copy, 2=overwrite existing files unconditionally
wait numeric: seconds to wait between downloads (default=0)
Each dataset is specified by the following parameters in the configuration file:
name string: dataset name
description string: description
reference string: URL to metadata record or home page for the dataset
source_urls list: list of URLs to the data
do_sync logical: if FALSE this dataset will not be synchronized
method string: the synchronization method (currently only "wget")
method_flags string: flags to pass to wget (if method=="wget") or the custom handler (if not)
postprocess string array: operations to apply after all file downloads. Currently "unzip", "gunzip" (unzip or gunzip but do not delete the compressed copy), "gunzip_delete", "unzip_delete" (unzip and delete the zipped file), "cleanup <pattern>" (remove any files in local_directory with names matching <pattern>), "cleanup_recursive <pattern>" (as for cleanup but is applied recursively to child directories)
user string: username for access to restricted ftp/http sites
password string: password for access to restricted ftp/http sites
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.