copy_source: Copy files from a user-installed package.

View source: R/utilities.r

copy_sourceR Documentation

Copy files from a user-installed package.

Description

Copy files from a user-installed package.

Usage

copy_source(
  dest_dir = ".",
  package = "pbdIO",
  kind = "*.sh$",
  source_dir = "slurm"
)

Arguments

dest_dir

Character string giving the directory where to copy demo shell script.

package

Character string giving the package name.

kind

Character string giving kind of job manager script, which is also the directory name for its location in the package source.

source_dir

Character string of the package directory containing the file(s) to copy.

Details

Intended for code stored in non-standard directories in packages included under the 'inst' directory, which installation brings up one level to the top package directory and deletes 'inst'. However, standard directories will work too.

Details for pbdIO: Running MPI codes on clusters requires batch submission to a job scheduler, which is best done with a shell script. This function provides a means to extract such shell script examples from a package that includes them under extra directories that installation makes from 'inst'.


RBigData/pbdIO documentation built on July 22, 2023, 2:25 p.m.