Skip to contents

This function creates a symbolic link from a Google Drive data space (specified in a config file) to a local "data" directory. It checks for the existence of the Google Drive path and the local data directory, creates the local directory if it does not exist, and then creates the symlink.

Usage

link_inputs(cfg_path)

Arguments

cfg_path

Character. Path to the configuration file containing the Google Drive data space path.

Value

Logical. Returns TRUE if the linking is successful; otherwise, stops with an error.

Examples

if (FALSE) { # \dontrun{
link_inputs("config.yml")
} # }