Skip to content

Commit 8c50656

Browse files
committed
fix #1529
1 parent 1c61bb5 commit 8c50656

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ googlecloudrunner-auth-key.json
2323
run.R
2424
run.sh
2525
cas
26+
27+
/.quarto/
28+
**/*.quarto_ipynb

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.4.9000
15+
Version: 1.11.4.9001
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# targets 1.11.4.9000 (development)
2-
1+
# targets 1.11.4.9001 (development)
32

3+
* Avoid loading non-targets in `tar_load(everything())` (#1529, @pitakakariki).
44

55
# targets 1.11.4
66

R/tar_load.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ tar_load <- function(
7878
tar_assert_store(store = store)
7979
force(meta)
8080
force(envir)
81-
names <- tar_tidyselect_eval(rlang::enquo(names), meta$name)
81+
choices <- meta$name[!(meta$type %in% c("object", "function"))]
82+
names <- tar_tidyselect_eval(rlang::enquo(names), choices)
8283
tar_load_raw(
8384
names = names,
8485
branches = branches,

R/tar_load_everything.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ tar_load_everything <- function(
3737
tar_assert_allow_meta("tar_load_everything", store)
3838
force(envir)
3939
tar_load(
40-
everything(),
40+
tidyselect::everything(),
4141
branches = branches,
4242
meta = meta,
4343
strict = strict,

0 commit comments

Comments
 (0)