copy_source | R Documentation |
Copy files from a user-installed package.
copy_source(
dest_dir = ".",
package = "pbdIO",
kind = "*.sh$",
source_dir = "slurm"
)
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. |
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'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.