Skip to content

Commit 9d156b9

Browse files
committed
move inst/extdata to inst/{version}
1 parent 863d152 commit 9d156b9

17 files changed

+3
-3
lines changed

R/ep_predict.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ ep_predict <- function(preprocessed_pbp) {
7676
#' @keywords internal
7777
.forge_and_predict <- function(df, variable) {
7878

79-
silencer <- if(getOption("ffexpectedpoints.verbose", default = TRUE)) force else suppressWarnings
79+
silencer <- if(getOption("ffexpectedpoints.verbose", default = FALSE)) force else suppressWarnings
8080

8181
# could probably call .load_model_obj here based on the variable name?
8282

@@ -99,9 +99,9 @@ ep_predict <- function(preprocessed_pbp) {
9999
# automatically/prompt-for download if file not found?
100100
# future: add some kind of version selector (as package option?)
101101
#' @keywords internal
102-
.load_model_objs <- function(variable) {
102+
.load_model_objs <- function(variable, version = "v1.0.0") {
103103

104-
folder_path <- system.file("extdata", package = "ffexpectedpoints")
104+
folder_path <- system.file(version, package = "ffexpectedpoints")
105105
model_path <- file.path(folder_path, paste0(variable,".xgb"))
106106
blueprint_path <- file.path(folder_path, paste0(variable,".rds"))
107107

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)