Skip to content

Instantly share code, notes, and snippets.

@johnmyleswhite
Created February 10, 2022 12:06
Show Gist options
  • Save johnmyleswhite/6c86e50d5f45abdb53433267aaf07e86 to your computer and use it in GitHub Desktop.
Save johnmyleswhite/6c86e50d5f45abdb53433267aaf07e86 to your computer and use it in GitHub Desktop.
> visible_plus_one <- function (x) {x}
>
> invisible_plus_one <- function (x) {invisible(x)}
>
> visible_plus_one(1)
[1] 1
> invisible_plus_one(1)
>
> visible_plus_one(1) + 1
[1] 2
> invisible_plus_one(1) + 1
[1] 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment