Skip to content

Instantly share code, notes, and snippets.

@kstseng
Last active March 5, 2019 17:29
Show Gist options
  • Save kstseng/03c4d1483dca5fb68bcc638d24ea581b to your computer and use it in GitHub Desktop.
Save kstseng/03c4d1483dca5fb68bcc638d24ea581b to your computer and use it in GitHub Desktop.
library(configr)
config = read.config(file = '/Users/kaishentseng/.config/company/credential')
print(sprintf('username_a: %s', config$section_a$username))
print(sprintf('password_a: %s', config$section_a$password))
print(sprintf('username_b: %s', config$section_b$username))
print(sprintf('password_b: %s', config$section_b$password))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment