Skip to content

Commit

Permalink
prevent writing in package install space
Browse files Browse the repository at this point in the history
  • Loading branch information
adokter committed Jul 29, 2024
1 parent 01ba94a commit 75787c0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion R/calculate_vp.R
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,20 @@
#' # Locate and read the polar volume example file
#' pvolfile_source <- system.file("extdata", "volume.h5", package = "bioRad")
#'
#' # Copy the file to a temporary directory with read/write permissions
#' pvolfile <- paste0(tempdir(),"/volume.h5")
#' file.copy(pvolfile_source, pvolfile)
#'
#' # Calculate the profile
#' if (requireNamespace("vol2birdR", quietly = TRUE)) {
#' vp <- calculate_vp(pvolfile_source)
#' vp <- calculate_vp(pvolfile)
#'
#' # Get summary info
#' vp
#'
#' # Clean up
#' file.remove(pvolfile)
#'
#' }
#'
calculate_vp <- function(file, vpfile = "", pvolfile_out = "",
Expand Down
10 changes: 9 additions & 1 deletion man/calculate_vp.Rd

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

0 comments on commit 75787c0

Please sign in to comment.