[Rcpp-devel] Estrategias de Marketing Digital en Uruguay en 2025: La Guía Definitiva

2025-09-20 Thread Marco de Santo
del público uruguayo.___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

[Rcpp-devel] Comparto esta web de interes

2025-09-17 Thread Marco de Santo
Comparto esta web de interes https://elcielo.digital/agencia-de-marketing-digital-en-rosario/___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Estrategias de Marketing Digital en Uruguay en 2025: La Guía Definitiva

2025-09-10 Thread Dirk Eddelbuettel
Sorry -- and my bad. These repeated posts came from the same address which simply re-subscribed following my unscriptions of the address. It is now in 'blocked' list. Dirk -- dirk.eddelbuettel.com | @eddelbuettel | [email protected] ___

[Rcpp-devel] Estrategias de Marketing Digital en Uruguay en 2025: La Guía Definitiva

2025-09-10 Thread Marco de Santo
uruguayo.___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] 3 grandes ventajas de contar con un servicio especializado en Alquiler de impresoras para empresas en 2025

2025-09-07 Thread Dirk Eddelbuettel
The user has been unsubscribed. Sorry for the noise. Dirk -- dirk.eddelbuettel.com | @eddelbuettel | [email protected] ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo

[Rcpp-devel] 3 grandes ventajas de contar con un servicio especializado en Alquiler de impresoras para empresas en 2025

2025-09-07 Thread Marco de Santo
ra que pueda elegir la mejor solución a sus necesidades.___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

[Rcpp-devel] RCPP_UNORDERED_* usage in fwsim

2025-03-19 Thread Iñaki Ucar
titute Universidad Carlos III de Madrid Av. de la Universidad 30, 28911 Leganés, Spain Office: 7.3.J25, Tel: +34 916248804 ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Rcpp Module: Expecting an external pointer: [type=environment]

2025-03-11 Thread Dirk Eddelbuettel
org%3Acran%20RCPP_MODULE&type=code Hope this helps, cheers, Dirk -- dirk.eddelbuettel.com | @eddelbuettel | [email protected] _______ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

[Rcpp-devel] Rcpp Module: Expecting an external pointer: [type=environment]

2025-03-11 Thread Stefan Boehringer
es perform disk based memory mapping which is unmapped in the destructor. I did not succeed in further isolating the problem. Any help appreciated. Thank you in advance. Best,     Stefan ___ Rcpp-devel mailing list [email protected]

Re: [Rcpp-devel] memory not mapped with Rcpp on Ubuntu

2025-02-14 Thread John Clarke
se, I used Rcpp::rcout which worked well because I was running the devtools:test() in a remote R session. ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] memory not mapped with Rcpp on Ubuntu

2025-02-14 Thread Dirk Eddelbuettel
n (see your Subject: line), experience (and about 5 bazillion printf calls) taught a few us that a look in the mirror often is a shortcut to the real driver of bug in our code. Cheers, Dirk -- dirk.eddelbuettel.com | @eddelbuettel | [email protected] _______ Rcp

Re: [Rcpp-devel] memory not mapped with Rcpp on Ubuntu

2025-02-14 Thread John Clarke
s = > > , dll = list(name = "Rcpp", path = "/usr/ > > local/lib/R/site-library/Rcpp/libs/Rcpp.so", dynamicLookup = > > TRUE, handle = , info = > 0x55efaa89aaa0>, forceSymbols = FALSE), numParameters = -1L), > > , , .pointer,

Re: [Rcpp-devel] memory not mapped with Rcpp on Ubuntu

2025-02-13 Thread Serguei Sokol
arameters = -1L), , ,     .pointer, ...)  2: shg$runSimFromFixedValues(N, 0, 0, 1940) Thanks, -John John Clarke | Senior Technical Advisor | Cornerstone Systems Northwest | [email protected] <mailto:[email protected]> ___

[Rcpp-devel] memory not mapped with Rcpp on Ubuntu

2025-02-13 Thread John Clarke
r | Cornerstone Systems Northwest | [email protected] _______ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Using Rcpp::Function in parallel with TBB mutex lock & a reference.

