Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
coolbutuseless committed May 5, 2024
1 parent 8bae722 commit fb8e242
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Binary file modified data-raw/figures/examples-slow.mp4
Binary file not shown.
Binary file modified data-raw/figures/examples.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions data-raw/infinite-monkeys.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ text <- "mtcars |>
monkey <- function(text) {
chars <- strsplit(text, '')[[1]]

delay <- min(0.04, 1/nchar(chars))
delay <- min(0.02, 1/nchar(chars))
pauses <- runif(1000, 0.005, delay)

Sys.sleep(0.1)
Expand All @@ -31,7 +31,7 @@ monkey <- function(text) {

print(eval(parse(text = text)))

Sys.sleep(1.1)
Sys.sleep(1.7)
}


Expand All @@ -52,10 +52,11 @@ codes <- c(

system.time({
cat("\014")
Sys.sleep(5)
Sys.sleep(3)
for (code in codes) {
monkey(code)
}
cat("\n\n\n\n")
})


Expand Down

0 comments on commit fb8e242

Please sign in to comment.