fetch_problem: Fetch a problem for a particular language track

Description Usage Arguments Value Examples

Description

Fetches the files for a problem via the Exercism API and writes them into a new problem folder in the Exercism directory

Usage

1
2
fetch_problem(slug, track_id = "r", force = FALSE, open = TRUE,
  start_testing = FALSE)

Arguments

slug

a normalized, url-safe identifier for a problem e.g. "hello-world"

track_id

a normalized, url-safe identifier for a language track. e.g. r, python, javascript etc

force

logical, indicating whether existing problem files should be overwritten

open

logical, indicating whether to open the problem files immediately after fetching

start_testing

logical, indicating whether to run testthat::auto_test() on the fetched problem's directory

Value

Prints confirmation message upon success

Examples

1
2
3
4
## Not run: 
fetch_problem("hello-world", "r")

## End(Not run)

jonmcalder/exercism documentation built on May 24, 2019, 4:06 a.m.