You can take advantage of the R Script showcase to start using R Visuals with your reports. These provide great examples of what your R Script should look like to interact with data and you can compare how your visual looks to the example.

R Script Showcase

R Open (Script engine)

Webinar: Getting started with Power BI And Azure Machine Learning using R Script