Learn R Programming

swirl (version 2.4.5)

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

Description

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

Usage

submit()

Arguments

Examples

Run this code
# 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!
# }

Run the code above in your browser using DataLab