Adding a cat Statement to the Data Function
A
cat
or a
print
statement is useful for understanding your code's
behavior. For example, you can use it to check the success of a condition, or
to make a note in the output at a specific time when the code is running.
About this task
This example builds on the data function created in the example
Debugging a Simple Data Function. You can add
a
cat
statement to any data function.
Before you begin
- You must have the advanced analytics license to use the TERR toolset. If you do not have this license, see your Spotfire administrator.
- You must have Enabling Debugging for Data Functions.
- You must have completed the example Debugging a Simple Data Function, or you must have your own data function that you want to debug.
Procedure
What to do next
Try exporting the data function results to view in RStudio.
Parent topic: Debug a Simple Data Function