I would like to use the dplyr
package in R but to connect to a remote database that is SSL-encrypted. How do I set up a workaround here? I'm thinking of setting up a backend that uses the RODBC package. Is this possible?
Actually you can connect to a an SSL-encrypted connection with dplyr
and it's easy.
You just need to pass the parameters for your connection within the dbname
parameter, like this (this is a postgresql example):
db <- src_postgres(dbname="dbname=my_db sslcert=my_cert.crt sslkey=my_key.key sslmode=require", user="username", host="your.host.com")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With