Re: [Rcpp-devel] Please help in testing what will be Rcpp 1.0.5

2020-06-16 Thread Thell Fowler
: > Your Makevar.site is incorrect. Replace > CXX11 = $CXX > with > CXX11 = $(CXX) > > $CXX only expands the macro 'C', not 'CXX'. Since C is not defined $CXX > expands to XX. > > Bill Dunlap > TIBCO Software > wdunlap tibco.com > >

Re: [Rcpp-devel] Please help in testing what will be Rcpp 1.0.5

2020-06-16 Thread Thell Fowler
Windows 10 Pro 200419041.329 WSL Version 2 Linux DESKTOP-K8EN726 4.19.104-microsoft-standard #1 SMP Wed Feb 19 06:37:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Distributor ID: Ubuntu Description:Ubuntu 20.04 LTS Release:20.04 Codename: focal Sys.setenv("RunAllRcppTests"="ye

Re: [Rcpp-devel] correct way of making custom as and wrap functions available to other packages

2015-07-17 Thread Thell Fowler
Simon, Not sure if it'll help but take a look at https://github.com/Thell/RcppMultiPrecision/tree/wip-mpreal-wrappers Particularly the flags.R, inline.R and mpreal_wrap_example.cpp. When I built this Dirk pointed me to several example packages in the thread [Rcpp-devel] Rcpp RMpfr mpreal to mpfr

[Rcpp-devel] sourec repo: travis.yml

2014-03-15 Thread Thell Fowler
On the install_r line rbenchmark is listed. Is rbenchmark used in some way for performance regression testing or simply to support the build process for the vignettes and such? -- Sincerely, Thell ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-

Re: [Rcpp-devel] Fwd: Exposed class works within cpp func, bombs via module

2014-02-28 Thread Thell Fowler
On Fri, Feb 28, 2014 at 5:28 PM, Kevin Ushey wrote: > Hi Thell, > > Thanks for all the work you've done investigating this. Can you please > consolidate the information you have and post it as an issue here: > https://github.com/RcppCore/Rcpp/issues?state=open? > > And, if you're willing to dive i

Re: [Rcpp-devel] Fwd: Exposed class works within cpp func, bombs via module

2014-02-28 Thread Thell Fowler
On Wed, Feb 26, 2014 at 1:48 PM, Thell Fowler wrote: > On Wed, Feb 26, 2014 at 12:56 PM, Thell Fowler wrote: >> On Wed, Feb 26, 2014 at 12:33 PM, Dirk Eddelbuettel wrote: >>> >>> On 26 February 2014 at 12:26, Thell Fowler wrote: >>> | BTW - what was

[Rcpp-devel] Cost of RCPP_EXPOSED_CLASS pre/post population (post substantially lower)

2014-02-26 Thread Thell Fowler
Possibly interesting results; at least to anyone who may typically construct and populate a class in the constructor... > Rcpp::sourceCpp('VectorCreation.cpp') > v1 <- function(len) {v<-make_preVector(len); v$vec } > v2 <- function(len) {v<-make_postVector(); v$populate(len); v$vec } > identica

Re: [Rcpp-devel] Fwd: Exposed class works within cpp func, bombs via module

2014-02-26 Thread Thell Fowler
On Wed, Feb 26, 2014 at 12:56 PM, Thell Fowler wrote: > On Wed, Feb 26, 2014 at 12:33 PM, Dirk Eddelbuettel wrote: >> >> On 26 February 2014 at 12:26, Thell Fowler wrote: >> | BTW - what was the fix/issue you tackled yesterday? Possibly any relation? >> >> U

Re: [Rcpp-devel] Fwd: Exposed class works within cpp func, bombs via module

