Description Usage Arguments Value Author(s) See Also Examples
If the acckey.pem file already exists, it extracts the cipher text from it and
decrypt it into key string. Otherwise, it will call inputPwd
to enter
the password.
Note that this function returns an encrypted raw vector which needs
to be decrypt_it
ed.
1 2 3 |
overide |
logical, if overide existing acckey.pem and input password again. Default FALSE. |
invisible (a encrypted raw vector)
Yiying Wang, wangy@aetna.com
1 2 3 4 5 6 7 8 9 | ## Not run:
func <- function() {
con <- DBI::dbConnect(odbc::odbc(), .connection_string=paste0(
"Driver={Microsfot Access Driver (*.mdb, *.accdb)};",
"Dbq=testdb.accdb;uid=;pwd=", decrypt_it(getPwd())))
return(DBI::dbGetQuery(con, "select * from table1"))
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.