2025-02-10 Thread Kumar MS
eally a relevant example as it operates the other way > around > where you have a `main()` function and want to embed R. What we do with > Rcpp > is typically a running R process from which we call extensions. Not the > same. > > Dirk > > -- > dirk.eddelbuettel.com |

Re: [Rcpp-devel] Using Rcpp::Function in parallel with TBB mutex lock & a reference.

2025-02-08 Thread Dirk Eddelbuettel
.org ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Using Rcpp::Function in parallel with TBB mutex lock & a reference.

2025-02-07 Thread Kumar MS
u put some there. That violates the > recommendation in Writing R Extensions. So I think the outcome you observe > is > as expected. > > Best, Dirk > > -- > dirk.eddelbuettel.com | @eddelbuettel | [email protected] > _______ Rcpp-d

Re: [Rcpp-devel] Using Rcpp::Function in parallel with TBB mutex lock & a reference.

2025-02-07 Thread Dirk Eddelbuettel
o I think the outcome you observe is as expected. Best, Dirk -- dirk.eddelbuettel.com | @eddelbuettel | [email protected] _______ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

[Rcpp-devel] Using Rcpp::Function in parallel with TBB mutex lock & a reference.

2025-02-07 Thread Kumar MS
it Error: C stack usage 17587428350336 is too close to the limit Error: C stack usage 17587424143744 is too close to the limit Error: C stack usage 17587453589888 is too close to the limit Execution halted ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Operating on sparse matrices in a list.

2024-12-11 Thread Dirk Eddelbuettel
pList) > cat("All good\n") All good > -- dirk.eddelbuettel.com | @eddelbuettel | [email protected] ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

[Rcpp-devel] Operating on sparse matrices in a list.

2024-12-11 Thread Kumar MS
lt;- as(cbind( c(1,2,3), c(3,4,5), c(5, 6, 7) ), "dgCMatrix") spList <- list( X, X )accessEntries(spList) # -- Output -- # *** caught segfault ***#address 0x0, cause 'unknown' #Traceback: # 1: .Call(, x) # 2: accessEntries(spList) ___ Rcpp

Re: [Rcpp-devel] for loop and random draws

2024-10-25 Thread Dirk Eddelbuettel
you work it out with smaller and smaller test cases. That still seems like a good idea to me. Good luck, Dirk -- dirk.eddelbuettel.com | @eddelbuettel | [email protected] ___ Rcpp-devel mailing list [email protected] https://lists.r

Re: [Rcpp-devel] for loop and random draws

2024-10-25 Thread Denis Haine
lm as the source of your problem. When we call it, your results differ and there is a side-effect. But when we don't it is still true. I added Environment pkg2 = Environment::namespace_env("base"); Function f2 = pkg2["dim"]; // ... RObject ro = f2(ematrix); while keep

Re: [Rcpp-devel] Inverting a triangular matrix appears slow using Armadillo and openblas

2024-10-20 Thread Iñaki Ucar
t"); > } > clock.stop("timer"); > return; > })" > > # Create large PD matrix > size <- 2000 > set.seed(123) > m <- matrix(rnorm(size^2), size, size) > m <- tcrossprod(m) > diag(m) <- rowSums(abs(m)) + 2 > > sourceCpp(code =

Re: [Rcpp-devel] Inverting a triangular matrix appears slow using Armadillo and openblas

2024-10-18 Thread Dirk Eddelbuettel
, size) | m <- tcrossprod(m) | diag(m) <- rowSums(abs(m)) + 2 | | sourceCpp(code = src) | result <- chol_and_inv(m) | library(RcppClock) | timer | ``` | Best wishes, | ___ | Rcpp-devel mailing list | [email protected]

[Rcpp-devel] Inverting a triangular matrix appears slow using Armadillo and openblas

2024-10-18 Thread Robin Liu
;- rowSums(abs(m)) + 2 sourceCpp(code = src) result <- chol_and_inv(m) library(RcppClock) timer ``` Best wishes, ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] rcmdcheck() failing on "Undocumented S4 class" with RCPP_Module

