Rstudio connection to remote hadoop cluster using sparklyr

Can someone please let me know how do I connect to a remote hadoop hortonworks cluster using sparklyr. Connection string would be great.

Thanks
Mayank

I would watch one of the tutorials provided by Rstudio like this one

or read the documentation here:
https://spark.rstudio.com/deployment/