Created
February 10, 2022 12:06
-
-
Save johnmyleswhite/6c86e50d5f45abdb53433267aaf07e86 to your computer and use it in GitHub Desktop.
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
> 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