2024-10-08 Thread John Clarke
had was to use @name to give your existing entry the > (missing) desired name and try @aliases to map back. No idea if that would > work. > > Cheers, Dirk > > -- > dirk.eddelbuettel.com | @eddelbuettel | [email protected] > ___ Rcpp-

Re: [Rcpp-devel] rcmdcheck() failing on "Undocumented S4 class" with RCPP_Module

2024-10-04 Thread Dirk Eddelbuettel
and workarounds. The only other idea I had was to use @name to give your existing entry the (missing) desired name and try @aliases to map back. No idea if that would work. Cheers, Dirk -- dirk.eddelbuettel.com | @eddelbuettel | [email protected] ___ Rcp

Re: [Rcpp-devel] rcmdcheck() failing on "Undocumented S4 class" with RCPP_Module

2024-10-04 Thread Dirk Eddelbuettel
_ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] rcmdcheck() failing on "Undocumented S4 class" with RCPP_Module

2024-10-04 Thread John Clarke
w, you prod roxygen2 with > 'NULL' > blocks to add extra documentation -- that is likely what you need here. The > roxygen2 docs will have more on this. > > Cheers, Dirk > > -- > dirk.eddelbuettel.com | @eddelbuettel | [email protected] > _

Re: [Rcpp-devel] rcmdcheck() failing on "Undocumented S4 class" with RCPP_Module

2024-10-04 Thread Dirk Eddelbuettel
eers, Dirk -- dirk.eddelbuettel.com | @eddelbuettel | [email protected] ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

[Rcpp-devel] rcmdcheck() failing on "Undocumented S4 class" with RCPP_Module

2024-10-04 Thread John Clarke
s Rd, or you can write it in an (empty) R file to be used by roxygen2 (though I still never let roxygen touch my NAMESPACE, DESCRIPTION or other files -- but Rd creation I trust). Dirk ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] for loop and random draws

2024-10-01 Thread Dirk Eddelbuettel
el.com | @eddelbuettel | [email protected] _______ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

[Rcpp-devel] for loop and random draws

2024-10-01 Thread Denis Haine
p(0, 80))) iter <- length(draws) set.seed(1234) t1 <- define_e(iter, obs_mat, draws) set.seed(1234) t2 <- define_e2(iter, obs_mat, draws) all.equal(t1, t2) [1] "Mean relative difference: 2.270964"___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] for loop and random draws

2024-10-01 Thread Denis Haine
art from twice drawing from an RNG after reseed and assert first that the draws are identical. Then add your processing. Dirk_______ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] for loop and random draws

2024-10-01 Thread Dirk Eddelbuettel
from an RNG after reseed and assert first that the draws are identical. Then add your processing. Dirk -- dirk.eddelbuettel.com | @eddelbuettel | [email protected] ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r

Re: [Rcpp-devel] for loop and random draws

2024-10-01 Thread Dirk Eddelbuettel
lf-contained example, and see if it reproduces with / without extended use of R functions called from Rcpp code. Cheers, Dirk -- dirk.eddelbuettel.com | @eddelbuettel | [email protected] ___ Rcpp-devel mailing list [email protected] htt

Re: [Rcpp-devel] Using formula

2024-09-26 Thread Denis Haine
mericMatrix M_coef = mod_sum[12]; | mod_coef = M_coef(2, 1); | | return mod_coef; | } | | | I also tried providing the formula in the call, i.e. NumericVector misclass | (NumericMatrix obs_mat, Formula f) and using it in glm_r, i.e. glm_r(_ | ["formula"] = f, etc. but with the same outcome. | | Thanks,

Re: [Rcpp-devel] Using formula

2024-09-04 Thread Dirk Eddelbuettel
oef = mod_sum[12]; | mod_coef = M_coef(2, 1); | | return mod_coef; | } | | | I also tried providing the formula in the call, i.e. NumericVector misclass | (NumericMatrix obs_mat, Formula f) and using it in glm_r, i.e. glm_r(_ | ["formula"] = f, etc. but with the same outcome. | | T

[Rcpp-devel] Using formula

2024-09-04 Thread Denis Haine
_mat, Formula f) and using it in glm_r, i.e. glm_r(_["formula"] = f, etc. but with the same outcome. Thanks, Denis___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Error installing 1.0.13

2024-07-25 Thread Avraham Adler
that helped. > > > > Feel free to also check with r-release as a baseline. That said, on Linux I > > keep reasonably current (rebuild a week or two) r-devel around. > > > > Dirk > > > > -- > > dirk.eddelbuettel.com | @eddelbuettel | [email protected]

Re: [Rcpp-devel] Error installing 1.0.13

2024-07-24 Thread Kevin Ushey
so) if that helped. > > Feel free to also check with r-release as a baseline. That said, on Linux I > keep reasonably current (rebuild a week or two) r-devel around. > > Dirk > > -- > dirk.eddelbuettel.com | @eddelbuettel | [email protected] > __

