无法在Heroku上安装R包

时间:2015-01-29 09:40:19

标签: r heroku

我正在尝试在heroku上为R安装包Boom。我正在使用此R buildpack来部署R包。我得到一个超时错误,并且在卡住了很长时间后构建失败

* installing *source* package 'Boom' ...
** package 'Boom' successfully unpacked and MD5 sums checked
** libs
Models/Glm/PosteriorSamplers/fill_poisson_mixture_approximation_table_2.cpp: In function 'void BOOM::fill_poisson_mixture_approximation_table_2(BOOM::NormalMixtureApproximationTable*)':
Models/Glm/PosteriorSamplers/fill_poisson_mixture_approximation_table_2.cpp:7:8: note: variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without
   void fill_poisson_mixture_approximation_table_2(
        ^
Models/Glm/PosteriorSamplers/fill_poisson_mixture_approximation_table_3.cpp: In function 'void BOOM::fill_poisson_mixture_approximation_table_3(BOOM::NormalMixtureApproximationTable*)':
Models/Glm/PosteriorSamplers/fill_poisson_mixture_approximation_table_3.cpp:7:8: note: variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without
   void fill_poisson_mixture_approximation_table_3(
        ^

 !     Timed out compiling Multipack app (15 minutes)
 !     See https://devcenter.heroku.com/articles/slug-compiler#time-limit

我不知道从这里有什么选择。请建议。

1 个答案:

答案 0 :(得分:0)

我能够通过使用heroku apt buildpack使其工作,然后使用deb of R packages。奇迹般有效。另外需要注意的是,您可能需要在apt中添加与默认R安装位置不同的库安装路径。