search for: sannella

Displaying 11 results from an estimated 11 matches for "sannella".

2018 Oct 08
4
R_ext/Altrep.h should be more C++-friendly
...ot; { #endif ... #ifdef __cplusplus } #endif 2. change the line R_new_altrep(R_altrep_class_t class, SEXP data1, SEXP data2); to R_new_altrep(R_altrep_class_t cls, SEXP data1, SEXP data2); since C++ doesn't like an argument named 'class' ~~ Michael Sannella [[alternative HTML version deleted]]
2018 Nov 15
2
STRING_IS_SORTED claims as.character(1:100) is sorted
...ot;2",..."10",... is not sorted. I suspect that the problem is that the Is_sorted method for deferred_string is just calling the Is_sorted method for the source object 1:100 (which _is_ a sorted integer vector). It should probably just return NA for any source object. ~~ Michael Sannella [[alternative HTML version deleted]]
2018 Nov 07
2
error unserializing ascii format (v2 or v3)
...=3. It does not happen if the serialization is done with ascii=FALSE. Note that 0x29 == 41. It looks like unserialize is reading the wrong line. I tried this in earlier versions of R on Windows, and the same error happens in every version from R-2.15.3 (the earliest I have) on up. ~~ Michael Sannella [[alternative HTML version deleted]]
2018 Oct 08
2
bug with OutDec option and deferred_string altrep object
...hat you probably wouldn't want to change the deferred_string structure. An alternative fix would be to avoid this case by: 1. Never create a deferred_string if OutDec is not '.'. 2. When expanding an element of a deferred_string, temporarily set OutDec to '.'. ~~ Michael Sannella [[alternative HTML version deleted]]
2018 Oct 22
1
v3 serialization of compact_intseq altrep should write modified data
...5 6 7 8 9 10 > save(x, file="temp.rda", version=3) > load(file="temp.rda") > x [1] 1 2 3 4 5 6 7 8 9 10 > I would have expected the modified vector data to be serialized to the file, and be restored when it is loaded. ~~ Michael Sannella [[alternative HTML version deleted]]
2018 Oct 09
0
bug with OutDec option and deferred_string altrep object
Thanks for the report. The approach you outlines below should work -- I'll look into it. Best, luke On Mon, 8 Oct 2018, Michael Sannella wrote: > While implementing R's new 'altrep' functionality in the TERR engine, > I discovered a bug in R's 'deferred_string' altrep object: it is not > using the correct value of the 'OutDec' option when it expands a > deferred_string.? See the following...
2018 Oct 09
0
R_ext/Altrep.h should be more C++-friendly
...What he does as a workaround is #define class klass extern "C" { #include <R_ext/Altrep.h> } #undef class While we consider changing Altrep.h, the above should work for you in the immediate term. Let me know if it doesn't. ~G On Mon, Oct 8, 2018 at 4:17 PM, Michael Sannella via R-devel < r-devel at r-project.org> wrote: > I am not able to #include "R_ext/Altrep.h" from a C++ file. I think > it needs two changes: > > 1. add the same __cplusplus check as most of the other header files: > #ifdef __cplusplus > extern "C&qu...
2018 Nov 08
0
error unserializing ascii format (v2 or v3)
...ary the error message by varying the entries in the vector, but the gist of it is that something gets misinterpreted and the rest of the data stop making sense. I also tried going explicitly through a text connection, and that seems exactly equivalent. -pd > On 7 Nov 2018, at 23:35 , Michael Sannella via R-devel <r-devel at r-project.org> wrote: > > I ran into an interesting error unserializing a file created with > ascii=TRUE: > > R 3.5.1 (Windows or Linux): >> unserialize(serialize(list(raw=as.raw(c(39,41))), NULL, version=2, > ascii=TRUE)) > Error in uns...
2019 Apr 26
0
R 3.6.0 is released
...ric scale argument is now checked to be positive and allowed to be of length > 1. (The latter worked originally and with a warning in recent years). * Deferred string conversions now record the OutDec option setting when not equal to the default. Reported by Michael Sannella. * When y is numeric and f a factor, plot(y ~ f) nicely uses "y" and "f" as y- and x-labels. The more direct boxplot(y ~ f) now does too. The new argument ann = FALSE may be used to suppress these. * Subassignment to no/empty rows of a data frame is more...
2019 Apr 26
0
R 3.6.0 is released
...ric scale argument is now checked to be positive and allowed to be of length > 1. (The latter worked originally and with a warning in recent years). * Deferred string conversions now record the OutDec option setting when not equal to the default. Reported by Michael Sannella. * When y is numeric and f a factor, plot(y ~ f) nicely uses "y" and "f" as y- and x-labels. The more direct boxplot(y ~ f) now does too. The new argument ann = FALSE may be used to suppress these. * Subassignment to no/empty rows of a data frame is more...
2019 Apr 26
0
R 3.6.0 is released
...ric scale argument is now checked to be positive and allowed to be of length > 1. (The latter worked originally and with a warning in recent years). * Deferred string conversions now record the OutDec option setting when not equal to the default. Reported by Michael Sannella. * When y is numeric and f a factor, plot(y ~ f) nicely uses "y" and "f" as y- and x-labels. The more direct boxplot(y ~ f) now does too. The new argument ann = FALSE may be used to suppress these. * Subassignment to no/empty rows of a data frame is more...