search for: r6class

Displaying 10 results from an estimated 10 matches for "r6class".

2017 Nov 15
2
R6 object that is a list of referenced object
Dear community, I am having a class, let's say Person, Person <- R6Class("Person", public = list( idPerson = NULL, name = NULL, age = NULL, initialize = function(idPerson = NA, name = NA, age = NA) { self$idPerson <- idPer...
2017 Nov 16
0
R6 object that is a list of referenced object
See below. On Wed, 15 Nov 2017, Cristina Pascual wrote: > Dear community, > > I am having a class, let's say Person, > > Person <- R6Class("Person", > public = list( > idPerson = NULL, > name = NULL, > age = NULL, > initialize = function(idPerson = NA, name = NA, age = NA) { It is a bad idea to setup de...
2024 Mar 11
1
R6 "classname" and generator name
I'm writing some code that does a bit of introspection of R6 classes and am wondering about the "classname" parameter. Its the first parameter to the "R6Class" class generator generator function, and the few examples I've looked at on CRAN set it the same as the name of the generator function, for example, from the docs: Queue <- R6Class("Queue", .....) but this isn't mandatory, it can be anything. Or NULL. (side quest: do lin...
2017 Nov 15
0
R6 object that is a list of referenced object
Dear community, I am having a class, let's say Person, Person <- R6Class("Person", public = list( idPerson = NULL, name = NULL, age = NULL, initialize = function(idPerson = NA, name = NA, age = NA) { self$idPerson <- idPer...
2017 Oct 18
1
conformal predictions
Dear community, I want to use conformal prediction to measure how good are my svm-regression predictions (having used library e1071). I have gone through the conformal package documentation. But I'm pretty newer and need some more and detailed examples. Can anybody help me? Thanks in advance, [[alternative HTML version deleted]]
2015 Jun 22
3
Plans to improve reference classes?
...and we therefore want to use a construction like reference classes in this project. However, we observed that the speed performance of our implementation (using reference classes) for a simple test case is rather poor compared to a non-OOP implementation. Further, turning the reference classes into R6classes (using the R6 package) gave the best performance. As speed is an issue in our project, this would for us be an important reason to use R6 classes instead of reference classes. The drawback, of course, is that the R6 package is developed by a single developer and that further development is there...
2016 Dec 16
0
Upgrading a package to which other packages are LinkingTo
...ependency, that is completely explicit, so it is relatively easy to handle. The other frequent of build-time dependency is a function call to the other package, that happens at install time. E.g. with references or R6* classes you frequently include code like this in yourpackage: myclass <- R6::R6Class(...) and this code is evaluated at install time. So if the R6 package is updated, the installed version myclass in yourpackage is not affected at all. In fact, if the new version of R6 is not compatible with the myclass object created by the old version, then yourpackage will be broken. (This AFAI...
2016 Dec 16
2
Upgrading a package to which other packages are LinkingTo
On 16/12/2016 12:35 PM, Karl Millar wrote: > A couple of points: > - rebuilding dependent packages is needed if there is an ABI change, > not just an API change. For packages like Rcpp which export inline > functions or macros that might have changed, this is potentially any > change to existing functions, but for packages like Matrix, it isn't > really an issue at all
2015 Jun 22
0
Plans to improve reference classes?
...and we therefore want to use a construction like reference classes in this project. However, we observed that the speed performance of our implementation (using reference classes) for a simple test case is rather poor compared to a non-OOP implementation. Further, turning the reference classes into R6classes (using the R6 package) gave the best performance. As speed is an issue in our project, this would for us be an important reason to use R6 classes instead of reference classes. The drawback, of course, is that the R6 package is developed by a single developer and that further development is there...
2015 Jun 23
3
Plans to improve reference classes?
...and we therefore want to use a construction like reference classes in this project. However, we observed that the speed performance of our implementation (using reference classes) for a simple test case is rather poor compared to a non-OOP implementation. Further, turning the reference classes into R6classes (using the R6 package) gave the best performance. As speed is an issue in our project, this would for us be an important reason to use R6 classes instead of reference classes. The drawback, of course, is that the R6 package is developed by a single developer and that further development is there...