Skip to content

Commit c96170c

Browse files
committed
Fix #1508
1 parent 5a3f62e commit c96170c

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

DESCRIPTION

Lines changed: 2 additions & 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.9004
15+
Version: 1.11.3.9005
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
@@ -60,6 +60,7 @@ Imports:
6060
cli (>= 2.0.2),
6161
codetools (>= 0.2.16),
6262
data.table (>= 1.16.0),
63+
fs,
6364
igraph (>= 2.0.0),
6465
knitr (>= 1.34),
6566
prettyunits (>= 1.1.0),

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ importFrom(data.table,fwrite)
587587
importFrom(data.table,rbindlist)
588588
importFrom(data.table,set)
589589
importFrom(data.table,transpose)
590+
importFrom(fs,path_abs)
590591
importFrom(igraph,V)
591592
importFrom(igraph,adjacent_vertices)
592593
importFrom(igraph,as_edgelist)

NEWS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# targets 1.11.3.9004 (development)
1+
# targets 1.11.3.9005 (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.
66
* Improve reporter deprecation messages (#1493, @dakvid).
77
* Clarify scope of `tar_renv()` (#1506, @valentingar).
8+
* Check absolute paths in `tar_assert_allow_meta()` (#1508, @dipterix).
89

910
# targets 1.11.3
1011

R/tar_package.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#' is_dynamic_tty make_spinner pb_bar pb_current pb_total
2222
#' @importFrom codetools findGlobals
2323
#' @importFrom data.table data.table fread fwrite rbindlist set transpose
24+
#' @importFrom fs path_abs
2425
#' @importFrom igraph adjacent_vertices as_edgelist gorder
2526
#' graph_from_data_frame igraph_opt igraph_options is_dag simplify topo_sort
2627
#' V

R/utils_assert.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,8 +772,10 @@ tar_assert_allow_meta <- function(fun, store) {
772772
safe <- is.null(target) ||
773773
is.null(tar_runtime$store) ||
774774
!identical(
775-
normalizePath(as.character(store), mustWork = FALSE),
776-
normalizePath(as.character(tar_runtime$store), mustWork = FALSE)
775+
fs::path_abs(normalizePath(as.character(store), mustWork = FALSE)),
776+
fs::path_abs(
777+
normalizePath(as.character(tar_runtime$store), mustWork = FALSE)
778+
)
777779
)
778780
if (safe) {
779781
return()

0 commit comments

Comments
 (0)