The strict R package is a great tool for helping to build robust R code. However, there are times when it doesn't place nicely with certain packages.
For example, the GenomicRanges packages defines functions with the same name as base functions (e.g. gsub
) and then calls them without specifying the namespace, which results in strict
rightly complaining about a conflict.
Unfortunately, you cannot just detach
the strict
package. These commands will detach strict
's functionality (or silently do nothing if it isn't loaded):
if ("strict_conflicts" %in% search()) detach("strict_conflicts")
if ("strict_shims" %in% search()) detach("strict_shims")
if ("strict" %in% loadedNamespaces()) unloadNamespace("strict")