Re: [Rcpp-devel] Error installing 1.0.13

2024-07-24 Thread Dirk Eddelbuettel
vel around. Dirk -- dirk.eddelbuettel.com | @eddelbuettel | [email protected] ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Error installing 1.0.13

2024-07-24 Thread Avraham Adler
parison to then define the replacement wrapper. Line 34 _defines_ > a string rather than using. So I am puzzled. Maybe something > is off with your R version? You often run r-devel, don't you? > > In any event, if your R is newer than 4.4.2 maybe (for now) replace the >

Re: [Rcpp-devel] Error installing 1.0.13

2024-07-24 Thread Dirk Eddelbuettel
ybe (for now) replace the conditional logic in compat.h with just the defines ie # define RCPP_STRING_PTR STRING_PTR_RO # define RCPP_VECTOR_PTR VECTOR_PTR_RO and use that? Dirk -- dirk.eddelbuettel.com | @eddelbuettel | [email protected] _______ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

[Rcpp-devel] Error installing 1.0.13

2024-07-24 Thread Avraham Adler
R(x)); // #nocov end | ^~~ make: *** [C:/R/RCurrent/R-devel/etc/x64/Makeconf:296: barrier.o] Error 1 ERROR: compilation failed for package 'Rcpp' ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] CRAN submission with NOTE about STRING_PTR

2024-06-30 Thread Dirk Eddelbuettel
. All this is a lot of work, so don't expect miracles overnight. Cheers, Dirk -- dirk.eddelbuettel.com | @eddelbuettel | [email protected] ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cg

Re: [Rcpp-devel] CRAN submission with NOTE about STRING_PTR

2024-06-30 Thread Juan Domingo Esteve
Telephone: +34-963543572 Fax:+34-963543550 email: [email protected] ____ ___________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] CRAN submission with NOTE about STRING_PTR

2024-06-30 Thread Ralf Stubner
) and got no message concerning those. Also Winbuilder still works fine for these. And I do make use of Rcpp::CharacterVector at least in swephR. Ralf _______ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.or

Re: [Rcpp-devel] CRAN submission with NOTE about STRING_PTR

2024-06-23 Thread Juan Domingo Esteve
____ | Rcpp-devel mailing list | [email protected] | https://urldefense.com/v3/__https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel__;!!D9dNQwwGXtA!TvAt_hVuu_qlqiOt5YVK6UKTrLg3I16AnoWTM

Re: [Rcpp-devel] CRAN submission with NOTE about STRING_PTR

2024-06-23 Thread Dirk Eddelbuettel
ATAPTR so I fear we will just have to grind it out one issue at time. Any and all help is appreciated and welcome so if you learn something in your explorations let us know. Cheers, Dirk | | Thank you very much | | Patrik | _______ | Rcpp-devel mailin

[Rcpp-devel] CRAN submission with NOTE about STRING_PTR

2024-06-23 Thread Patrik Schilter
N which use `Rcpp::CharacterVector` therefore cannot be updated until next year because they will fail the CRAN pre-tests? Thank you very much Patrik _______ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mail

Re: [Rcpp-devel] segfault on exit CRAN+Intel only

