Spotfire 7.12 TERR Upgrade Zoo Package

This question follows on from this link -> https://community.tibco.com/questions/spotfire-712-terr-upgrade-zoo-package which did not solve our problem.

We have encountered the same issue with the following error message after the upgrade:Could not execute function call.

TIBCO Enterprise Runtime for R returned an error:
 'Error in .package.execute.initialization.function(ns, ".onLoad", dirn :
 error executing function '.onLoad' from package 'zoo' loaded from
 O:/TERR/x86_64-pc-windows-library/4.4 :
 Error in register_s3_method("ggplot2", "autoplot", "zoo") :
 could not find function "isNamespaceLoaded"'.
 at Spotfire.Dxp.Data.DataFunctions.Executors.LocalFunctionClient.OnExecuting()
 at Spotfire.Dxp.Data.DataFunctions.Executors.AbstractFunctionClient.<RunFunction>d__0.MoveNext()
 at Spotfire.Dxp.Data.DataFunctions.Executors.SPlusFunctionExecutor.<ExecuteFunction>d__0.MoveNext()
 at Spotfire.Dxp.Data.DataFunctions.DataFunctionExecutorService.<ExecuteFunction>d__6.MoveNext()

I implemented the fix as follows (is this perhaps incorrect)?

isNamespaceLoaded <- function(name) is.element(name, loadedNamespaces())
library(zoo)

(2) Answers

Login