# NOT RUN {
# Create a vector in the KTSEnv environment
KTSEnv$ThisExists <- 1:30
# It does not throw an error when the element to remove does not exist
removeIfExists(c("ThisExists", "ThisDoesNot"), envir = KTSEnv)
# }
Run the code above in your browser using DataLab