Jump to content

Error Loading TERR Packages in Spotfire


Joe Tijerina 2

Recommended Posts

Hello,

I am getting the following error when attempting to run an R script I've already loaded the libraries it's referencing which appear to be compatible with the version of Spotfire I am using.

Libraries being used are: 'dplyr', 'lubridate', 'reshape2', and 'stringr'

Error below:

TIBCO Enterprise Runtime for R returned an error: 'Error in check_tibble(x) : could not find function "names2"

eval(expr, envir, enclos)

eval(expr, envir, enclos)

Input.Data %>% mutate(ProducingMonth = as.Date(ProducingMonth,

withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))

eval(expr, envir, enclos)

eval(expr, envir, enclos)

`_fseq`(`_lhs`)

freduce(value, `_function_list`)

withVisible(function_list[[k]](value))

function_list[[k]](value)

mutate(., ProducingMonth = as.Date(ProducingMonth, format = "%m/%d/%Y"))

mutate.data.frame(., ProducingMonth = as.Date(ProducingMonth,

as.data.frame(mutate(tbl_df(.data), ...))

mutate(tbl_df(.data), ...)

tbl_df(.data)

as_data_frame(data)

as_data_frame.data.frame(data)

list_to_tibble(x, validate, raw_rownames(x))

check_tibble(x)'.

at Spotfire.Dxp.Data.DataFunctions.Executors.LocalFunctionClient.OnExecuting()

at Spotfire.Dxp.Data.DataFunctions.Executors.AbstractFunctionClient.d__0.MoveNext()

at Spotfire.Dxp.Data.DataFunctions.Executors.SPlusFunctionExecutor.d__0.MoveNext()

at Spotfire.Dxp.Data.DataFunctions.DataFunctionExecutorService.d__6.MoveNext()

Does anyone have any ideas on what could be driving this error

Link to comment
Share on other sites

It could be some incompatibility (even if a library is supported by TERR as a whole, there may be pockets where it does not work 100%). What areyour Spotfire and TERR versions

You can try to

A) download the latest TERR version from eDelivery

B) debug your code:

1) put a statement save.image('yourdir.RData') as a first line of your TERR script

2) run the data function (even if it throws the error, the first statement will have run)

3) open RStudio pointing to your TERR installation by going to Tools > TERR Tools > Launch RStudio IDE

4) copy and paste your data function into RStudio

5) change the first statement to load('yourdir.RData')

6) run your data function line by line

 

C) Alternatively please post an example dxp with the data function.

Gaia

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...