as_github_code | R Documentation |
An easy way to print github code
as_github_code(url)
url |
URL from github |
x <- as_github_code("https://raw.githubusercontent.com/folkehelseinstituttet/scskeleton/main/R/00_env_and_namespace.r") x <- as_github_code("https://github.com/folkehelseinstituttet/scskeleton/blob/main/R/00_env_and_namespace.r") print(x, lines = 3:5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.