Re: [Rcpp-devel] Incorrect result of NA_REAL and NA_INTEGER

2020-09-08 Thread Akhila Chowdary Kolla
> Failure of d will give you the "unknown input format" error'. Failure > of c means you used compress=FALSE in the call to saveRDS. > > -Bill > > On Tue, Sep 8, 2020 at 4:11 PM Dirk Eddelbuettel wrote: > >> >> On 8 September 2020 at 16:03, Akhila Chowdary

Re: [Rcpp-devel] Incorrect result of NA_REAL and NA_INTEGER

2020-09-08 Thread Akhila Chowdary Kolla
ction. I still get the same unknown input format error. Rcpp::NumericMatrix mat = RcppDeepState_NumericMatrix(); Environment base("package:base"); Function saveRDS = base["saveRDS"]; saveRDS(mat,Named("file","mat.RDs")); Function readRDS = base["readRDS&qu

[Rcpp-devel] Incorrect result of NA_REAL and NA_INTEGER

2020-09-04 Thread Akhila Chowdary Kolla
Hello Everyone, I am trying to use NA_REAL, NA_INTEGER, and R_NaN in my CPP code(doesn't use R main). When I compile and run my code,* NA_REAL* it gives the value as *nan* and *NA_INTEGER* gives the value as *-2147483648, and R_NaN as 0*. I used the following code(from Rcpp FAQ): Rcpp::IntegerVec

[Rcpp-devel] Issues creating static library using Makevars

2020-06-26 Thread Akhila Chowdary Kolla
, nor use Fortran I/O nor system RNGs. - what does this mean?* how can I solve this issue and get rid of the warning in the R CMD check? Can someone please suggest a way to resolve this? Regards, Akhila Chowdary Kolla ___ Rcpp-devel mailing list Rcpp

[Rcpp-devel] Zero length vectors in R

2020-06-08 Thread Akhila Chowdary Kolla
Hello everyone, I am trying to test a package binsegRcpp. I pass the size of max_segments vector as zero it doesn't throw any segfault when I am trying to access the zeroth index element. Instead gives a garbage value or error like negative length vectors not allowed. Rcpp::List rcpp_binseg_normal

[Rcpp-devel] Linking R package to a static library(For testing) resulting compilation failure

2020-03-21 Thread Akhila Chowdary Kolla
Hello, I am trying to link the Rcpp package with "deepstate" which is a static library helps us fuzz test the functions in the Rcpp package. TestHarness.cpp file creates a test harness using TEST(). Test harness file in RcppDeepState/src/TestHarness.cpp has code to test the function in rcpp_inter