Domanda

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?

È stato utile?

Soluzione

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")
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top