Skip to contents

Remove artefacts from file path

Usage

get_function_path(file_location, project_path)

Arguments

file_location

Character scalar specifying the path of a file.

project_path

Character scalar specifying the path of the project.

Value

A character scalar

Examples

if (FALSE) { # \dontrun{
cleaned_file_path <- get_function_path(
 file_location = "tests/testthat/example_project/R/calculate_QALYs.R#L41"
)
cleaned_file_path <- get_function_path(
 file_location = c(
   "tests/testthat/example_project/R/calculate_QALYs.R#L41",
   "tests/testthat/example_project/R/calculate_QALYs.R#L49"
 )
)
} # }