Running R scripts with r2py

I trying to execute some R scripts on AWS Lambda using Python’s r2py package. To do this I need to set up an R environment.

This tutorial outlines one solution: https://tech.deliveryhero.com/blog_post/aws-lambda-and-amazon-api-gateway-2/

But is there a way to achieve something similar with Serverless?