Description Usage Arguments Functions Warning Add to .Rprofile
Summon the repro monkey to lurk in your workspace. It always asks for
consent first. The easiest way is to add repromonkey
to your
.Rprofile
so that you'll always be on your toes when working.
1 2 3 4 5 6 | repromonkey(wait = NULL, delay_self = 5, consented = NULL,
idle_timeout = 900)
install_repromonkey()
monkey_hint(reveal = FALSE)
|
wait |
Set a deterministic wait time in seconds. If |
delay_self |
A wait period of a few seconds to allow startup scripts to complete before requesting consent. |
consented |
Have you consented? If |
idle_timeout |
How often should repromonkey poll your R session history to make sure that you're actively working? The default is 15 minutes. If no activity is seen between each session poll, the repromonkey will get bored and will ignore you. This means you won't come back to your work to find that repromonkey messed it up. It doesn't turn off repromonkey, so when you're back at work the monkey may come back. |
reveal |
If |
repromonkey
: Summon the repromonkey to lurk in your workspace.
This function calls the repromonkey, by default scheduling chaos at a
random time between 0 and 3 hours in the future. This function also
requests explicitly consent unless otherwise provided during the current
session. Set delay_self = 0
and consented = TRUE
to immediately invite
the repromonkey into your workspace.
install_repromonkey
: Provides instructions on how to automatically
summon the repromonkey at session start.
monkey_hint
: Get a hint about when the next repromonkey will
arrive or what chaos the repromonkey brought to you the last time it
visited.
This is a fun tool to help bolster your confidence as you follow and hone your reproducibility best practices skills. But it does come at the risk of data loss and frustration (just like the real world). Your consent is requested at each R session restart.
.Rprofile
To summon the repro monkey automatically, edit your .Rprofile
and add
the following lines. (If you use the library usethis
, you can can call
usethis::edit_r_profile()
.)
1 2 3 | if (interactive() && requireNamespace("repromonkey", quietly = TRUE)) {
repromonkey::repromonkey()
}
|
If you want to waive the interactive consent, add consented = TRUE
to the
call to repromonkey()
.
Note that you can also choose to add repromonkey to specific projects
using project-specific .Rprofile
files.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.