Skip to content
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

Add functions to insert navigation and logout buttons in RMD reports #5

Open
collinschwantes opened this issue Mar 14, 2022 · 1 comment

Comments

@collinschwantes
Copy link
Collaborator

Currently, when a user opens a report, there are no links to the base folder and no way logout.

@collinschwantes
Copy link
Collaborator Author

collinschwantes commented Aug 3, 2022

add_logout_button <- function(project_name){
    logout_url <- sprintf(`https://%s.eha.io/.pomerium/sign_out`,project_name) 

     glue::glue(
                   '<div style="text-align:right;">
                        <a href="{logout_url}">Logout</a>
                   </div>'
                    )
}

in Rmd with {r, chunk name, results='asis'}

add_logout_button(project_name= "my-project")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant