Skip to content

Commit

Permalink
Fixed bug where calculate_slr() couldn't find random_forest
Browse files Browse the repository at this point in the history
  • Loading branch information
stephaniereinders committed Dec 5, 2024
1 parent 5a07190 commit 2b5a922
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/scenario1-master.R
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ scenario1Server <- function(id){
slr <- handwriterRF::calculate_slr(
sample1_path = sample1()$datapath,
sample2_path = sample2()$datapath,
project_dir = file.path(tempdir(), "comparison1"))
project_dir = file.path(tempdir(), "comparison1"),
rforest = handwriterRF::random_forest)

# load graphs
graphs$sample1 <- readRDS(file.path(tempdir(), "comparison1", "graphs", stringr::str_replace(basename(sample1()$datapath), ".png", "_proclist.rds")))
Expand Down

0 comments on commit 2b5a922

Please sign in to comment.