Calculating Complex Vegetation Indices

Can someone point me where to get help for calculating vegetation indices from Sentinel2 in R?

I’m not that familiar with the R client, but I think the documentation at Client Interface for openEO Servers • openeo contains an example of calculating the NDVI