Skip to content
Prev 5231 / 10988 Next

[Rcpp-devel] Rstudio package build and Rcpp::compileAttributes()

Thanks, I'll try this out when I get a chance.

Dale Smith, Ph.D.
Senior Financial Quantitative Analyst
Risk & Compliance
Fiserv
Office: 678-375-5315
www.fiserv.com

-----Original Message-----
From: JJ Allaire [mailto:jj.allaire at gmail.com] 
Sent: Thursday, February 07, 2013 11:49 AM
To: Smith, Dale
Cc: rcpp-devel
Subject: Re: [Rcpp-devel] Rstudio package build and
Rcpp::compileAttributes()

Hi Dale,

In order to ensure that the RcppExports.cpp file is correct it needs to
be deterministically generated, so in all cases we need write access to
it. One possible workaround is this:

- Use a custom SOURCES variable in Makevars to explicitly list the
source files to compile as part of the package

- Don't include RcppExports.cpp in that list

- Add another source file that in turn includes RcppExports.cpp but
wraps it in the required preprocessor directives.

J.J.

On Thu, Feb 7, 2013 at 10:59 AM, Smith, Dale <Dale.Smith at fiserv.com>
wrote:
'C:/Foundation/Common/RiskFinancialLibrary/Prototypes/FiservPrototypes/s
rc/RcppExports.cpp'
Code"?