extendr / rextendr

An R package that helps scaffolding extendr-enabled packages or compiling Rust code dynamically
https://extendr.github.io/rextendr/
Other
174 stars 25 forks source link

Print error message from dyn.load when `document`ing #340

Open CGMossa opened 4 months ago

CGMossa commented 4 months ago

It seems to be the case that callr invocation that is used to make wrappers (in document()) eats up any error messages that arise from dyn.load. See

https://github.com/extendr/extendr/issues/702

I believe this issue will be recurring, because there is plenty of system dependencies that need to be accounted for, and not being able to see which symbol is missing, makes troubleshooting a nightmare.

I looked up callr and, the tryCatch call, and there isn't a clear way to solve this. For an overview of where the tension point is, see https://github.com/extendr/extendr/issues/702#issuecomment-1937452341