KentonWhite / ProjectTemplate

A template utility for R projects that provides a skeletal project.
http://projecttemplate.net
GNU General Public License v3.0
623 stars 159 forks source link

globals.R question #231

Closed rsangole closed 6 years ago

rsangole commented 6 years ago

Report an Issue / Request a Feature

I'm submitting a (Check one with "x") :


Issue Severity Classification -

(Check one with "x") :

Current Behavior

On creation of a new project, the globals.R shows:

# Add any project specific configuration here.
add.config(
  apply.override = FALSE
)

# Add project specific configuration that can be overridden from load.project()
add.config(
  apply.override = TRUE
)

Is this a bug, having add.config() repeated twice?

Hugovdberg commented 6 years ago

It's not a bug, it's a feature ;-) This was added on request by @KentonWhite, since we didn't want to change the default behaviour of add.config right now. The documentation is in the comments, only when apply.override = TRUE the configuration can be overridden from load.project. See the review comments in #222.

rsangole commented 6 years ago

Ah, thanks :)