Skip to content

Commit d1d92ed

Browse files
authored
Heads/v0.9.3 (#305)
* 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
1 parent 0140ee5 commit d1d92ed

File tree

6 files changed

+17
-7
lines changed

6 files changed

+17
-7
lines changed

DESCRIPTION

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: ProjectTemplate
22
Type: Package
33
Title: Automates the Creation of New Statistical Analysis Projects
4-
Version: 0.9.2
4+
Version: 0.9.3
55
Date: 2020-04-15
66
Authors@R: c( person("Aleksandar", "Blagotic", role = "ctb"),
77
person("Diego", "Valle-Jones", role = "ctb"),
@@ -14,7 +14,8 @@ Authors@R: c( person("Aleksandar", "Blagotic", role = "ctb"),
1414
person("Matteo", "Redaelli", role = "ctb"),
1515
person("Noah", "Lorang", role = "ctb"),
1616
person("Patrick", "Schalk", role = "ctb"),
17-
person("Dominik", "Schneider", role="ctb"))
17+
person("Dominik", "Schneider", role="ctb"),
18+
person("Gerold", "Hepp", role="ctb"))
1819
Description: Provides functions to
1920
automatically build a directory structure for a new R
2021
project. Using this structure, 'ProjectTemplate'

NEWS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
0.9.3 (2020-12-03)
2+
3+
Internal
4+
--------
5+
* Fix passing first argument with length greater than 1 to `exists()` (Breaking change in R 4.1.0)
6+
* Fix issue where some Namespaces where not properly resolved in `cache()` (#303).
7+
18
0.9.2 (2020-05-11)
29

310
Features

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ProjectTemplate [![Travis-CI build status](https://travis-ci.org/KentonWhite/ProjectTemplate.png?branch=master)](https://travis-ci.org/KentonWhite/ProjectTemplate)
1+
# ProjectTemplate [![Travis-CI build status](https://travis-ci.com/KentonWhite/ProjectTemplate.png?branch=master)](https://travis-ci.org/KentonWhite/ProjectTemplate)
22

33
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.
44

inst/defaults/templates/full/config/global.dcf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.9.2
1+
version: 0.9.3
22
data_loading: TRUE
33
data_loading_header: TRUE
44
data_ignore:

inst/defaults/templates/minimal/config/global.dcf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.9.2
1+
version: 0.9.3
22
data_loading: TRUE
33
data_loading_header: TRUE
44
data_ignore:

tests/testthat/test-clear.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ test_that('running clear() with default parameters removes everything except con
2323
expect_message(clear(), "clear from memory:.*?config.*?helper\\.function.*project.info.*")
2424

2525
# check they don't exist
26-
expect_true(!exists(c("project.info", "helper.function"), envir = .TargetEnv))
26+
expect_true(!exists(c("project.info"), envir = .TargetEnv))
27+
expect_true(!exists(c("helper.function"), envir = .TargetEnv))
2728

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

8182
# check that config and helper.function does exist
82-
expect_true(exists(c("config", "helper.function"), envir = .TargetEnv))
83+
expect_true(exists(c("config"), envir = .TargetEnv))
84+
expect_true(exists(c("helper.function"), envir = .TargetEnv))
8385

8486
tidy_up()
8587
})

0 commit comments

Comments
 (0)