2024-03-03 Thread Dirk Eddelbuettel
hich a pointer was found) are not shown. ==2243731== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==2243731== ==2243731== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) edd@rob:~/git/rcpparmadillo/inst/tinytest(master)$ Dirk -- dirk.eddelbuettel.com | @ed

Re: [Rcpp-devel] segfault on exit CRAN+Intel only

2024-03-03 Thread Murray Efford
Cheers, Dirk > > -- > dirk.eddelbuettel.com | @eddelbuettel | [email protected] _______ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] segfault on exit CRAN+Intel only

2024-03-03 Thread Dirk Eddelbuettel
debian.org ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] segfault on exit CRAN+Intel only

2024-03-03 Thread Dirk Eddelbuettel
ot;) = nm; return v; }') > myvec() foo bar 1.23 2.34 > Either works and avoids creation of temporaries at return which the (less widely used !!) Intel compiler may resolve differently from g++ and clang++. So it could be us, and defensive programming is always good but with repros it so ha

[Rcpp-devel] segfault on exit CRAN+Intel only

2024-03-02 Thread Murray Efford
e no experience with docker, so answers in words of one or few syllables, please. Murray ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] RcppArmadillo with -fopenmp: Not using all available cores

2024-03-02 Thread Dirk Eddelbuettel
to why this may not work on server B? | |     | | |     | The actual code I'm running is an R package that includes | RcppArmadillo | |     and | |     | RcppEnsmallen. Server B is the login node to an hpc cluster, but | the code | |     does | | 

Re: [Rcpp-devel] Segfault in wrapping code in Rcpp

2024-03-02 Thread Dirk Eddelbuettel
this helps, Dirk -- dirk.eddelbuettel.com | @eddelbuettel | [email protected] ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] RcppArmadillo with -fopenmp: Not using all available cores

2024-03-02 Thread Robin Liu
10" -I/usr/local/include -fpic > -g > | -O2 -c > | | file158165b9c4ae1.cpp -o file158165b9c4ae1.o > | | g++ -std=gnu++11 -shared -L/sw/R/R-4.2.3/lib64/R/lib > -L/usr/local/lib64 > | -o > | | sourceCpp_2.so file158165b9c4ae1.o -fopenmp -lla

[Rcpp-devel] Segfault in wrapping code in Rcpp

2024-03-01 Thread Nikhil Garg
= randomNormal(0, 1);", r_list, 0) testA$getCellValue(10, 10, 0) and here is what I get when I run the above R code [image: image.png] Any help or suggestions on ways to rectify this issue would be great. Regards, Nikhil ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Limit of 20

2024-02-29 Thread Balasubramanian Narasimhan
number we could chat at? My mobile is 4088964084. I am free any time after 4 -N Balasubramanian Narasimhan From: Rcpp-devel on behalf of Balamuta, James Joseph Sent: Wednesday, December 15, 2021 12:10:12 PM To: [email protected] Subject: Re

Re: [Rcpp-devel] Limit of 20

2024-02-29 Thread Balasubramanian Narasimhan
James Thanks. I updated the page. Meanwhile your bio leads me to ask you a question about a potential project. Smallish. Is there a number we could chat at? My mobile is 4088964084. I am free any time after 4 -N Balasubramanian Narasimhan From: Rcpp-devel on

Re: [Rcpp-devel] RcppArmadillo with -fopenmp: Not using all available cores

2024-02-24 Thread Dirk Eddelbuettel
ib -lR | | | | I thought that the -fopenmp flag should let arma implicitly parallelize | matrix | | computations. Any hints as to why this may not work on server B? | | | | The actual code I'm running is an R package that includes RcppArmadillo | and | | RcppEn

Re: [Rcpp-devel] RcppArmadillo with -fopenmp: Not using all available cores

2024-02-24 Thread Robin Liu
L/usr/local/lib64 > -o > | sourceCpp_2.so file158165b9c4ae1.o -fopenmp -llapack -lblas -lgfortran > -lm > | -lquadmath -L/sw/R/R-4.2.3/lib64/R/lib -lR > | > | I thought that the -fopenmp flag should let arma implicitly parallelize > matrix > | computations. Any

