# NOT RUN {
# Load dummy config.yml file from the library
# Recommendation: set dir with NA (read documentation)
yml <- system.file("docs", "config.yml", package = "lares")
yml <- gsub("/config\\.yml", "", yml) # We need the directory, not the file
# Let's see which credentials we have in our file
get_credentials(dir = yml)
# Warning message: No credentials for NA found in your YML file.
# Try any of the following: 'service1', 'service2', 'service3'
# Get credentials for service1
get_credentials("service1", dir = yml)
# }
Run the code above in your browser using DataLab