Skip to content

Commit

Permalink
Made as_factor = FALSE default in config
Browse files Browse the repository at this point in the history
  • Loading branch information
KentonWhite committed Apr 15, 2020
1 parent 1e4f7bc commit 5091b3e
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 23 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: ProjectTemplate
Type: Package
Title: Automates the Creation of New Statistical Analysis Projects
Version: 0.9.0
Date: 2019-02-26
Version: 0.9.1
Date: 2020-04-15
Authors@R: c( person("Aleksandar", "Blagotic", role = "ctb"),
person("Diego", "Valle-Jones", role = "ctb"),
person("Jeffrey", "Breen", role = "ctb"),
Expand Down Expand Up @@ -109,4 +109,4 @@ Collate:
'xls.reader.R'
'xlsx.reader.R'
'xport.reader.R'
RoxygenNote: 6.1.1
RoxygenNote: 7.1.0
10 changes: 7 additions & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# ProjectTemplate 0.8.2 (2018-04-20)
0.9.1 (2020-04-15)

Internal
-------
* `as_factor` defaults to `FALSE`. This is for compatibility with R 4.0, which is deprecating `stringsAsFactors()`

0.9.0 (2019-02-26)

Expand All @@ -14,7 +18,7 @@ Documentation
-------------
* Link website documentation current release to News.md
* Added file types to `dat` directory `README` (#268)
* Internal functions are now documenter (#243)
* Internal functions are now documented (#243)

Internal
--------
Expand Down Expand Up @@ -128,7 +132,7 @@ Bug fixes
Features
---

* Added functon `.add.extension()`. This allows users to create custom readers for extensions, either locally in a project or as packages.
* Added function `.add.extension()`. This allows users to create custom readers for extensions, either locally in a project or as packages.
* The configuration now stores the version of ProjectTemplate in the `version`
field (#90).
* New function `migrate.project()` that allows upgrading a project to the
Expand Down
2 changes: 1 addition & 1 deletion R/cache.R
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ cache <- function(variable=NULL, CODE=NULL, depends=NULL, ...)
#' Create a data.frame with the cache metadata
#'
#' @param variable Name of the variable to be cached
#' @param depends Vector of variable names of depencies for the variable to be cached, optional.
#' @param depends Vector of variable names of dependencies for the variable to be cached, optional.
#' @param CODE Code block to generate \code{variable}, registered as a dependency, optional.
#'
#' @return \code{data.frame} containing the variable name and its dependencies, with the
Expand Down
3 changes: 0 additions & 3 deletions R/load.project.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
#' the project from which it is called. The behaviour can be controlled by
#' adjusting the \code{\link{project.config}} configuration.
#'
#' @param path Path to project template file. Useful when working in a subdirectory.
#' defaults to getwd()
#'
#' @param ... Named arguments to override configuration from \code{config/global.dcf}
#' and \code{lib/global.R}.
#'
Expand Down
2 changes: 1 addition & 1 deletion inst/defaults/config/default.dcf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ logging: FALSE
logging_level: INFO
load_libraries: FALSE
libraries: reshape2, plyr, tidyverse, stringr, lubridate
as_factors: TRUE
as_factors: FALSE
tables_type: tibble
attach_internal_libraries: TRUE
cache_loaded_data: FALSE
Expand Down
4 changes: 2 additions & 2 deletions inst/defaults/templates/full/config/global.dcf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 0.9.0
version: 0.9.1
data_loading: TRUE
data_loading_header: TRUE
data_ignore:
Expand All @@ -9,7 +9,7 @@ logging: FALSE
logging_level: INFO
load_libraries: FALSE
libraries: reshape2, plyr, tidyverse, stringr, lubridate
as_factors: TRUE
as_factors: FALSE
tables_type: tibble
attach_internal_libraries: FALSE
cache_loaded_data: TRUE
Expand Down
4 changes: 2 additions & 2 deletions inst/defaults/templates/minimal/config/global.dcf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 0.9.0
version: 0.9.1
data_loading: TRUE
data_loading_header: TRUE
data_ignore:
Expand All @@ -9,7 +9,7 @@ logging: FALSE
logging_level: INFO
load_libraries: FALSE
libraries: reshape2, plyr, tidyverse, stringr, lubridate
as_factors: TRUE
as_factors: FALSE
tables_type: tibble
attach_internal_libraries: FALSE
cache_loaded_data: TRUE
Expand Down
1 change: 0 additions & 1 deletion man/ProjectTemplate.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions man/create.project.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/internal.create.cache.hash.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions man/internal.create.project.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion man/preinstalled.readers.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5091b3e

Please sign in to comment.