Re: [Rcpp-devel] RcppArmadillo with -fopenmp: Not using all available cores

2024-02-23 Thread Dirk Eddelbuettel
| I thought that the -fopenmp flag should let arma implicitly parallelize matrix | computations. Any hints as to why this may not work on server B? | | The actual code I'm running is an R package that includes RcppArmadillo and | RcppEnsmallen. Server B is the login node to an hpc cluster

[Rcpp-devel] RcppArmadillo with -fopenmp: Not using all available cores

2024-02-23 Thread Robin Liu
R I thought that the -fopenmp flag should let arma implicitly parallelize matrix computations. Any hints as to why this may not work on server B? The actual code I'm running is an R package that includes RcppArmadillo and RcppEnsmallen. Server B is the login node to an hpc cluster, but the co

Re: [Rcpp-devel] Wrapping a c++ class with singleton using RCPP Module

2024-02-21 Thread Nikhil Garg
leton", &GetSingleton); >>> >>> } >>> //From R >>> // library(singleton) >>> // library(Rcpp) >>> // >>> // foo <- Rcpp::Module("foo", PACKAGE = "singleton") >>> // >>> // foo_singleton<-foo$

Re: [Rcpp-devel] Wrapping a c++ class with singleton using RCPP Module

2024-02-21 Thread Matthew Supernaw - NOAA Federal
df9387590 >> // From "Foo& GetSingleton()" -> memory address for singleton is >> 0x7fcdf9387590 >> // From "void SayHello()" -> 0x7fcdf9392b60 -> hello from Foo. >> >> On Wed, Feb 21, 2024 at 1:34 AM Nikhil Garg >> wrote: >> >>> Hi, >>> >>> I am

Re: [Rcpp-devel] Wrapping a c++ class with singleton using RCPP Module

2024-02-21 Thread Matthew Supernaw - NOAA Federal
t; -> 0x7fcdf9392b60 -> hello from Foo. > > On Wed, Feb 21, 2024 at 1:34 AM Nikhil Garg > wrote: > >> Hi, >> >> I am looking for some advice or hoping someone can point me in the right >> direction for wrapping a C++ class with singleton using Rcpp. I ha

Re: [Rcpp-devel] Wrapping a c++ class with singleton using RCPP Module

2024-02-21 Thread Matthew Supernaw - NOAA Federal
using Rcpp. I have been > using RCPP modules for some of this work but got stuck with a C++ object > which returns a singleton. > > Here is the general structure of the object > > class Foo { > public: > Foo(); > ~Foo(); > > static Foo &

Re: [Rcpp-devel] Wrapping a c++ class with singleton using RCPP Module

2024-02-21 Thread Dirk Eddelbuettel
buettel | [email protected] _______ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Wrapping a c++ class with singleton using RCPP Module

2024-02-21 Thread Iñaki Ucar
: > Foo(); > ~Foo(); > > static Foo &getFoo(); > Foo(Foo const&) = delete; > void operator=(Foo const&) = delete; > } > > Regards, > Nikhil > _______ > Rcpp-devel mailing li

[Rcpp-devel] Wrapping a c++ class with singleton using RCPP Module

2024-02-20 Thread Nikhil Garg
class Foo { public: Foo(); ~Foo(); static Foo &getFoo(); Foo(Foo const&) = delete; void operator=(Foo const&) = delete; } Regards, Nikhil ___ Rcpp-devel mailing list [email protected]

Re: [Rcpp-devel] Numerical precision in rotations with Eigen

2024-01-10 Thread Rafael Ayala Hernandez
too. Cheers, Dirk | Thanks a lot in advance | | Best wishes, | | Rafa | | _______ | Rcpp-devel mailing list | [email protected]<mailto:[email protected]> | https://lists.r-forge.r-project.org/cgi-bin/mailma

Re: [Rcpp-devel] Numerical precision in rotations with Eigen

2024-01-10 Thread Dirk Eddelbuettel
rt(eps) is zero' meaning 1e-8. Of course that is too general and may be too broad as "it always depends". Hope this helps a little. Maybe contact some field experts too. Cheers, Dirk | Thanks a lot in advance | | Best wishes, | | Rafa | | _____

