Created
October 26, 2023 20:38
-
-
Save matt-dray/b843dad357af52214a59cbd02f12a3fa to your computer and use it in GitHub Desktop.
We could put links to sponsor websites in the output from R functions, lol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You can combine: | |
# * {cli} for link-clicking in the console: | |
# https://www.rostrum.blog/posts/2023-09-17-choosethis/ | |
# * the ability to 'monetise' your R packages: | |
# https://www.rostrum.blog/posts/2023-08-01-monetize/ | |
add_one <- function(x) { | |
result <- x + 1 | |
cli::cli_text( | |
"The answer, ", result, | |
", is sponsored by our pals at ", | |
"{.url https://rstats.lol}" | |
) | |
} | |
add_one(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment