Re: [Rd] missing imports not detected by 'R CMD check' (?)

2019-09-27 Thread Martin Maechler
> Henrik Bengtsson > on Tue, 24 Sep 2019 11:42:13 -0700 writes [to me (as maintainer of 'Matrix') and allowed me to answer in public] : > I ran into a problem where 'R CMD check' on my in-house package, which > only indirectly depends on 'Matrix', produce errors like: > > [where=, w

Re: [Rd] passing extra arguments to devtools::build

2019-09-27 Thread Jan Gorecki
Dear Michael, I think R-devel mailing list is not a proper place to report issues with devtools. I would try filling an issue in their github repository. If you are able to reproduce this issue using plain R without any extra packages, then please provide such example here. Regards, Jan Gorecki

[Rd] passing extra arguments to devtools::build

2019-09-27 Thread Michael Friendly
This question was posed on SO : https://stackoverflow.com/questions/58118495/passing-extra-argumenets-to-devtoolsbuild but there has been no useful reply. Something seems to have changed in the |devtools|package, so that the following commands, that used to run now give an error I can't deciph

Re: [Rd] Evaluate part of an expression at C level

2019-09-27 Thread Gábor Csárdi
Yes, you can manipulate the language object, and replace the the 1:10 with its own 5. element, and then call eval on the modified expression. This can be simple if you know the structure of the expression well, and difficult otherwise. It goes like this: SEXP lang_test(SEXP expr, SEXP idx, SEXP i

Re: [Rd] Evaluate part of an expression at C level

2019-09-27 Thread Hugh Parsonage
You may be trying to do something similar to hutilscpp::which_first(x < 5) which does most of its work at the R level. That is notice an expression is of the form lhs operator rhs then evaluate each element of lhs separately On Fri, 27 Sep 2019 at 8:35 pm, Morgan Morgan wrote: > Hi, > > I am

[Rd] Evaluate part of an expression at C level

2019-09-27 Thread Morgan Morgan
Hi, I am wondering if the below is possible? Let's assume I have the following expression: 1:10 < 5 Is there a way at the R C API level to only evaluate the 5th element (i.e 5 < 5) instead of evaluating the whole expression and then select the 5th element in the logical vector? Thank you Best r