All Projects → rstudio → parsons

rstudio / parsons

Licence: Unknown, MIT licenses found Licenses found Unknown LICENSE MIT LICENSE.md
Create parsons problems to teach programming in learnr tutorials

Programming Languages

r
7636 projects
CSS
56736 projects

Projects that are alternatives of or similar to parsons

colocr
An R package for conducting co-localization analysis. Edit
Stars: ✭ 22 (+10%)
Mutual labels:  r-package
inline
Inline C, C++ or Fortran functions in R
Stars: ✭ 33 (+65%)
Mutual labels:  r-package
LandR
Landscape Ecosystem Modelling in R
Stars: ✭ 14 (-30%)
Mutual labels:  r-package
mapr
Map species occurrence data
Stars: ✭ 34 (+70%)
Mutual labels:  r-package
flyio
Input Output Files in R from Cloud or Local
Stars: ✭ 46 (+130%)
Mutual labels:  r-package
modeltime.gluonts
GluonTS Deep Learning with Modeltime
Stars: ✭ 31 (+55%)
Mutual labels:  r-package
rodev
⛔ ARCHIVED ⛔ Helper for rOpenSci Package Developpers
Stars: ✭ 24 (+20%)
Mutual labels:  r-package
geojson
GeoJSON classes for R
Stars: ✭ 32 (+60%)
Mutual labels:  r-package
phsmethods
An R package to standardise methods used in Public Health Scotland (https://public-health-scotland.github.io/phsmethods/)
Stars: ✭ 43 (+115%)
Mutual labels:  r-package
geoknife
R tools for geo-web processing of gridded data via the Geo Data Portal. geoknife slices up gridded data according to overlap with irregular features, such as watersheds, lakes, points, etc.
Stars: ✭ 64 (+220%)
Mutual labels:  r-package
realtime
No description or website provided.
Stars: ✭ 15 (-25%)
Mutual labels:  r-package
awspack
Amazon Web Services Bundle Package
Stars: ✭ 14 (-30%)
Mutual labels:  r-package
flipper
Make it easy to flip through R packages from CRAN, Bioconductor, and GitHub
Stars: ✭ 13 (-35%)
Mutual labels:  r-package
bcdata
An R package for searching & retrieving data from the B.C. Data Catalogue
Stars: ✭ 68 (+240%)
Mutual labels:  r-package
VOSONDash
R Shiny application for interactive analysis of networks created by vosonSML.
Stars: ✭ 44 (+120%)
Mutual labels:  r-package
TDAstats
R pipeline for computing persistent homology in topological data analysis. See https://doi.org/10.21105/joss.00860 for more details.
Stars: ✭ 26 (+30%)
Mutual labels:  r-package
datastorr
Simple data versioning and distribution
Stars: ✭ 57 (+185%)
Mutual labels:  r-package
middlechild
⛔ ARCHIVED ⛔ Tools to Intercept, Validate and Consume Web/Network Traffic
Stars: ✭ 15 (-25%)
Mutual labels:  r-package
testit
A simple package for testing R packages
Stars: ✭ 45 (+125%)
Mutual labels:  r-package
dashboard
A R package dashboard generator
Stars: ✭ 42 (+110%)
Mutual labels:  r-package

parsons

Travis build status CRAN version parsons downloads per month Codecov test coverage Lifecycle: experimental

Use the parsons package to create Parsons problems for teaching progamming. You can create custom questions in your learnr tutorials.

Installation

You can install the released version of parsons from CRAN with:

~~install.packages("parsons")~~

And the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("rstudio/parsons")

Examples

Parsons problems

A Parsons problem is a specific type of question, useful for teaching programming, where all the lines of code are given, but the student must provide the correct order.

The parsons() function has experimental support for parsons problems.

You can add a parsons problem to a learnr tutorial with the question_parsons() function:

question_parsons(
  initial = c(
    "iris",
    "mutate(...)",
    "summarize(...)",
    "print()"
  ),
  pass_if(
    c(
      "iris",
      "mutate(...)",
      "summarize(...)"
    )
  ),
  fail_if(
    ~length(.) < 2,
    message = "Include at least two answers"
  ),
  fail_if(
    function(x){"print()" %in% x},
    message = "You should not include print() in your answer"
  ),
  fail_if(
    ~{.[1] != "iris"},
    message = "Your solution should start with 'iris'"
  )
)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].