Skip to content

Commit 5a3f62e

Browse files
committed
Fix #1506
1 parent 78bd3f0 commit 5a3f62e

File tree

5 files changed

+34
-20
lines changed

5 files changed

+34
-20
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Description: Pipeline tools coordinate the pieces of computationally
1212
The methodology in this package
1313
borrows from GNU 'Make' (2015, ISBN:978-9881443519)
1414
and 'drake' (2018, <doi:10.21105/joss.00550>).
15-
Version: 1.11.3.9003
15+
Version: 1.11.3.9004
1616
License: MIT + file LICENSE
1717
URL: https://docs.ropensci.org/targets/, https://github.com/ropensci/targets
1818
BugReports: https://github.com/ropensci/targets/issues

NEWS.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# targets 1.11.3.9003 (development)
1+
# targets 1.11.3.9004 (development)
22

33
* Tone down progress bar output for medium-overhead scenarios.
44
* Speed up `tar_meta()` default settings for `tar_read()` etc. (for million-target pipelines).
55
* Choose the `"terse"` reporter by default if the calling session is non-interactive. This will hopefully avoid problems on CRAN for packages that use `targets` with the default settings.
6-
* Improve reporter deprecation messages (#1493, @dakvid)
6+
* Improve reporter deprecation messages (#1493, @dakvid).
7+
* Clarify scope of `tar_renv()` (#1506, @valentingar).
78

89
# targets 1.11.3
910

R/tar_renv.R

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77
#' Each package is written to a separate line
88
#' as a standard [library()] call (e.g. `library(package)`) so
99
#' `renv` can identify them automatically.
10+
#' The following packages are included:
11+
#'
12+
#' * Packages listed in the `packages` argument of [tar_target()]
13+
#' or [tar_option_set()].
14+
#' * Packages required by the `format` set in [tar_target()]
15+
#' or [tar_option_set()].
16+
#' * Packages directly listed in the `extras` argument of [tar_renv()].
17+
#'
1018
#' @details This function gets called for its side-effect, which writes
1119
#' package dependencies to a script for compatibility with `renv`.
1220
#' The generated file should __not__ be edited by hand and will be
@@ -16,12 +24,11 @@
1624
#' and keep a record of project dependencies in a file called `renv.lock`.
1725
#' To identify dependencies, `renv` crawls through code to find packages
1826
#' explicitly mentioned using `library()`, `require()`, or `::`.
19-
#' However, `targets` manages packages in a way that hides dependencies
20-
#' from `renv.` `tar_renv()` finds package dependencies that would be
21-
#' otherwise hidden to `renv` because they are declared using the `targets`
22-
#' API. Thus, calling `tar_renv` this is only necessary if using
23-
#' [`tar_option_set()`] or [`tar_target()`] to use specialized storage
24-
#' formats or manage packages.
27+
#' However, `targets` pipelines introduce extra package dependencies
28+
#' through the `packages` and `format` arguments of
29+
#' [tar_option_set()] and [tar_target()].
30+
#' [tar_renv()] writes a special R script which allows these extra packages
31+
#' (along with packages listed in `extras`) to be detected by `renv`.
2532
#'
2633
#' With the script written by `tar_renv()`, `renv` is able to crawl the
2734
#' file to identify package dependencies (with `renv::dependencies()`).
@@ -42,8 +49,8 @@
4249
#' After confirming at
4350
#' <https://rstudio.github.io/renv/reference/config.html>
4451
#' that you can safely disable these checks,
45-
#' you can write lines `RENV_CONFIG_RSPM_ENABLED=false`,
46-
#' `RENV_CONFIG_SANDBOX_ENABLED=false`,
52+
#' you can write lines
53+
#' `RENV_CONFIG_SANDBOX_ENABLED=false`
4754
#' and `RENV_CONFIG_SYNCHRONIZED_CHECK=false`
4855
#' in your user-level `.Renviron` file. If you disable the synchronization
4956
#' check, remember to call `renv::status()` periodically

man/tar_renv.Rd

Lines changed: 15 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

targets.Rproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
Version: 1.0
2-
ProjectId: 903bf32b-64b3-41e8-8073-09704a58e042
32

43
RestoreWorkspace: Default
54
SaveWorkspace: Default

0 commit comments

Comments
 (0)