SSH to connect to MySQL Database in R

Viewed 4941

I want to use the RMySQL package to query a database. I usually type ssh website.com in my mac terminal before using dbConnect() and dbGetQuery() in a R script.

My database is behind a firewall and only accessible locally and to the best of my knowledge needs to be ssh'd into.

Is it possible to do the entire process in R?

I've tried system('ssh website.com')) without success

Thanks

1 Answers
Related