我在安装Prophet并收到以下错误消息时遇到问题。其他人是否遇到过这种情况,并且知道解决方法?
这是我到目前为止尝试过的:
remove.packages("devtools")
remove.packages("rstan")
remove.packages("prophet")
install.packages("pkgbuild") # pkgbuild is not available (for R version
3.5.0)
install.packages("devtools") # make sure you have the latest version from
CRAN
library(devtools)
assignInNamespace("version_info", c(devtools:::version_info, list("3.5" =
list(version_min = "3.3.0", version_max = "99.99.99", path = "bin"))),
"devtools")
find_rtools() # is TRUE now
library(pkgbuild) # load package
install.packages("rstan")
library(rstan)
install.packages("prophet")
library(prophet)
错误消息:
Error: package or namespace load failed for ‘prophet’:
.onLoad failed in loadNamespace() for 'prophet', details:
call: compileCode(f, code, language = language, verbose = verbose)
error: Compilation ERROR, function(s)/method(s) not created! Warning
message:
In system(cmd) : 'make' not found
In addition: Warning messages:
1: In system2(file.path(Sys.getenv("R_HOME"), "bin",
Sys.getenv("R_ARCH_BIN"), :
running command '"C:/Users/DANHUN~1/DOCUME~1/R/R-35~1.1/bin//R" CMD config
CXX' had status 1
2: In system(cmd, intern = !verbose) :
running command 'C:/Users/DANHUN~1/DOCUME~1/R/R-35~1.1/bin/i386/R CMD SHLIB
file39b417e590c.cpp 2> file39b417e590c.cpp.err.txt' had status 1