tidytext package with TERR

Hi All,

I got an issue regarding the use of tidytext package in TERR. I got a list of Tweets data, and already converted into data frame type. What I trying to do is break the tweets into word by word and classify each word to either Positive or Negative with the 'Bing' lexicon. I set the input as a table, and the output is a table as well, the input table view is attached.

Below is the code:




output <- input %>%

  unnest_tokens(output = word, input = text, drop = F) %>%

  inner_join(get_sentiments('bing'), by = 'word')

It return a error:

Could not execute function call.

TIBCO Enterprise Runtime for R returned an error: 'Error in captureDots(strict = `__quosured`) : must be called in a function where dots exist'.

   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()

TIBCO Enterprise Runtime for R returned warnings

The following object(s) are masked _from_ 'package:tidyr':


The following object(s) are masked _from_ 'package:stats':

    filter, lag

The following object(s) are masked _from_ 'base':

    intersect, setdiff, setequal, union


Anyone know how I should execute this in TERR, or the code is wrong? The code works well in RStudio, but not the case in TERR. I also upload the output table I wish it looks like, which comes from RStudio but I want it creat by TERR.


Additional question:

The RStudio version 1.1.456 is not working for TERR, I point it use TERR engine and every time I open the RStudio is blank and got an error that "Entry Point Not Found". However, version 0.98 works fine with TERR. Is it RStudio's issue or Spotfire?



Image icon table.png234.87 KB
Image icon output_table.png251.21 KB
Image icon entrypointnotfound.png12.84 KB

(2) Answers