Skip to content

Commit ec6b4f9

Browse files
committed
Update semi-automated tests and bump version
1 parent 2279022 commit ec6b4f9

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Description: As a pipeline toolkit for Statistics and data science in R,
1010
the underlying code and data. The methodology in this package
1111
borrows from GNU 'Make' (2015, ISBN:978-9881443519)
1212
and 'drake' (2018, <doi:10.21105/joss.00550>).
13-
Version: 0.8.1.9000
13+
Version: 0.9.0
1414
License: MIT + file LICENSE
1515
URL: https://docs.ropensci.org/targets/, https://github.com/ropensci/targets
1616
BugReports: https://github.com/ropensci/targets/issues

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# targets 0.8.1.9000
1+
# targets 0.9.0
22

33
## Highlights
44

tests/interactive/test-class_url.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ tar_test("tar_timestamp() for URLs", {
22
skip_on_cran()
33
skip_if_not_installed("curl")
44
skip_if_offline()
5-
url <- "https://r-project.org"
5+
url <- "https://github.com/ropensci/targets"
66
skip_if(!url_exists(url))
77
tar_script({
88
list(
99
tar_target(
1010
abc,
11-
rep("https://r-project.org", 2),
11+
rep("https://github.com/ropensci/targets", 2),
1212
format = "url"
1313
)
1414
)

tests/interactive/test-keras.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ tar_test("keras format", {
4242
inherits(x$value$object, "keras.engine.training.Model")
4343
)
4444
builder_update_paths(x, path_store_default())
45+
x$store$file$stage <- tempfile()
4546
builder_update_object(x)
4647
expect_true(
4748
inherits(target_read_value(x)$object, "keras.engine.training.Model")

tests/interactive/test-tar_reprex.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ tar_reprex(
77
)
88
},
99
run = {
10-
tar_visnetwork()
10+
tar_outdated()
1111
tar_make()
1212
}
1313
)
@@ -21,7 +21,7 @@ tar_reprex(
2121
)
2222
},
2323
run = {
24-
tar_visnetwork()
24+
tar_outdated()
2525
tar_make()
2626
}
2727
)

tests/interactive/test-tar_watch.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ tar_script({
5050
tar_make() # Stop early.
5151
tar_watch(background = FALSE)
5252

53-
# Should see running branches in the table.
53+
# Should see starged branches in the table.
5454
library(targets)
5555
tar_destroy()
5656
tar_script({
@@ -119,7 +119,6 @@ tar_make(
119119
library(testthat)
120120
expect_false(file.exists("_targets"))
121121
expect_false(file.exists("_targets.R"))
122-
expect_false(file.exists("_targets.yaml"))
123122
expect_true(file.exists("example/config.yaml"))
124123
expect_true(file.exists("example/script.R"))
125124
expect_true(file.exists("example/store"))

tests/performance/test-memory.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ tar_script({
6666
# Comment out and see memory increase:
6767
tar_option_set(memory = "transient", garbage_collection = TRUE)
6868
lapply(
69-
seq_len(50),
69+
paste0("x", seq_len(50)),
7070
function(index) {
7171
tar_target_raw(
7272
as.character(index),
@@ -87,7 +87,7 @@ tar_make()
8787
tar_destroy()
8888
tar_option_set(memory = "transient")
8989
targets <- lapply(
90-
seq_len(50),
90+
paste0("x", seq_len(50)),
9191
function(index) {
9292
tar_target_raw(
9393
as.character(index),

tests/performance/test-stems.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ library(targets)
33

44
px <- pprof(
55
targets <- lapply(
6-
as.character(seq_len(1e3)), function(name) {
6+
paste0("x", seq_len(1e3)), function(name) {
77
tar_target_raw(name, command = quote(1 + 1))
88
}
99
)

0 commit comments

Comments
 (0)