Jump to content

TERR data function with dplyr giving errors in version TERR 5.x


Abhiram Kukunuri

Recommended Posts

Our business has recently migrated from spotfire v7.7 to spotfire v10.3. Due to this TERR versionhas also been changed from v4.x to v5.0. The TERR data functions which were working with previous TERR 4.x have now stopped working post this migration and giving the following error: Error in force(expr) : could not find function "vec_as_names".

The data functionsare usingdplyr R package and correspondingfunction "vec_as_names" that showed up in the error is a part of vctrs package. We have both these packages installed in the TERR engine.

Incidentally, this data function works on locally installed TERR (in my local computer) but the same doesnt work when using TERR engine on the server where spotfire web reports are hosted. We have checked the local TERR engine version & installed package versions on my local computer and as well as on the TERR server. All of these are consistent & matching.

We are not sure, how to proceed to overcome this error other than changing the entire data function code by not using the dplyr package itself. Any suggestions towards resolution without function modification are appreciated. Thank you.

Link to comment
Share on other sites

I think that vec_as_names was added to version 0.1.0 of the vctrs package and very shortly after that other packages in the tidyverse were changed to use it. It sounds like you have a mix of old and new packages in the new TERR installation. What does sessionInfo() show after this error It will show a list of all the loaded packages and their versions. Did you install all the packages in your TERR-5.0 installation using the default value of options("repos"), which has a "TRAN" entry before the "CRAN" one
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...