I'm creating a vignette in RMarkdown for a package that requires a secret API key. I'm including the key as an environment variable, and then using this key as an argument; but when I check the package build, I get a Warning because it can't read my environment variable.
If I pass in the key directly into the function, I don't get the Warning.
Here is the Warning:
Error: processing vignette '' failed with diagnostics:
second argument must be a list
Execution halted
My code looks
apikey = Sys.getenv('key')
house_enacted_115 <- getBills(apikey,"115","house","enacted",1,20)