From 578b78a8f3e2d15ce5677d870654be411a77d714 Mon Sep 17 00:00:00 2001 From: Mitchell O'Hara-Wild Date: Fri, 24 Apr 2020 06:06:36 +1000 Subject: [PATCH] Use system.file() to obtain package installation path (#1435) --- R/R/prophet.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/R/prophet.R b/R/R/prophet.R index efde877..ab6ce22 100644 --- a/R/R/prophet.R +++ b/R/R/prophet.R @@ -249,9 +249,9 @@ compile_stan_model <- function() { ) if (.Platform$OS.type == "windows") { - dest <- file.path(path.package("prophet"), 'libs', .Platform$r_arch) + dest <- file.path(system.file(package="prophet"), 'libs', .Platform$r_arch) } else { - dest <- file.path(path.package("prophet"), 'libs') + dest <- file.path(system.file(package="prophet"), 'libs') } dir.create(dest, recursive = TRUE, showWarnings = FALSE)