aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2015-10-26 09:48:31 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2015-10-26 09:57:56 +0100
commitdbe59099e4922caad5c0b3c655ae34c336294c28 (patch)
treece0b94cff280aefee2cbc20857a590bb84b872ec /R
parentebc727b44ee55b766835e9b60c5d62450cbe96f7 (diff)
Function for removing shared objects from workspace
Diffstat (limited to 'R')
-rw-r--r--R/gmkinws.R12
1 files changed, 12 insertions, 0 deletions
diff --git a/R/gmkinws.R b/R/gmkinws.R
index f43c8a1..87eaf8a 100644
--- a/R/gmkinws.R
+++ b/R/gmkinws.R
@@ -36,6 +36,7 @@ gmkinws <- R6Class("gmkinws",
observed = NULL,
ds = NA,
m = NA,
+ ftmp = list(Name = ""),
f = NA,
initialize = function(ds, m, f) {
@@ -145,6 +146,17 @@ gmkinws <- R6Class("gmkinws",
self$f <- self$f[-i]
if (length(self$f) == 0) self$f <- NA
invisible(self)
+ },
+
+ clear_compiled = function() {
+ for (i in seq_along(self$m)) {
+ self$m[[i]]$cf <- NULL
+ }
+ self$ftmp$mkinmod$cf <- NULL
+ for (i in seq_along(self$f)) {
+ self$f[[i]]$mkinmod$cf <- NULL
+ }
+ invisible(self)
}
)
)

Contact - Imprint