[Rcpp-devel] Numerical precision in rotations with Eigen

2024-01-10 Thread Rafael Ayala Hernandez
eems again to be accumulating in the same Z component. Is there anything I could improve in my implementation to avoid these numerical errors? For reference, .Machine$double.eps on my machine is 2.220446e-16 Thanks a lot in advance Best wishes, Rafa __

Re: [Rcpp-devel] Rf_error() format string

2023-11-28 Thread Serguei Sokol
y" need to create `~/.R/Makevars` to tell the compiler to use extended format warnings. That allows you to replicate the CRAN warnings, and ensure rebuild RcppExports.cpp addresses it. If I find time I'll post an example on my blog. Cheers, Dirk _______

Re: [Rcpp-devel] Rf_error() format string

2023-11-28 Thread Dirk Eddelbuettel
rts.cpp addresses it. If I find time I'll post an example on my blog. Cheers, Dirk -- dirk.eddelbuettel.com | @eddelbuettel | [email protected] _______ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Rf_error() format string

2023-11-28 Thread Georgi Boshnakov
The fix apparently is in the master branch. I did: remotes::install_github("RcppCore/Rcpp") and the warnings went away. Don't forget to restart R, in case the previous version of Rcpp has already been loaded. Georgi Boshnakov ____ From:

Re: [Rcpp-devel] Rf_error() format string

2023-11-28 Thread Iñaki Ucar
e plans to incorporate this fix in Rcpp? > Am I alone in this case? > > Best, > Serguei. > ___ > Rcpp-devel mailing list > [email protected] > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel -- Iñaki Úcar Assistant Prof

[Rcpp-devel] Rf_error() format string

2023-11-28 Thread Serguei Sokol
ten at the next RcppExports.cppbuild. Are there some plans to incorporate this fix in Rcpp? Am I alone in this case? Best, Serguei. ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Life-cycle of Rcpp::XPtr

2023-09-25 Thread Iñaki Ucar
); invisible(gc()) #> 0x55a93e3845d0 deleted */ Best, Iñaki -- Iñaki Úcar Assistant Professor of Statistics Director of the Master in Computational Social Science Department of Statistics | Big Data Institute Universidad Carlos III de Madrid Av. de la Universidad 30, 28911 Leganés, Spain Offic

Re: [Rcpp-devel] Life-cycle of Rcpp::XPtr

2023-09-23 Thread Ralf Stubner
s then used throughout the files in src/. Thanks! That does sound interesting. I think for my current use-case the existing functionality is sufficient. But i will have a look at these ideas. Ralf ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Life-cycle of Rcpp::XPtr

2023-09-23 Thread Ralf Stubner
seems to be the behaviour I am looking for. Ralf _______ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Life-cycle of Rcpp::XPtr

2023-09-23 Thread Dirk Eddelbuettel
| @eddelbuettel | [email protected] ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Life-cycle of Rcpp::XPtr

2023-09-23 Thread Dirk Eddelbuettel
L160 and the check_xptr_tag is then used throughout the files in src/. Dirk -- dirk.eddelbuettel.com | @eddelbuettel | [email protected] _______ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Life-cycle of Rcpp::XPtr

2023-09-23 Thread Simon Urbanek
hich would be the desired behaviour. But it would be nice > if one could be sure. > > Thanks > Ralf > ___ > Rcpp-devel mailing list > [email protected] > https://lists.r-forge.r-project.org/cgi-bin/mailman/l

[Rcpp-devel] Life-cycle of Rcpp::XPtr

2023-09-23 Thread Ralf Stubner
desired behaviour. But it would be nice if one could be sure. Thanks Ralf ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Re: [Rcpp-devel] Rcpp::sourceCpp Problem with R 4.3 update

2023-05-30 Thread Dominick Samperi
t;> #>_ >>> #> platform x86_64-w64-mingw32 >>> #> arch x86_64 >>> #> os mingw32 >>> #> crtucrt >>> #> system x86_64, mingw32 >>> #> status >>> #> ma

