retrieve_file_list: Retrieve and download files for a project

View source: R/retrieve-file-list.R

retrieve_file_listR Documentation

Retrieve and download files for a project

Description

retrieve_file_list() retrieve the complete list of files to be copied into a new project, while download_file_list() copies the files to the destination_directory on your local maachine.

Usage

retrieve_file_list(
  offspring,
  project_name = "new-project",
  destination_directory = file.path("~", project_name)
)
download_file_list(
  offspring,
  project_name  = "new-project",
  destination_directory = file.path("~", project_name)
)

Arguments

offspring

character of observed values in the investigation. Required.

project_name

character of the new project. Defaults to new-project.

destination_directory

character of the files. Defaults to ~ (i.e, the home directory).

Details

Currently, three types of projects are supported:

  1. r-analysis-skeleton

  2. cdw-skeleton-1

  3. neonatology-1

Value

Table of files to copy

Note

To view the files involved in each project type, refer to https://github.com/OuhscBbmc/pluripotent/inst/data/file-to-copy.csv. Each line represents one file that will be placed in the new project. The columns are

  1. offspring: the project type to be created.

  2. copy: indicator if the file should be copied. If FALSE, the file is ignored.

  3. destination: the file's location in the new project.

  4. source: the location where the file is copied from.

Author(s)

Will Beasley

Examples

library(pluripotent)
d1 <- retrieve_file_list("r-analysis-skeleton")

## Not run: 
download_file_list("r-analysis-skeleton", "new-project", "./data-public/testing")

## End(Not run)

OuhscBbmc/pluripotent documentation built on March 8, 2024, 6:10 a.m.