R中的Prophet包:无法从库中加载

R中的Prophet包:无法从库中加载,r,facebook,R,Facebook,有人能帮我把“先知”软件包添加到图书馆吗 我成功地在R版本3.3.3上安装了包,包括依赖文件,但是当我尝试使用它“library(prophet)”时,我得到了以下结果。我确实在错误中提供的链接以及其他各种论坛上寻找解决方案,但没有找到解决方案 这个包是否需要安装C++编译器?我如何解决这个问题 Warning: running command '"C:/Documents/R/R-3.3.3/bin//R" CMD config CXX' had status 1 No C++ compile

有人能帮我把“先知”软件包添加到图书馆吗

我成功地在R版本3.3.3上安装了包,包括依赖文件,但是当我尝试使用它“library(prophet)”时,我得到了以下结果。我确实在错误中提供的链接以及其他各种论坛上寻找解决方案,但没有找到解决方案

这个包是否需要安装C++编译器?我如何解决这个问题

Warning: running command '"C:/Documents/R/R-3.3.3/bin//R" CMD config CXX' had status 1
No C++ compiler found, so the following will probably not work.
See https://github.com/stan-dev/rstan/wiki/Installing-RStan-on-Windows#toolchain
Warning: running command 'C:/Documents/R/R-3.3.3/bin/i386/R CMD SHLIB file54474622720.cpp 2> file54474622720.cpp.err.txt' had status 1
Warning message:
running command 'make -f "C:/DOCUME~1/R/R-33~1.3/etc/i386/Makeconf" -f "C:/DOCUME~1/R/R-33~1.3/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' S

HLIB="file54474622720.dll" OBJECTS="file54474622720.o"' had status 127 

ERROR(s) during compilation: source code errors or compiler configuration errors!

Program source:
     1: 
    '2: // includes from the plugin
    '3: 
    '4: 
    '5: // user includes
    '6: #define STAN__SERVICES__COMMAND_HPP// Code generated by Stan version '2.15.0
    '7: 
    '8: #include <stan/model/model_header.hpp>
    '9: 
    '10: namespace model54441212ef0_prophet_linear_growth_namespace {
    '11: 
    '12: using std::istream;
    '13: using std::string;
    '14: using std::stringstream;
    '15: using std::vector;
    '.
    '.
    '.
    '663: // declarations
    '664: extern "C" {
    '665: SEXP file54474622720( ) ;
    '666: }
    '667: 
    '668: // definition
    '669: 
    '670: SEXP file54474622720(  ){
    '671:  return Rcpp::wrap("prophet_linear_growth");
    '672: }
    '673: 
    '674:

    'Error : .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:
    'running command 'make -f "C:/DOCUME~1/R/R-33~1.3/etc/i386/Makeconf"
    '"C:/DOCUME~1/R/R-33~1.3/share/make/winshlib.mk"
    'SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD) 'SHLIB="file54474622720.dll" OBJECTS="file54474622720.o"' had status 127 
    'Error: package or namespace load failed for 'prophet'
警告:正在运行的命令“C:/Documents/R/R-3.3.3/bin//R”CMD config CXX的状态为1
没有找到C++编译器,所以下面的方法可能不起作用。
看见https://github.com/stan-dev/rstan/wiki/Installing-RStan-on-Windows#toolchain
警告:运行命令“C:/Documents/R/R-3.3.3/bin/i386/R CMD SHLIB file54474622720.cpp 2>file54474622720.cpp.err.txt”的状态为1
警告信息:
运行命令“make-f”C:/DOCUME~1/R/R-33~1.3/etc/i386/Makeconf“-f”C:/DOCUME~1/R/R-33~1.3/share/make/winshlib.mk“SHLIB\u LDFLAGS=”$(SHLIB\u cxldflags)“SHLIB\u LD=”$(SHLIB\u cxld)”S
HLIB=“file54474622720.dll”OBJECTS=“file54474622720.o”的状态为127
编译期间出错:源代码错误或编译器配置错误!
节目来源:
1: 
'2://包含在插件中
'3: 
'4: 
'5://用户包括
'6:#定义STAN__服务_命令_HPP//由STAN版本'2.15.0'生成的代码
'7: 
“8:#包括
'9: 
'10:命名空间模型54441212EF0\u prophet\u linear\u growth\u命名空间{
'11: 
'12:使用std::istream;
'13:使用std::string;
'14:使用std::stringstream;
'15:使用std::vector;
'.
'.
'.
'663://声明
'664:外部“C”{
'665:SEXP文件54474622720();
'666: }
'667: 
'668://定义
'669: 
'670:SEXP文件54474622720(){
'671:ReturnRCPP::wrap(“prophet_linear_growth”);
'672: }
'673: 
'674:
'错误:'prophet'的loadNamespace()中的onLoad失败,详细信息:
'调用:compileCode(f,code,language=language,verbose=verbose)
'错误:编译错误,未创建函数/方法!警告消息:
“正在运行的命令”make-f“C:/DOCUME~1/R/R-33~1.3/etc/i386/Makeconf”
“C:/DOCUME~1/R/R-33~1.3/share/make/winshlib.mk”
“SHLIB_LDFLAGS='$(SHLIB_cxldflags)'SHLIB_LD='$(SHLIB_cxld)'SHLIB=“file54474622720.dll”OBJECTS=“file54474622720.o”的状态为127
'错误:“prophet”的包或命名空间加载失败'

看起来你是在windows上。如果是这样,你安装了吗?没错,我在windows上,也有Rtools!R-3.3.3安装在“C:\MyDocuments\”中,但Rtools安装在“C:\”中(不同路径)这会导致问题还是有办法确保Rtools连接到当前正在使用的会话?看起来你是在windows上。如果是,你安装了吗?没错,我在windows上,也有Rtools!R-3.3.3安装在“C:\MyDocuments\”中,但Rtools安装在“C:\”中(不同路径)这会导致问题还是有办法确保Rtools连接到当前正在使用的会话?