Thanks! Working offline would be great!
On Tue, Mar 28, 2023 at 11:34 AM Dirk Eddelbuettel wrote:
>
> Hi Matthew,
>
> Thanks for circling back!
>
> On 28 March 2023 at 11:23, Matthew Supernaw - NOAA Federal wrote:
> | Hi Dirk,
> | Thanks for your attention on this. I was able to find a solution
Hi Matthew,
Thanks for circling back!
On 28 March 2023 at 11:23, Matthew Supernaw - NOAA Federal wrote:
| Hi Dirk,
| Thanks for your attention on this. I was able to find a solution that works
for
| us.
| Matthew
|
| https://github.com/NOAA-FIMS/ModularTMBExample/blob/map/src/
| tmb_objective_
Hi Dirk,
Thanks for your attention on this. I was able to find a solution that works
for us.
Matthew
https://github.com/NOAA-FIMS/ModularTMBExample/blob/map/src/tmb_objective_function.cpp#L133
On Fri, Mar 24, 2023 at 4:36 PM Jeff Newmiller
wrote:
> Well, feel free to ignore my post, but the gis
Well, feel free to ignore my post, but the gist was that anything you have
access to in R can be passed by your R API code to your Rcpp code. Also, due to
R's GC you should usually avoid caching references between calls to your Rcpp
code anyway.
On March 24, 2023 12:40:43 PM PDT, Matthew Supern
Hi Jeff,
I'm not sure I understand your comment. The code is part of a package.
We're just trying to sync the declared object name in the R environment to
the object in the Rcpp module programmatically from c++ for internal use. I
just wondered if there was a way to access the wrapped object in the
Matthew... the normal context for sharing Rcpp code is within a package. It is
a no-brainer to have an R API called by the user that calls whatever Rcpp code
it needs to, which is why your objection seems inappropriate to me.
On March 24, 2023 10:43:34 AM PDT, Dirk Eddelbuettel wrote:
>
>On 24
On 24 March 2023 at 13:08, Matthew Supernaw - NOAA Federal wrote:
| I'm sure it's possible to do from the R side, however, the requirement is to
| hide this from the end user and set the reference objects name to the declared
| name from the R environment. If I view the environment in RStudio, the
I'm sure it's possible to do from the R side, however, the requirement is
to hide this from the end user and set the reference objects name to the
declared name from the R environment. If I view the environment in RStudio,
there is much more information available. ls() only returns a list of
object
On 22 March 2023 at 13:31, Matthew Supernaw - NOAA Federal wrote:
| I'm trying to get an instance of a reference class (vonBertalanffyInterface)
| from the R environment with the following code:
|
| void SetName(vonBertalanffyInterface& v) {
|
| Rcpp::Environment env = Rcpp::Environment::glo