submit: Submit the active R script in response to a question.

Description Usage Examples

View source: R/swirl.R

Description

When a swirl question requires the user to edit an R script, the submit() function allows the user to submit their response.

Usage

1

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

| Create a function called f that takes one argument, x, and
| returns the value of x squared.

> submit()

| You are quite good my friend!

## End(Not run)

swirldev/swirl documentation built on Jan. 17, 2020, 6:28 p.m.