[R] Error in installing pbmcapply / WhatIf

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Thu Jun 27 12:04:36 CEST 2019


On Thu, 27 Jun 2019 12:48:50 +0530
Ashim Kapoor <ashimkapoor using gmail.com> wrote:

> R version 3.3.3 (2017-03-06)

> process.c:10:23: error: unknown type name ‘DllInfo’

DllInfo is defined in R_ext/Rdynload.h [1].

process.c only includes Rinternals.h [2], which has been including
R_ext/Rdynload.h since September 2016 [3]. Unfortunately, R 3.3.3 from
Debian Stretch does not contain this change [4].

On the one hand, a cursory look at latest "Writing R extensions" doesn't
seem to indicate that Rinternals.h is guaranteed to include
R_ext/Rdynload.h, so this may turn out to be a bug in pbmcapply (easily
fixable by adding an #include). But that discussion is better suited
for R-pkg-devel.

On the other hand, there is an excellent Debian repo [5] containing the
latest version of R which should be able to build pbmcapply without a
problem.

-- 
Best regards,
Ivan

[1]
https://github.com/wch/r-source/blob/22441d30384507d9d358a1e1c13f311d7a1b3627/src/include/R_ext/Rdynload.h#L70

[2]
https://github.com/kvnkuang/pbmcapply/blob/ef95ca6a23e003b45ec97b2aa55b7cb01d21363b/src/process.c#L3

[3]
https://github.com/wch/r-source/blame/22441d30384507d9d358a1e1c13f311d7a1b3627/src/include/Rinternals.h#L51

[4]
https://github.com/wch/r-source/blob/tags/R-3-3-3/src/include/Rinternals.h

[5] https://cloud.r-project.org/bin/linux/debian/



More information about the R-help mailing list