Re: [Rcpp-devel] Function changing the value of objects in global environment

2014-02-01 Thread Dirk Eddelbuettel
Nick, On 1 February 2014 at 20:14, Nick Menzies wrote: | Hi all,  | | I am relatively new to Rcpp and a bit confused about the behavior I am seeing | from an Rcpp function. It seems that a function created with Rcpp can modify | the value of objects in the global environment, yet this behavior d

[Rcpp-devel] Function changing the value of objects in global environment

2014-02-01 Thread Nick Menzies
Hi all, I am relatively new to Rcpp and a bit confused about the behavior I am seeing from an Rcpp function. It seems that a function created with Rcpp can modify the value of objects in the global environment, yet this behavior depended on the nature of the object. I realize I could code things d