Skip to content

Commit

Permalink
document getLinkFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-sauer committed May 3, 2024
1 parent 5dff10f commit 22ebf79
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export(getCalculations)
export(getConfig)
export(getDependencies)
export(getISOlist)
export(getLinkFunction)
export(getLocation)
export(getMadratGraph)
export(getMadratInfo)
Expand Down
9 changes: 9 additions & 0 deletions R/getLinkFunction.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
#' getLinkFunction
#'
#' Returns a function that symlinks, hardlinks, or copies files and
#' directories, depending on OS capabilities.
#'
#' @return A function with arguments "from" and "to" which should behave like
#' file.symlink on all platforms.
#' @author Pascal Sauer
#' @export
getLinkFunction <- function() {
# try symlinks, if they don't work (Windows) fall back to hardlinks/junctions/copying

Expand Down
19 changes: 19 additions & 0 deletions man/getLinkFunction.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 22ebf79

Please sign in to comment.