Skip to content

[Rcpp-devel] Fwd: Extending <Rcpp/module/Module_generated_class_constructor.h>

7 messages · Tama Ma, Dirk Eddelbuettel

#
Oops, I replied to the wrong email...

Tama Ma


Begin forwarded message:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20101203/b569f27b/attachment-0002.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-r2695.txt
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20101203/b569f27b/attachment-0001.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20101203/b569f27b/attachment-0003.htm>
#
Tama,
On 3 December 2010 at 22:07, Tama Ma wrote:
| Oops, I replied to the wrong email...
| 
| Tama Ma
| 
| 
| Begin forwarded message:
| 
| 
|     From: Tama Ma <pingnang at phys.ethz.ch>
|     Date: December 3, 2010 10:04:51 PM GMT+01:00
|     To: Romain Francois <romain at r-enthusiasts.com>
|     Cc: rcpp-devel-request at lists.r-forge.r-project.org
|     Subject: Re: [Rcpp-devel] Extending <Rcpp/module/
|     Module_generated_class_constructor.h>
| 
|     Dear Romain,
| 
|     It happens that <Module_generated_ctor_signature.h> has to be modified as
|     well. Hmm, this tricked me off somehow by not showing up as a compilation
|     error.
|     Anyway, this is the corrected patch.

I still get a seg fault in 'R CMD check' for current SVN plus your two
patches.  Please do run 'R CMD check'.

Thanks, Dirk
#
Tama,
On 3 December 2010 at 15:16, Dirk Eddelbuettel wrote:
| I still get a seg fault in 'R CMD check' for current SVN plus your two
| patches.  Please do run 'R CMD check'.

Sorry -- that was a combination of my being one checkout behind on the inline
package and what looks like an actual typo in one of the unit tests.  

So no error of yours, and no worries.  Thanks again for the contribution.

Cheers, Dirk
#
Dear Dirk,

	Thank you very much for updating the svn so fast. Well, I must admit that I only started to learn R and Rcpp yesterday, so I am very new to this business. 

	To r2697, I first do a  cleanup  followed by  R CMD INSTALL Rcpp -I /path/to/my/Rcpp/directory  . It runs okay, and my own program compiles as well. 

	However, following what you have suggested, I find an error as well, given as follows:

Tama-Mas-MacBook-Pro:pkg tamama$ pwd
/opt/local/share/Rcpp-svn/pkg
Tama-Mas-MacBook-Pro:pkg tamama$ sudo R CMD check Rcpp
* using log directory ?/opt/local/share/Rcpp-svn/pkg/Rcpp.Rcheck?
* using R version 2.12.0 (2010-10-15)
* using platform: x86_64-apple-darwin10.5.0 (64-bit)
* using session charset: UTF-8
* checking for file ?Rcpp/DESCRIPTION? ... OK
* this is package ?Rcpp? version ?0.8.9.3?
* checking package name space information ... OK
* checking package dependencies ... ERROR
Packages required but not available:
  RUnit inline rbenchmark

See the information on DESCRIPTION files in the chapter 'Creating R
packages' of the 'Writing R Extensions' manual.
Tama-Mas-MacBook-Pro:pkg tamama$ 


	I don't know what this RUnit is, anyway I will try to locate where the possible error is.

	Thank you very much.

Best regards,
Tama Ma
On Dec 3, 2010, at 10:20 PM, Dirk Eddelbuettel wrote:

            
#
Dear Dirk,

	Good to hear this!

Best regards,
Tama Ma
On Dec 3, 2010, at 10:53 PM, Dirk Eddelbuettel wrote:

            
#
Hi Tama,
On 3 December 2010 at 22:55, Tama Ma wrote:
| Dear Dirk,
| 
| 	Thank you very much for updating the svn so fast. Well, I must admit that I only started to learn R and Rcpp yesterday, so I am very new to this business. 
| 
| 	To r2697, I first do a  cleanup  followed by  R CMD INSTALL Rcpp -I /path/to/my/Rcpp/directory  . It runs okay, and my own program compiles as well. 
| 
| 	However, following what you have suggested, I find an error as well, given as follows:
| 
| Tama-Mas-MacBook-Pro:pkg tamama$ pwd
| /opt/local/share/Rcpp-svn/pkg
| Tama-Mas-MacBook-Pro:pkg tamama$ sudo R CMD check Rcpp
| * using log directory ?/opt/local/share/Rcpp-svn/pkg/Rcpp.Rcheck?
| * using R version 2.12.0 (2010-10-15)
| * using platform: x86_64-apple-darwin10.5.0 (64-bit)
| * using session charset: UTF-8
| * checking for file ?Rcpp/DESCRIPTION? ... OK
| * this is package ?Rcpp? version ?0.8.9.3?
| * checking package name space information ... OK
| * checking package dependencies ... ERROR
| Packages required but not available:
|   RUnit inline rbenchmark

Yes, R tells you that you'd need packages RUnit, inline and rbenchmark from
CRAN. Feel free to install them and try again -- but as I found out the hard
way you also need rev41 of inline from its SVN on R-Forge.

But with that and rev2699 of Rcpp, you should be good and see that your patch
applied cleanly :)

Cheers, Dirk