Learn R Programming

polyglot (version 0.3.0)

learn: Initialize the interactive environment

Description

This function will launch the interactive learning environment.

Usage

learn(assign.env = parent.frame(1))

Arguments

assign.env

An environment

Details

This function initializes the interactive environment by proposing to select a CSV file from the caching directory built with the pins package. Once the file is selected, the function reads the selected dataset and adds a numeric variable, named Score, if not already existing. It also replaces any existing missing values by 0 from the Score variable. Finally the function returns to the sessionQuestions function, or to the sessionExit function if 0 is typed.

Examples

Run this code
# NOT RUN {
if(interactive()){
learn()
}

# }

Run the code above in your browser using DataLab