Skip to content

Commit

Permalink
Merge pull request #599 from swirldev/dev
Browse files Browse the repository at this point in the history
swirl 2.4.3
  • Loading branch information
seankross authored Mar 3, 2017
2 parents d85769b + a087e02 commit a0fb74b
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 12 deletions.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
language: R
language: r

matrix:
include:
- r: release
- r: oldrel
- r: devel

cache: packages
sudo: false

Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Description: Use the R console as an interactive learning
environment. Users receive immediate feedback as they are guided through
self-paced lessons in data science and R programming.
URL: http://swirlstats.com
Version: 2.4.2
Version: 2.4.3
License: MIT + file LICENSE
Authors@R: c(
person("Sean", "Kross", email = "[email protected]", role = c("aut", "cre")),
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
YEAR: 2016
YEAR: 2017
COPYRIGHT HOLDER: Team swirl
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# swirl 2.4.3

* Added "swirl_is_fun" option to `swirl_options()`.

* Added Portuguese menu translations.

# swirl 2.4.2

* Script questions behave more appropriately in RStudio. (#434, thank you @jimhester)
Expand Down
8 changes: 5 additions & 3 deletions R/languages.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
swirl_language <- function(){
lang <- getOption("swirl_language")
langs <- c("chinese_simplified", "english", "french", "german", "korean",
langs <- c("chinese_simplified", "dutch", "english",
"french", "german", "german_formal", "korean", "portuguese",
"spanish", "turkish")

if(is.null(lang) || !(lang %in% langs)){
Expand All @@ -25,7 +26,8 @@ swirl_language <- function(){
#'
#' @export
select_language <- function(language = NULL, append_rprofile = FALSE){
langs <- c("chinese_simplified", "english", "french", "german", "korean",
langs <- c("chinese_simplified", "dutch", "english",
"french", "german", "german_formal", "korean", "portuguese",
"spanish", "turkish")
if(is.null(language)){
selection <- select.list(langs)
Expand Down Expand Up @@ -57,7 +59,7 @@ compile_languages <- function(){

for(i in menus){
lang_name <- sub(".yaml$", "", basename(i))
cmd <- paste0(lang_name, " <- wrap_encoding(yaml.load_file('", i, "'))")
cmd <- paste0(lang_name, " <- swirl:::wrap_encoding(yaml.load_file('", i, "'))")
eval(parse(text=cmd))
}

Expand Down
3 changes: 2 additions & 1 deletion R/options.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ swirl_options <- function(...){
swirl_courses_dir = getOption("swirl_courses_dir"),
swirl_data_dir = getOption("swirl_data_dir"),
swirl_language = getOption("swirl_language"),
swirl_logging = getOption("swirl_logging")
swirl_logging = getOption("swirl_logging"),
swirl_is_fun = getOption("swirl_is_fun")
)
} else {
options(...)
Expand Down
Binary file modified R/sysdata.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# swirl

[![Build Status](https://travis-ci.org/swirldev/swirl.png?branch=master)](https://travis-ci.org/swirldev/swirl)
[![CRAN version](http://www.r-pkg.org/badges/version/swirl?color=3399ff)](https://cran.r-project.org/web/packages/swirl/index.html)
[![CRAN version](http://www.r-pkg.org/badges/version/swirl?color=3399ff)](https://cran.r-project.org/package=swirl)
[![Downloads](http://cranlogs.r-pkg.org/badges/swirl?color=3399ff)](http://cran-logs.rstudio.com/)

### [http://swirlstats.com](http://swirlstats.com)
Expand Down
8 changes: 4 additions & 4 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
## Release summary

This is the first attempted CRAN release of swirl 2.4.2.
This is the first attempted CRAN release of swirl 2.4.3.

## Test environments

* local OSX Yosemite install, R 3.3.0
* Ubuntu 12.04 (on travis-ci), R 3.3.0
* win-builder (devel and release)
* local macOS Sierra install, R 3.3.2
* Ubuntu 12.04 (on travis-ci), R 3.3.2, R 3.2.5, R-devel.
* win-builder (release)

## R CMD check results

Expand Down
Binary file modified revdep/checks.rds
Binary file not shown.

0 comments on commit a0fb74b

Please sign in to comment.