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)

HJ08003/socraticswirl-RStudioServer documentation built on May 20, 2019, 11:10 a.m.