Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chihchengliang/swirlitest
Test all lessons of a swirl course.
https://github.com/chihchengliang/swirlitest
Last synced: 25 days ago
JSON representation
Test all lessons of a swirl course.
- Host: GitHub
- URL: https://github.com/chihchengliang/swirlitest
- Owner: ChihChengLiang
- Created: 2015-08-23T16:28:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-27T15:31:37.000Z (over 9 years ago)
- Last Synced: 2024-10-28T23:22:49.856Z (2 months ago)
- Language: R
- Size: 129 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# swirlitest
Test all lessons of a swirl course. Automatically testing for a large course can't be more easier.
## Installation
```{r}
library(devtools)
devtools::install_github(repo = "ChihChengLiang/swirlitest")
```## Usage
```{r}
library(swirlitest)
test_course_dir("path_to_your_swirl_course")
```The function runs through all your CorrectAnswers of cmd_questions of all lessons of your course.
If something goes wrong, you expect to see an error message ASAP.
## Example
This example test the course of https://github.com/TaiwanRUserGroup/DSC2015Tutorial
```{r}
source("http://taiwanrusergroup.github.io/R/init.R")
swirl::uninstall_all_courses()
DSC2015R::install_course()
library(swirlitest)
test_course_name( "DSC2015")
```