-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use environmental variables in password #10
Comments
Hi @AGSCL, I think this should be possible with something like: ---
output:
fidelius::html_password_protected:
password: `r Sys.getenv('CANVASPASS')`
output_format: rmarkdown::html_document
--- Let me know if this does not work for you. |
Hi, I get the following error
|
If I replace it with "`r Sys.getenv('Key1')`", it looks that it don't evaluate the code, so If I put the following password, it work: `r Sys.getenv('Key1')` |
I was encountering the same error in
|
Is it possible to use
'
r Sys.getenv("CANVASPASS")'
or"
r as.character(read.table('H:/Mi unidad/Curso_UDP/pass_canvas.txt', quote='"', comment.char=''))"' ` in password YAML?output:
fidelius::html_password_protected:
style:
button_text: "Ingresar clave"
password: '
r Sys.getenv("CANVASPASS")
'preview: false
hint: ""
bundle: true
output_format:
rmarkdown::html_document:
toc: true # table of content true
toc_depth: 5 # upto three depths of headings (specified by #, ## and ###)
toc_float: true
The text was updated successfully, but these errors were encountered: