gen_auth_save | R Documentation |
Save credentials of the different databases for further convenient use
gen_auth_save(database, use_token = FALSE)
database |
Character string. The database to store credentials for ('all', 'genesis', 'zensus' or 'regio'). |
use_token |
Boolean. Do you want to (if possible) set an API token instead of password + username? Note: This is not supported by regionalstatistik.de. Defaults to FALSE. |
Username and password are encrypted and saved as RDS in the
package config directory. A random string is generated and stored in the
session environment variable GENESIS_KEY
. This string is used as the key
to encrypt and decrypt the entered credentials. To avoid having to save
authentication in future sessions, GENESIS_KEY
can be added to .Renviron.
The {usethis}
package includes a helper function for editing .Renviron files
from an R session with usethis::edit_r_environ()
.
Path to the RDS file in which credentials are saved, invisibly.
## Not run:
gen_auth_save("zensus")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.