Re: [Rcpp-devel] Rcpp::sourceCpp Problem with R 4.3 update

2023-05-30 Thread Dominick Samperi
4-mingw32 >> #> arch x86_64 >> #> os mingw32 >> #> crtucrt >> #> system x86_64, mingw32 >> #> status >> #> major 4 >> #> minor 3.0 >> #> year 2023 >>

Re: [Rcpp-devel] Rcpp::sourceCpp Problem with R 4.3 update

2023-05-30 Thread Alexander Ilich
f Rcpp? From: Kevin Ushey Sent: Tuesday, May 30, 2023 3:02 PM To: Alexander Ilich Cc: Dominick Samperi ; rcpp-devel Subject: Re: [Rcpp-devel] Rcpp::sourceCpp Problem with R 4.3 update I'm also not able to reproduce, but I see a different linker invocation: g++ -shared -static-libgcc -o sour

Re: [Rcpp-devel] Rcpp::sourceCpp Problem with R 4.3 update

2023-05-30 Thread Kevin Ushey
2023 > #> month 04 > #> day21 > #> svn rev84292 > #> language R > #> version.string R version 4.3.0 (2023-04-21 ucrt) > #> nickname Already Tomorrow > packageVersion("Rcpp") > #> [1] '1.0

Re: [Rcpp-devel] Rcpp::sourceCpp Problem with R 4.3 update

2023-05-30 Thread Alexander Ilich
21 #> svn rev84292 #> language R #> version.string R version 4.3.0 (2023-04-21 ucrt) #> nickname Already Tomorrow packageVersion("Rcpp") #> [1] '1.0.10' From: Rcpp-devel on behalf of Dominick Sam

Re: [Rcpp-devel] Rcpp::sourceCpp Problem with R 4.3 update

2023-05-30 Thread Dirk Eddelbuettel
ly at your end; maybe new R and old Rtools so something like that. One gets 15 h / months free at posit.cloud (formerly rstudio.cloud), that is good to just run a quick sanity check like this. Dirk -- dirk.eddelbuettel.com | @eddelbuettel | [email protected]

[Rcpp-devel] Rcpp::sourceCpp Problem with R 4.3 update

2023-05-30 Thread Dominick Samperi
s43/x86_64-w64-mingw32.static.posix/lib -Lc:/PROGRA~1/R/R-43~1.0/bin/x64 -lR Error in Rcpp::sourceCpp(code = "\n #include \n using namespace Rcpp;\n // [[Rcpp::export()]]\n SEXP cpptest(NumericVector v) {\n return v;\n }") : Error occurred building shared library. Thanks, Dominick _

Re: [Rcpp-devel] Locating an Instance of a Reference Class in the Environment

2023-03-28 Thread Matthew Supernaw - NOAA Federal
> there is > | >> >| much more information available. ls() only returns a list of > objects > | by > | >> their > | >> >| declared name. I'm wondering how to get more details about > elements > | in > | >> the > | >&

Re: [Rcpp-devel] Locating an Instance of a Reference Class in the Environment

2023-03-28 Thread Dirk Eddelbuettel
| >> > | >> >Thanks for additional color.  That may be a very interesting and | valuable | >> >question _for the C API of R_ and youe guess of "maybe Rcpp has a | helper" | >> is | >> >a good one.  Sadly, I fear we may

Re: [Rcpp-devel] Locating an Instance of a Reference Class in the Environment

2023-03-28 Thread Matthew Supernaw - NOAA Federal
ation available. ls() only returns a list of objects > by > >> their > >> >| declared name. I'm wondering how to get more details about elements > in > >> the > >> >| environment. > >> > > >> >Thanks for additional color. T

Re: [Rcpp-devel] Locating an Instance of a Reference Class in the Environment

2023-03-24 Thread Jeff Newmiller
> >| environment. >> > >> >Thanks for additional color. That may be a very interesting and valuable >> >question _for the C API of R_ and youe guess of "maybe Rcpp has a helper" >> is >> >a good one. Sadly, I fear we may not have anything

  1   2   3   4   5   6   7   8   9   10   >