Skip to content

Commit

Permalink
Heads/v0.9.3 (#305)
Browse files Browse the repository at this point in the history
* Fixed R4.1 error with exists() in tests

get(), exists(), and get0() now signal an error if the first argument
has length greater than 1. Previously additional elements were
silently ignored. Suggested by Antoine Fabri on R-devel.

* Updated News for impemding v0.9.3 release

* Updated DESACRIPTION for impending v0.9.3 release

* Updates config to v0.9.3

* Migrate travis from .org to .com

.org will be deprecated in 2021
  • Loading branch information
KentonWhite authored Dec 3, 2020
1 parent 0140ee5 commit d1d92ed
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: ProjectTemplate
Type: Package
Title: Automates the Creation of New Statistical Analysis Projects
Version: 0.9.2
Version: 0.9.3
Date: 2020-04-15
Authors@R: c( person("Aleksandar", "Blagotic", role = "ctb"),
person("Diego", "Valle-Jones", role = "ctb"),
Expand All @@ -14,7 +14,8 @@ Authors@R: c( person("Aleksandar", "Blagotic", role = "ctb"),
person("Matteo", "Redaelli", role = "ctb"),
person("Noah", "Lorang", role = "ctb"),
person("Patrick", "Schalk", role = "ctb"),
person("Dominik", "Schneider", role="ctb"))
person("Dominik", "Schneider", role="ctb"),
person("Gerold", "Hepp", role="ctb"))
Description: Provides functions to
automatically build a directory structure for a new R
project. Using this structure, 'ProjectTemplate'
Expand Down
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
0.9.3 (2020-12-03)

Internal
--------
* Fix passing first argument with length greater than 1 to `exists()` (Breaking change in R 4.1.0)
* Fix issue where some Namespaces where not properly resolved in `cache()` (#303).

0.9.2 (2020-05-11)

Features
Expand Down
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ProjectTemplate [![Travis-CI build status](https://travis-ci.org/KentonWhite/ProjectTemplate.png?branch=master)](https://travis-ci.org/KentonWhite/ProjectTemplate)
# ProjectTemplate [![Travis-CI build status](https://travis-ci.com/KentonWhite/ProjectTemplate.png?branch=master)](https://travis-ci.org/KentonWhite/ProjectTemplate)

The ProjectTemplate package lets you automatically build a directory for a new R project with a standardized subdirectory structure. Using this structure, ProjectTemplate automates data and package loading. The hope is that standardized data loading, automatic importing of best practice packages, integrated unit testing and useful nudges towards keeping a cleanly organized codebase will improve the quality of R coding.

Expand Down
2 changes: 1 addition & 1 deletion inst/defaults/templates/full/config/global.dcf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 0.9.2
version: 0.9.3
data_loading: TRUE
data_loading_header: TRUE
data_ignore:
Expand Down
2 changes: 1 addition & 1 deletion inst/defaults/templates/minimal/config/global.dcf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 0.9.2
version: 0.9.3
data_loading: TRUE
data_loading_header: TRUE
data_ignore:
Expand Down
6 changes: 4 additions & 2 deletions tests/testthat/test-clear.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ test_that('running clear() with default parameters removes everything except con
expect_message(clear(), "clear from memory:.*?config.*?helper\\.function.*project.info.*")

# check they don't exist
expect_true(!exists(c("project.info", "helper.function"), envir = .TargetEnv))
expect_true(!exists(c("project.info"), envir = .TargetEnv))
expect_true(!exists(c("helper.function"), envir = .TargetEnv))

# check config does not exist
expect_true(!exists("config", envir = .TargetEnv))
Expand Down Expand Up @@ -79,7 +80,8 @@ test_that('running clear() removes everything except the config$sticky_variables
expect_true(!exists("project.info", envir = .TargetEnv))

# check that config and helper.function does exist
expect_true(exists(c("config", "helper.function"), envir = .TargetEnv))
expect_true(exists(c("config"), envir = .TargetEnv))
expect_true(exists(c("helper.function"), envir = .TargetEnv))

tidy_up()
})
Expand Down

0 comments on commit d1d92ed

Please sign in to comment.