uitils: Remove global data object before reinitializing

It seems that just overriding the object may not be enough to pure it.
Before loading the data, the variable "secmal" is removed.
This commit is contained in:
Jens Sauer 2020-12-21 16:39:24 +01:00
parent 9a331a2091
commit 351b26368d

View File

@ -120,5 +120,6 @@ sma_init <- function() {
sma_init_force <- function() { sma_init_force <- function() {
print("Reloading secMalASCT data") print("Reloading secMalASCT data")
remove(sma_initialized, pos = ".GlobalEnv") remove(sma_initialized, pos = ".GlobalEnv")
remove(secmal, pos = ".GlobalEnv")
sma_init() sma_init()
} }