i'm having trouble installing r package expm on heroku instance.
i following errors:
* installing *source* package ‘expm’ ... ** package ‘expm’ unpacked , md5 sums checked ** libs gcc -std=gnu99 -i/app/vendor/r/lib/r/include -dndebug -i/usr/local/include -fpic -g -o2 -c r_dgebal.c -o r_dgebal.o in file included locale.h:4:0, expm.h:10, r_dgebal.c:4: r_dgebal.c: in function ‘ebal_type’: locale.h:5:19: error: ‘lc_messages’ undeclared (first use in function) #define _(string) dgettext ("expm", string) ^ r_dgebal.c:11:8: note: in expansion of macro ‘_’ error(_("argument type='%s' must character string of string length 1"), ^ locale.h:5:19: note: each undeclared identifier reported once each function appears in #define _(string) dgettext ("expm", string) ^ r_dgebal.c:11:8: note: in expansion of macro ‘_’ error(_("argument type='%s' must character string of string length 1"), ^ r_dgebal.c: in function ‘r_dgebal’: locale.h:5:19: error: ‘lc_messages’ undeclared (first use in function) #define _(string) dgettext ("expm", string) ^ r_dgebal.c:28:8: note: in expansion of macro ‘_’ error(_("invalid 'x': not numeric (classical r) matrix")); ^ make: *** [r_dgebal.o] error 1 error: compilation failed package ‘expm’ * removing ‘/app/vendor/r/lib/r/library/expm’ error: dependency ‘expm’ not available package ‘msm’ * removing ‘/app/vendor/r/lib/r/library/msm’ error: dependency ‘msm’ not available package ‘ltm’ * removing ‘/app/vendor/r/lib/r/library/ltm’
i'm using r buildpack , not sure what's causing error.
thanks!
i'm planning on installing r package friend wrote, package expm depends on won't install.
from sessioninfo():
> sessioninfo() r version 3.1.2 (2014-10-31) platform: x86_64-unknown-linux-gnu (64-bit) locale: [1] lc_ctype=en_us.utf-8 lc_numeric=c [3] lc_time=en_us.utf-8 lc_collate=en_us.utf-8 [5] lc_monetary=en_us.utf-8 lc_messages=en_us.utf-8 [7] lc_paper=en_us.utf-8 lc_name=c [9] lc_address=c lc_telephone=c [11] lc_measurement=en_us.utf-8 lc_identification=c attached base packages: [1] stats graphics grdevices utils datasets methods base
the buildpack installs r using script: https://github.com/virtualstaticvoid/heroku-buildpack-r/blob/master/support/build-r
there bug in heroku build pack, it's been fixed.