mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-16 08:38:30 +00:00
Use system.file() to obtain package installation path (#1435)
This commit is contained in:
parent
6cd14438c6
commit
578b78a8f3
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue