Skip to content

Commit

Permalink
fix: use system file instead of here
Browse files Browse the repository at this point in the history
  • Loading branch information
tin900 committed Mar 15, 2024
1 parent 3d417be commit 385a1fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ Suggests:
testthat (>= 3.0.0)
Config/testthat/edition: 3
Imports:
config,
here
config
3 changes: 2 additions & 1 deletion R/create_config_csv_files.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ create_config_csv_files <- function(user_config_path = "user_config.yml", output
} else {
message("No user-specified config.yml found. Using package defaults.")
# Fall back to the package's default config.yml
user_config <- config::get(file = here::here("inst", "config.yml"))
package_config_path <- system.file("config.yml", package = "vvprojector", mustWork = TRUE)
user_config <- config::get(file = package_config_path)

# Inform the user about the package defaults
message("Package defaults are:")
Expand Down

0 comments on commit 385a1fd

Please sign in to comment.