search for: global_env

Displaying 6 results from an estimated 6 matches for "global_env".

Did you mean: global_end
2012 Mar 01
1
mb_m buffer not cleared if parseEval fails
...en the mb_m is not cleared and hence all subsequent calls to R.parseEval fail. example: when R.parseEval("stringConcatfactoryrandom") is executed the R instance looks like this (gdb) p R $7 = (RInside &) @0x7fff13d42d10: {mb_m = {buffer = "stringConcatfactoryrandom"}, global_env = <incomplete type>, verbose_m = false, static instance_ = 0x7fff13d42d10} since there's no function called stringConcatfactoryrandom in my R code, the above call fails. The I use the same R instance to call R.parseEval("exists") and I get this (gdb) p R $8 = (RInside &...
2012 Oct 24
3
puppet facter variable substring
Hi I have a serires of servers that their hostname (not FQDN) is built in the same manner [header, 3 letters][collo, 4 letters][environment, 3 letters][number, 4 digits]. There''s no specific separator between each part of hostname. Is there way I can extract the collo part of the hostname in puppet? TIA Paolo -- You received this message because you are subscribed to the
2013 Jun 07
0
[Rcpp-devel] Setting the R random seed from Rcpp
..., 2013 7:42 AM > To: Matteo Fasiolo > Cc: rcpp-devel at lists.r-forge.r-project.org > Subject: Re: [Rcpp-devel] Setting the R random seed from Rcpp > > > You can do something like this (i'm on my phone, so you might have to change it): > > Environment g = Environment::global_env() ; > Environment::Binding RandomSeed = g[".Random.seed"] ; > > You get the current value of the binding like this: > > NumericVector someVariable = RandomSeed ; > > And then when you want to set the variable: you just do : > > RandomSeed = someVariable ; &g...
2010 Feb 20
1
how to create a SEXP which could be accessed in embedded R
Hi all, I am not familiar with writing R extensions. In a C program, I want to create a SEXP and access it in embedded R. How to let the embedded engine know there's a new vector? For example, after creating a SEXP, parsing 'ls()' in embedded R and then evaluating, STRSXP returned will contain the name of the SEXP. Any help would be appreciated. Regards, Spiral [[alternative HTML
2010 May 17
0
Rcpp 0.8.0 on CRAN
...ch can handle: - primitive types - std::string, const char* - STL containers such as std::vector<T> Rcpp::wrap and Rcpp::as are often used implicitely. For example, when assigning objects to an environment: // grab the global environment Rcpp::Environment global = Rcpp::Environment::global_env() ; std::deque<bool> z( 3 ); z[0] = false; z[1] = true; z[3] = false ; global["x"] = 2 ; // implicit call of wrap<int> global["y"] = "foo"; // implicit call of wrap<char*> global["z"] = z ;...
2010 May 17
0
Rcpp 0.8.0 on CRAN
...ch can handle: - primitive types - std::string, const char* - STL containers such as std::vector<T> Rcpp::wrap and Rcpp::as are often used implicitely. For example, when assigning objects to an environment: // grab the global environment Rcpp::Environment global = Rcpp::Environment::global_env() ; std::deque<bool> z( 3 ); z[0] = false; z[1] = true; z[3] = false ; global["x"] = 2 ; // implicit call of wrap<int> global["y"] = "foo"; // implicit call of wrap<char*> global["z"] = z ;...