Re: [R] PSOCK cluster and renice

2017-12-03 Thread Andreas Leha
Hi Henrik, Thanks for the detailed in fast reply! My guess would be that the confusion comes from the different use of nice and renice. The workraund you provided work fine! Thanks a lot. Best, Andreas Henrik Bengtsson writes: > Looks like a bug to me due to wrong assumptions about 'nice

Re: [R] PSOCK cluster and renice

2017-12-03 Thread Henrik Bengtsson
Looks like a bug to me due to wrong assumptions about 'nice' arguments, but could be because a "non-standard" 'nice' is used. If we do: > trace(system, tracer = quote(print(command))) Tracing function "system" in package "base" we see that the system call used is: > cl <- parallel::makePSOCKclu

[R] PSOCK cluster and renice

2017-12-03 Thread Andreas Leha
Hi all, Is it possible to use the 'renice' option together with parallel clusters of type 'PSOCK'? The help page for parallel::makeCluster is not specific about which options are supported on which types and I am getting the following message when passing renice = 19 : > cl <- parallel::makeClus

[R] DATIC 2018 Summer Workshops Using R

2017-12-03 Thread Mccoach, D. Betsy
DATIC (www.datic.uconn.edu) is offering 4 workshops at the University of Connecticut in June, 2018: Mixture Modeling, Introduction to Data Analysis in R, Multilevel Modeling in R, and Dyadic Analysis with R. Registration is now open. Go to www.datic.uconn.edu

Re: [R] Rcpp, dyn.load and C++ problems

2017-12-03 Thread Dirk Eddelbuettel
On 3 December 2017 at 20:30, Martin Møller Skarbiniks Pedersen wrote: | On 3 December 2017 at 20:19, Dirk Eddelbuettel wrote: | Thanks for your answers. I got a few more questions. | | > | > 0) Wrong list. Rcpp has its down, rcpp-devel, and I basically do not read | > this and would have misse

Re: [R] [FORGED] Re: R vs PYTHON vs SAS vs SPSS?

2017-12-03 Thread Jeremie Juste
Rolf Turner writes: > On 01/12/17 20:33, Hasan Diwan wrote: > >> Yes. > > Very true. But some *thinking* is required; that often proves to be a > formidable stumbling block. Or one of the best decision you'll ever take. You cannot master SAS without expensive courses and information does not

Re: [R] Rcpp, dyn.load and C++ problems

2017-12-03 Thread Martin Møller Skarbiniks Pedersen
> > > edd@bud:~$ r -lRcpp -e'sourceCpp("/tmp/mmsp.cpp")' ??? What is r in this case ? A alias for something ? Regards Martin [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://st

Re: [R] Rcpp, dyn.load and C++ problems

2017-12-03 Thread Dirk Eddelbuettel
On 3 December 2017 at 11:08, Peter Langfelder wrote: | I would go to the source, in this case Dirk Eddelbuettel's (I hope I | spelled it correctly) You did. Take a point :) | documentation for Rcpp: | | http://dirk.eddelbuettel.com/code/rcpp/Rcpp-attributes.pdf Yup. And RShowDoc("Rcpp-at

Re: [R] Rcpp, dyn.load and C++ problems

2017-12-03 Thread Martin Møller Skarbiniks Pedersen
On 3 December 2017 at 20:19, Dirk Eddelbuettel wrote: Hi Dirk, Thanks for your answers. I got a few more questions. > > 0) Wrong list. Rcpp has its down, rcpp-devel, and I basically do not read > this and would have missed this were it not for luck. OK. I did found the rcpp-devel mailing-list

Re: [R] Rcpp, dyn.load and C++ problems

2017-12-03 Thread Dirk Eddelbuettel
Martin, You are making your life way too complicated. There are a number of things I would do differently: 0) Wrong list. Rcpp has its down, rcpp-devel, and I basically do not read this and would have missed this were it not for luck. On 3 December 2017 at 02:06, Martin Møller Skarbiniks Peder

Re: [R] Rcpp, dyn.load and C++ problems

2017-12-03 Thread Peter Langfelder
I would go to the source, in this case Dirk Eddelbuettel's (I hope I spelled it correctly) documentation for Rcpp: http://dirk.eddelbuettel.com/code/rcpp/Rcpp-attributes.pdf Note that you need to do sourceCpp("logistic_map.cpp") in R instead of building and dyn.load()-ing the object. HTH, Pet

Re: [R] Rcpp, dyn.load and C++ problems

2017-12-03 Thread Martin Møller Skarbiniks Pedersen
On 3 December 2017 at 05:23, Eric Berger wrote: > > Do a search on "Rcpp calling C++ functions from R" > Thanks. However search for "Rcpp calling C++ functions from R" gives a lot of result but I think some of them are outdated and others don't agree with each other. Can you point to a specific

Re: [R] Rcpp, dyn.load and C++ problems

2017-12-03 Thread Martin Møller Skarbiniks Pedersen
On 3 December 2017 at 05:23, Eric Berger wrote: > .Call("compute_values_cpp") > Also, if you were passing arguments to the C++ function you would need to > declare the function differently. > Do a search on "Rcpp calling C++ functions from R" > > Hi, It is still not working. $ ./compile.sh g+