Skip to content

Commit

Permalink
adjusting params_path target package
Browse files Browse the repository at this point in the history
  • Loading branch information
brycefrank committed Sep 26, 2024
1 parent 4b10cb5 commit 0e8b61a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/params.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ load_parameter_frame <- function(name) {
#' @export
set_params_path <- function(params_path) {
params_path <- list(params_path = params_path)
rds_path <- file.path(system.file("extdata", package = "allometric"), "params_path.RDS")
rds_path <- file.path(system.file("extdata", package = "models"), "params_path.RDS")
saveRDS(params_path, rds_path)
}

Expand All @@ -46,7 +46,7 @@ set_params_path <- function(params_path) {
#' @return A string containing the currently set parameter search path
#' @export
get_params_path <- function() {
rds_path <- file.path(system.file("extdata", package = "allometric"), "params_path.RDS")
rds_path <- file.path(system.file("extdata", package = "models"), "params_path.RDS")
rds <- readRDS(rds_path)
rds$params_path
}

0 comments on commit 0e8b61a

Please sign in to comment.