Re: [Rcpp-devel] Problem with RCPP Paralell

2023-02-27 Thread Roberto Spadim
_ that reproduces the same issue. It may make > > >addressing it easier than working with a full package and its > dependencies. > > > > > > Hope this helps a little, Dirk > > > > > > -- > > > dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org > > > ___ > > > Rcpp-devel mailing list > > > Rcpp-devel@lists.r-forge.r-project.org > > > > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel > -- Roberto Spadim SPAEmpresarial - Software ERP/Scada Eng. Automação e Controle, Eng. Financeira ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

[Rcpp-devel] Problem with RCPP Paralell

2023-02-23 Thread Roberto Spadim
See 'd:/RCompile/CRANincoming/R-devel/NNS.Rcheck/00install.out' for details. * used C++ compiler: 'g++.exe (GCC) 12.2.0' -- Roberto Spadim ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Need some hep reading files

2022-08-03 Thread Roberto Spadim
I don't know if I'm clear in last message What I want to do is something like this, but i don't know if Rcpp can 'convert' the ifstream to SEXP and keep the object intact: One RCPP function to open the file and return the "ifstream" object ifstream some_open_function(){ ifstream infile; infi

[Rcpp-devel] Need some hep reading files

2022-08-03 Thread Roberto Spadim
some kind of object to “filehandle” where i could avoid fopen fseek fread fclose every time i need to call read data function? Or maybe return an index of a rcpp side array of file handlers -- Roberto Spadim SPAEmpresarial - Software ERP/Scada Eng. Automação e Controle, Eng. Financeira

Re: [Rcpp-devel] Help reading libzma file

2022-06-23 Thread Roberto Spadim
Nice, thanks Dirk, I will test it! Em qui., 23 de jun. de 2022 às 21:28, Dirk Eddelbuettel escreveu: > > On 23 June 2022 at 20:46, Roberto Spadim wrote: > | Uhm, yes I see > | I testd with package, and linux, it works > | But with Windows it don't find the liblzma > &g

Re: [Rcpp-devel] Help reading libzma file

2022-06-23 Thread Roberto Spadim
Uhm, yes I see I testd with package, and linux, it works But with Windows it don't find the liblzma Em qui., 23 de jun. de 2022 às 07:59, Dirk Eddelbuettel escreveu: > > On 23 June 2022 at 10:05, Serguei Sokol wrote: > | Le 23/06/2022 à 04:07, Roberto Spadim a écrit :

[Rcpp-devel] Help reading libzma file

2022-06-22 Thread Roberto Spadim
Hi folks I have a .xz file and need to read it and "convert" to a DataFrame using Rcpp if possible. But... I'm with a problem (first time testing this) using liblzma with Rcpp, I already know how to do this with CMakeLists.txt, but I don't know how to do with RCpp Anyone have an idea? Output fr

[Rcpp-devel] IDE

2022-05-19 Thread Roberto Spadim
Hi folks! Is there any way to use CLion ide to code RCpp? Have anyone tried? -- Roberto Spadim ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Doubt about best pratices

2022-05-01 Thread Roberto Spadim
to accomodate. > > Dirk > > -- > dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org -- Roberto Spadim SPAEmpresarial - Software ERP/Scada Eng. Automação e Controle, Eng. Financeira ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Doubt about best pratices

2022-04-30 Thread Roberto Spadim
elements are the same. > > It sounds like you need matrices for your algorithm. I would simply > require that... or attempt to convert it immediately and stop if the result > is not numeric. > > On April 30, 2022 10:16:04 AM PDT, Roberto Spadim > wrote: > >Hi folks! >

[Rcpp-devel] Doubt about best pratices

2022-04-30 Thread Roberto Spadim
g with data but here it's sure to be: NumericVector (variable_vector) NumericMatrix (variable_matrix) ... } -- Roberto Spadim ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

[Rcpp-devel] help with data.frame and numericvector

2022-04-27 Thread Roberto Spadim
Hello folks, I'm converting some R functions to RCpp at https://github.com/OVVO-Financial/NNS/ My problem is with a R "cast" function https://github.com/OVVO-Financial/NNS/blob/d3f37c6f217a41ce15b31f7a840b6b1ad63e5f36/R/Partial_Moments.R#L20 basically this line: --- LPM <- function(degree, targ