Re: [Rd] Halfway through writing an "IDE" with support for R; Proof of concept, and request for suggestions.

2019-06-17 Thread frederik
On Sat, Jun 15, 2019 at 01:13:07PM +1200, Abby Spurdle wrote: What about Atom, VS Code and the like? Or what about taking a project that meets most of the constraints and pushing to cover all of them, or even forking it and modifying the part you don't like? I'm not prepared to endorse GitHub a

Re: [Rd] [External] Re: R C API resize matrix

2019-06-17 Thread Tierney, Luke
On Mon, 17 Jun 2019, Simon Urbanek wrote: > Matrix is just a vector with the dim attribute. Assuming it is not referenced > by anyone, you can set any values to the dim attribute. As for the vector, > you can use SET_LENGTH() to shorten it - but I'm not sure how official it is > - it was origin

Re: [Rd] R C API resize matrix

2019-06-17 Thread Simon Urbanek
Matrix is just a vector with the dim attribute. Assuming it is not referenced by anyone, you can set any values to the dim attribute. As for the vector, you can use SET_LENGTH() to shorten it - but I'm not sure how official it is - it was originally designed to work, but there were abuses of TRU

Re: [Rd] Bug report: 'formula("x")' loops infinitely ('formula("y")' does not)

2019-06-17 Thread Martin Maechler
> P Poncet via R-devel > on Fri, 14 Jun 2019 19:56:14 + writes: > Dear,   > The script'formula("x")' loops infinitely. well ... if it would really, your computer would still be running and heating ... ;-) > More specifically, it throws the following error:  >

[Rd] Bug report: 'formula("x")' loops infinitely ('formula("y")' does not)

2019-06-17 Thread P Poncet via R-devel
Dear,   The script'formula("x")' loops infinitely. More specifically, it throws thefollowing error:    Error: evaluationnested too deeply: infinite recursion / options(expressions=)?    As a side effect,this makes an IDE like RStudio to crash. On the other hand,the script 'formula("y")' w

[Rd] R C API resize matrix

2019-06-17 Thread Morgan Morgan
Hi, Is there a way to resize a matrix defined as follows: SEXP a = PROTECT(allocMatrix(INTSXP, 10, 2)); int *pa = INTEGER(a) To row = 5 and col = 1 or do I have to allocate a second matrix "b" with pointer *pb and do a "for" loop to transfer the value of a to b? Thank you Best regards Morgan