BIRT-R Script sample

hatra
edited February 11, 2022 in Analytics #1

Hi all,
Has anyone got some sample reports using BIRT-R script so I can get some idea how to use it ? and also a start up BIRT-R script document
thanks

Comments

  • jfranken
    edited May 2, 2019 #2

    I don't have an example handy at the moment. Here are the basic instructions:

    1. Create a standard data set with numeric data.
    2. Add a computed column to the data set.
    3. Set the data type to Float and click the expression builder icon (fx).
    4. Under "Category", double click Birt Functions.
    5. Under "Sub Category" scroll to the bottom in click "R" (only available in 16.2 and higher).
    6. Double click one or more of the R functions on the right to add them to the expression.
    7. Insert data into the expression manually or via the Available Data Set column data.

    You can use R functions in other expressions like filters, aggregations, etc. There are many online resources that explain what the R functions do.

    Warning No formatter is installed for the format ipb
  • Thanks for explanation Jeff,
    I am getting error even though it is a very simple insert. I have attached what I have done and what error I am getting.

    Thanks

  • jfranken
    edited May 3, 2019 #4

    The R assign() method takes two arguments, a variable name and a value. Also, if you get an error regarding the Rserve libraries, there is a plugin that you need to install. I did not see the instructions in the Analytics Designer User Guide, but there is information about setting up R in the Information Hub Installation and Configuration Guide.

    Warning No formatter is installed for the format ipb
  • Thanks Jeff will check the guide