Winston Chang
Winston Chang
I think the problem is caused by the S4-related stuff, like `exportClass` and `importClassesFrom`. Try removing all of that. The parent package's NAMESPACE file should have `export(Counter)` and the child...
@kevinushey A tangential issue for completions: A generator object has a method called `$new(...)`, which in turn invokes `$public_methods$initialize(...)`. For example, to get the set of useful completions for `shiny:::ShinySession$new()`,...
I was just playing around with `.DollarNames`, and it seems to work with an R6 class in R at the console, but not in RStudio. For example: ```R library(R6) MyClass
@hadley This is slightly different, I think. The issue is when you want to have completions for an object that's not actually instantiated yet. For example, in Shiny, the session...
Shiny's a bit of a special case -- RStudio would just know that a `session` inside a Shiny app's server function would be a ShinySession object. But in the general...
Ideally, the methods could be compiled once and then every time an object is instantiated, it receives the pre-compiled method. However, when you copy a function in R and then...
@gabor This could work by having the generator look for functions with the `AsIs` class, and not reassigning the environment for those functions. How often do you guys think this...
What platform are you running on? Specifically what distribution of Linux?
`std::current_exception` was apparently added in C++11. So maybe the problem is that your compiler doesn't support C++11? Can you provide the output of `g++ --version`?
As you've noticed, base R has a function for locking environments, but it doesn't have a function for unlocking environments. One of the primary goals for R6 is to have...