I created a Dataproc cluster and launched RStudio Server successfully using the instructions below: https://cloud.google.com/solutions/running-rstudio-server-on-a-cloud-dataproc-cluster
I also installed sparklyr and created a Spark instance successfully.
sc <- spark_connect(master = "local")
However, I am wondering how I can connect to BigQuery. There is a sparkbq library but I am not sure how I can pass the bigquery jar connector (in runtime) that is described here: https://cloud.google.com/dataproc/docs/tutorials/bigquery-connector-spark-example