play: Tell swirl to ignore console input for a while.

Description Usage Examples

View source: R/swirl.R

Description

It is sometimes useful to play around in the R console out of curiosity or to solidify a concept. This command will cause swirl to remain idle, allowing the user to experiment at will, until the command nxt() is entered.

Usage

1
play()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 

| Create a new variable called `y` that contains the number 8.

> play()

| Entering play mode. Experiment as you please, then type nxt()
| when you ready to resume the lesson.

> 10/14
> [1] 0.7142857
> zz <- 99
> zz
> [1] 99
> nxt()

| Resuming lesson...

## End(Not run)

swirl documentation built on Jan. 16, 2020, 5:03 p.m.