linkSystemFiles: Link from absolute system.file to local directory

Description Usage Arguments Details

View source: R/bookdown_file_utils.R

Description

In the case that vignettes use system.file to locate files for inclusion in the vignette, this function can create a symbolic link that links the 'destdir' to the system.file(...) location.

Usage

1
linkSystemFiles(..., destdir, include_full_path = TRUE)

Arguments

...

passed to system.file

destdir

character(1) the base destitation directory

include_full_path

logical(1) should we include the actual path to the system.file() location.

Details

For 'include_full_path', if system.file(...) is '/usr/abc/123', if TRUE, the link will go from '/usr/abc/123' TO 'destdir/usr/abc/123'. If FALSE, the link will go from '/usr/abc/123' to 'destdir'.


seandavi/CollaborativeBookdown documentation built on Aug. 22, 2019, 4:48 a.m.