[Rd] SET_COMPLEX_ELT and SET_RAW_ELT missing from Rinternals.h

2021-06-25 Thread Konrad Siek
Hello, I am working on a package that works with various types of R vectors, implemented in C. My code has a lot of SET_*_ELT operations in it for various types of vectors, including for CPLXSXPs and RAWSXPs. I noticed SET_COMPLEX_ELT and SET_RAW_ELT are defined in Rinlinedfuns.h but not declared

Re: [Rd] S3 weirdness

2021-06-25 Thread Johannes Rauh
Good morning, I would argue that in this specific simple example, R does the less confusing thing from a user's perspective (maybe not from a programmer's or philosopher's perspective): When using a function from a package that has not been loaded before and when this package creates an object