2014-02-26 Thread Thell Fowler
On Wed, Feb 26, 2014 at 12:33 PM, Dirk Eddelbuettel wrote: > > On 26 February 2014 at 12:26, Thell Fowler wrote: > | BTW - what was the fix/issue you tackled yesterday? Possibly any relation? > > Unrelated, mostly, as it was a for loop with iterators using comparison > (wrong

Re: [Rcpp-devel] Exposed class works within cpp func, bombs via module

2014-02-26 Thread Thell Fowler
On Wed, Feb 26, 2014 at 12:26 PM, Thell Fowler wrote: > resend including list > > -- Forwarded message -- > From: Thell Fowler > Date: Wed, Feb 26, 2014 at 12:25 PM > Subject: Re: [Rcpp-devel] Exposed class works within cpp func, bombs via > module &g

[Rcpp-devel] Fwd: Exposed class works within cpp func, bombs via module

2014-02-26 Thread Thell Fowler
resend including list -- Forwarded message -- From: Thell Fowler Date: Wed, Feb 26, 2014 at 12:25 PM Subject: Re: [Rcpp-devel] Exposed class works within cpp func, bombs via module To: Dirk Eddelbuettel On Wed, Feb 26, 2014 at 11:46 AM, Dirk Eddelbuettel wrote: > >

[Rcpp-devel] Exposed class works within cpp func, bombs via module

2014-02-26 Thread Thell Fowler
I'm getting:: *** Error in `/usr/lib/rstudio/bin/rsession': malloc(): smallbin double linked list corrupted: 0x03436090 ***-- It is a small class for iterative compositions. It looks like there's a bad_alloc between the R and C++ sides of things but I'm not quite sure what to check on it

Re: [Rcpp-devel] Rcpp, Windows and CMake

2014-01-29 Thread Thell Fowler
On Wed, Jan 29, 2014 at 9:39 AM, Jamie Olson wrote: > Hi all, > I'm a relative beginner in c/c++ and I'm trying to use c/c++ libraries > in an R package. I need it to work in Windows, though, and I'm > struggling to get things working. > > --- >8--- > It might help to state what c/c++ libraries

[Rcpp-devel] Playing around with Rtools and gcc 4.8.1

2013-12-10 Thread Thell Fowler
Hi all, The other day I played around with using gcc 4.8.1 via mingw-builds, explicitly x32-4.8.1-win32-sjlj-rev5 & x32-4.8.1-posix-sjlj-rev5 and successfully built and installed Rcpp and it's dependencies with R-3.0.2 shell and with RStudio 0.98.484. After the install of rcpp I was able to then

[Rcpp-devel] R, RStudio, Rcpp Appreciation

2013-12-08 Thread Thell Fowler
Many times we [devs & users] get into a zone and go on extended binges into our own projects neglecting the niceties of society. Then, while either still on a particular path or even when we reach our destination, we don't directly state our appreciation for those special individuals whose project

Re: [Rcpp-devel] Build of Rcpp from svn failure

2012-12-16 Thread Thell Fowler
to see the results. Thanks for the heads-up on ccache, it'll be interesting to see how it plays with clang. On Sun, Dec 16, 2012 at 11:53 AM, Dirk Eddelbuettel wrote: > > On 16 December 2012 at 11:23, Thell Fowler wrote: > | endings in src/Timer.cpp , and jss.bst already b

Re: [Rcpp-devel] Build of Rcpp from svn failure

2012-12-16 Thread Thell Fowler
Wow, they actually completed! In the end, 3 warnings, 2 notes, no errors. :thumbs-up: On Sun, Dec 16, 2012 at 11:23 AM, Thell Fowler wrote: > Yep, and that's with -std=c++11; which I totally thank you guys for > correcting the issue with unordered_set. > > There are a f

Re: [Rcpp-devel] Build of Rcpp from svn failure

2012-12-16 Thread Thell Fowler
ader order. > > While you're there, does R CMD check Rcpp work fine ? > > Romain > > > > Le 16 déc. 2012 à 18:04, Thell Fowler a écrit : > > diff --git a/pkg/Rcpp/src/exceptions.cpp b/pkg/Rcpp/src/exceptions.cpp > index f46573b..7ff0f28 100644 > --- a/p

Re: [Rcpp-devel] Build of Rcpp from svn failure

2012-12-16 Thread Thell Fowler
diff --git a/pkg/Rcpp/src/exceptions.cpp b/pkg/Rcpp/src/exceptions.cpp index f46573b..7ff0f28 100644 --- a/pkg/Rcpp/src/exceptions.cpp +++ b/pkg/Rcpp/src/exceptions.cpp @@ -20,6 +20,7 @@ // along with Rcpp. If not, see . #include +#include #define R_NO_REMAP #i

[Rcpp-devel] Build of Rcpp from svn failure

2012-12-16 Thread Thell Fowler
Just a note: Build of svn head is resulting in a failure on debian precise with clang 3.3:: exceptions.cpp:108:38: error: you need to include before using the ‘typeid’ operator std::string ex_class = demangle( typeid(ex).name() ) ; Resetting to r4157 allowed successful source package build

Re: [Rcpp-devel] Why would sourceCpp using both clang and gcc?

2012-11-30 Thread Thell Fowler
Thanks Dirk; that's the ticket. On Fri, Nov 30, 2012 at 6:40 PM, Dirk Eddelbuettel wrote: > > On 30 November 2012 at 17:16, Thell Fowler wrote: > | Ubuntu precise with clang 3.3 and gcc 4.6.3 with R 2.15.2 and Rcpp > 0.10.1 when > | calling sourceCpp gives output I'

Re: [Rcpp-devel] Why would sourceCpp using both clang and gcc?

2012-11-30 Thread Thell Fowler
Thanks, will do. On Fri, Nov 30, 2012 at 5:43 PM, JJ Allaire wrote: > > What would make clang _not_ get used for both phases? My Makevars shows > > > > CC="clang" > > CXX="clang++" > > CPP="clang-cpp" > > All we do is call R CMD SHLIB (we don't explicitly invoke the compiler > or linker) so I

[Rcpp-devel] Why would sourceCpp using both clang and gcc?

2012-11-30 Thread Thell Fowler
Ubuntu precise with clang 3.3 and gcc 4.6.3 with R 2.15.2 and Rcpp 0.10.1 when calling sourceCpp gives output I'm not quite understanding... > sourceCpp("~/src/TestPackageDepends2/inst/examples/CallFunction.cpp",verbose=T, rebuild=T) Generated Rcpp module declaration:

Re: [Rcpp-devel] Rcpp::depends not picking up inst/include/

2012-11-30 Thread Thell Fowler
On Fri, Nov 30, 2012 at 3:46 PM, JJ Allaire wrote: > One extra clarifying note: when you move from a purely generated > package header file to one that mixes user and generated headers you > need to remove the generator token from the main package header. For > example: > > https://github.com/jjal

Re: [Rcpp-devel] Rcpp::depends not picking up inst/include/

2012-11-30 Thread Thell Fowler
On Fri, Nov 30, 2012 at 2:04 PM, JJ Allaire wrote: >> That section, if I'm reading correctly states that if the package (the >> one from Rcpp::depends) exports a plugin then it will add it to the >> linkingtoPackages and if it doesn't then it won't and these are what >> are processed by .buildCli

Re: [Rcpp-devel] Rcpp::depends not picking up inst/include/

2012-11-30 Thread Thell Fowler
On Fri, Nov 30, 2012 at 12:28 PM, JJ Allaire wrote: >> Looking through the source of ./pkg/Rcpp/R/Attributes.R contains it seems >> that a depended upon package _must_ define a plugin if the inst/include is >> to get appended to the sourced files build environment. > > > We do indeed add inst/incl

[Rcpp-devel] Rcpp::depends not picking up inst/include/

2012-11-30 Thread Thell Fowler
Hi all! I've been trying to determine why the inst/include/ path is not being added to the compile flags when using Rcpp::depends in a simple sourced .cpp which depends on a .hpp of my package. Looking through the source of ./pkg/Rcpp/R/Attributes.R contains it seems that a depended upon package

Re: [Rcpp-devel] Rcpp advocacy question -- build environment

2012-11-27 Thread Thell Fowler
Christian, While this isn't a direct answer to your question I am wondering if you have seen http://support.rstudio.org/help/kb/faq/deploying-rstudio-server-for-classrooms. The students can just log on and go... This would eliminate the need to either teach or expect the knowledge of setting up

Re: [Rcpp-devel] Formatting Fixed - Clang 3.0 and 3.3 errors on sugar/set.h

2012-11-19 Thread Thell Fowler
On Mon, Nov 19, 2012 at 1:36 PM, Dirk Eddelbuettel wrote: > > On 19 November 2012 at 19:18, Chris Jefferson wrote: > | This is also fixed in svn (having just checked it out). > > Thanks for that! > > | You can locally fix it by changing line 36 from: > | > | conversion_to_bool_is_forbidden{ > |

Re: [Rcpp-devel] Formatting Fixed - Clang 3.0 and 3.3 errors on sugar/set.h

2012-11-19 Thread Thell Fowler
On Mon, Nov 19, 2012 at 1:18 PM, Chris Jefferson wrote: > On 19/11/12 18:58, Thell Fowler wrote: > > Chris, > > > On Mon, Nov 19, 2012 at 12:40 PM, Chris Jefferson > wrote: > >> On 19/11/12 17:33, Thell Fowler wrote: >> >>> >>> /home/thel

Re: [Rcpp-devel] Formatting Fixed - Clang 3.0 and 3.3 errors on sugar/set.h

2012-11-19 Thread Thell Fowler
Chris, On Mon, Nov 19, 2012 at 12:40 PM, Chris Jefferson wrote: > On 19/11/12 17:33, Thell Fowler wrote: > >> >> /home/thell/R/library/Rcpp/**include/Rcpp/sugar/sets.h:28:**2: error: >> invalid preprocessing directive >> #elseif defined(HAS_TR1_UNORDERED_SET) >

Re: [Rcpp-devel] Clang 3.0 and 3.3 errors on sugar/set.h

2012-11-19 Thread Thell Fowler
39 AM, Dirk Eddelbuettel wrote: > > On 19 November 2012 at 11:22, Thell Fowler wrote: > | First:: Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based > on LLVM 3.0) > || > | > | > | >> setting environment variables: > | PKG_LIBS = -lmpfr -lgmp -L/home

[Rcpp-devel] Formatting Fixed - Clang 3.0 and 3.3 errors on sugar/set.h

2012-11-19 Thread Thell Fowler
First:: Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0) >> setting environment variables: PKG_LIBS = -lmpfr -lgmp -L/home/thell/R/library/Rcpp/lib -lRcpp -Wl,-rpath,/home/thell/R/library/Rcpp/lib PKG_CPPFLAGS = -std=c++11 >> LinkingTo : Rcpp CLINK_CPPFLAGS = -I"/

[Rcpp-devel] Clang 3.0 and 3.3 errors on sugar/set.h

2012-11-19 Thread Thell Fowler
First:: Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0) >> setting environment variables: PKG_LIBS = -lmpfr -lgmp -L/home/thell/R/library/Rcpp/lib -lRcpp -Wl,-rpath,/home/thell/R/library/Rcpp/lib PKG_CPPFLAGS = -std=c++11 >> LinkingTo : Rcpp CLINK_CPPFLAGS = -I"/

Re: [Rcpp-devel] Rcpp RMpfr mpreal to mpfr wrapping

2012-11-18 Thread Thell Fowler
On Sun, Nov 18, 2012 at 2:17 PM, Romain Francois wrote: > Hello, > > You don't need to wrap an "Rcpp::S4", as these are already R objects, so > an implicit conversion to SEXP already exists. > > Same here: > > > vS4.slot("exp") = wrap( exp ); > > you don't need this wrap, you should be able to jus

[Rcpp-devel] Fwd: Rcpp RMpfr mpreal to mpfr wrapping

2012-11-18 Thread Thell Fowler
-- Forwarded message -- From: Thell Fowler Date: Sun, Nov 18, 2012 at 3:03 PM Subject: Re: [Rcpp-devel] Rcpp RMpfr mpreal to mpfr wrapping To: Dirk Eddelbuettel On Sun, Nov 18, 2012 at 1:59 PM, Dirk Eddelbuettel wrote: > > Hi Thell, > > On 18 November 2012 at

Re: [Rcpp-devel] Rcpp RMpfr mpreal to mpfr wrapping

2012-11-18 Thread Thell Fowler
Forgot to mention I don't have access to 64bit at the moment, so that hasn't been tested at all, and just the 32bit stuff has been played with. ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/

[Rcpp-devel] Rcpp RMpfr mpreal to mpfr wrapping

2012-11-18 Thread Thell Fowler
Hi all. I've been doing some testing on how to get arbitrary precision numbers out of c++ and into R. The following example inline Rcpp code generates an RcppMpfr cxxfunction plugin for wrapping to the Rmpfr S4 "mpfr1" object. There are local include paths that need adjusting (for now) to your

Re: [Rcpp-devel] Example of rcpp usage with Rmpfr, mpfr, gmp.

2012-04-25 Thread Thell Fowler
On Sun, Apr 22, 2012 at 12:13 PM, Dirk Eddelbuettel wrote: > On 22 April 2012 at 11:41, Thell Fowler wrote: > | On Sun, Apr 22, 2012 at 10:49 AM, Dirk Eddelbuettel > wrote: > | On 22 April 2012 at 10:17, Thell Fowler wrote: > > | | Any examples or direction on how (if

[Rcpp-devel] Inline and Parallel Computing

2012-04-22 Thread Thell Fowler
I had similar needs and found the simplest thing to do was to make the function on each worker node... library(inline) library(parallel) # A silly Rcpp function silly.src <- ' int x = as(i); double y = 5.6; NumericVector j(1); j[0] = x + y; return j; ' M <- detectCores() cl <- makeClu

[Rcpp-devel] Example of rcpp usage with Rmpfr, mpfr, gmp.

2012-04-22 Thread Thell Fowler
-- Forwarded message -- From: Thell Fowler Date: Sun, Apr 22, 2012 at 11:18 AM Subject: Re: [Rcpp-devel] Example of rcpp usage with Rmpfr, mpfr, gmp. To: Dirk Eddelbuettel On Sun, Apr 22, 2012 at 10:49 AM, Dirk Eddelbuettel wrote: > > Hi Thell, > > On 22 April 2

[Rcpp-devel] Example of rcpp usage with Rmpfr, mpfr, gmp.

2012-04-22 Thread Thell Fowler
First, let me say what a great and I truly mean great tool inline and Rcpp have been, along with R2.15-devel and the related Rtools ( now, no longer -devel, so congrat on that! ). I'm doing a massive amount of calculations with the hypergeometric distribution, that in my original R code would take