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

时间:2017-05-25 14:49:06

标签: 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++ 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'

0 个答案:

没有答案