Skip to content

Commit c57cdfc

Browse files
committed
Remove environment unlocking and export S3 methods
1 parent f5e2391 commit c57cdfc

24 files changed

+337
-118
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,4 +153,4 @@ Suggests:
153153
Encoding: UTF-8
154154
Language: en-US
155155
Roxygen: list(markdown = TRUE)
156-
RoxygenNote: 7.2.3
156+
RoxygenNote: 7.3.1

NAMESPACE

+157-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,130 @@
11
# Generated by roxygen2: do not edit by hand
22

33
S3method("[",expr_list)
4+
S3method(assert_format_impl,default)
5+
S3method(assert_format_impl,diskframe)
6+
S3method(assert_format_impl,file)
7+
S3method(assert_format_impl,fst)
8+
S3method(assert_format_impl,fst_dt)
9+
S3method(assert_format_impl,fst_tbl)
10+
S3method(assert_format_impl,keras)
11+
S3method(assert_format_impl,qs)
12+
S3method(assert_format_impl,rds)
13+
S3method(assert_good_transform,default)
14+
S3method(assert_good_transform,map)
415
S3method(c,expr_list)
16+
S3method(cds_assert_trace,default)
17+
S3method(cds_assert_trace,dynamic)
18+
S3method(cds_assert_trace,group)
19+
S3method(cds_dynamic_deps,default)
20+
S3method(cds_dynamic_deps,dynamic)
21+
S3method(cds_dynamic_trace,default)
22+
S3method(cds_dynamic_trace,dynamic)
23+
S3method(char,transform)
24+
S3method(chr_dynamic_impl,default)
25+
S3method(chr_dynamic_impl,drake_dynamic)
26+
S3method(conclude_build_impl,default)
27+
S3method(conclude_build_impl,drake_cancel)
28+
S3method(dcst_get_,default)
29+
S3method(dcst_get_,drake_format_diskframe)
30+
S3method(dcst_get_,drake_format_file)
31+
S3method(dcst_get_,drake_format_fst)
32+
S3method(dcst_get_,drake_format_fst_dt)
33+
S3method(dcst_get_,drake_format_fst_tbl)
34+
S3method(dcst_get_,drake_format_keras)
35+
S3method(dcst_get_,drake_format_qs)
36+
S3method(dcst_get_,drake_format_rds)
37+
S3method(dcst_get_value_,default)
38+
S3method(dcst_get_value_,drake_format_diskframe)
39+
S3method(dcst_get_value_,drake_format_file)
40+
S3method(dcst_get_value_,drake_format_fst)
41+
S3method(dcst_get_value_,drake_format_fst_dt)
42+
S3method(dcst_get_value_,drake_format_fst_tbl)
43+
S3method(dcst_get_value_,drake_format_keras)
44+
S3method(dcst_get_value_,drake_format_qs)
45+
S3method(dcst_get_value_,drake_format_rds)
46+
S3method(dcst_set,default)
47+
S3method(dcst_set,drake_format_diskframe)
48+
S3method(dcst_set,drake_format_fst)
49+
S3method(dcst_set,drake_format_fst_dt)
50+
S3method(dcst_set,drake_format_fst_tbl)
51+
S3method(dcst_set,drake_format_keras)
52+
S3method(dcst_set,drake_format_qs)
53+
S3method(dcst_set,drake_format_rds)
54+
S3method(decorate_format_meta,default)
55+
S3method(decorate_format_meta,drake_format_file)
56+
S3method(decorate_format_value,default)
57+
S3method(decorate_format_value,drake_format_file)
58+
S3method(decorate_trigger_format_meta,default)
59+
S3method(decorate_trigger_format_meta,file)
60+
S3method(drake_meta_impl,dynamic)
61+
S3method(drake_meta_impl,imported_file)
62+
S3method(drake_meta_impl,imported_object)
63+
S3method(drake_meta_impl,static)
64+
S3method(drake_meta_impl,subtarget)
65+
S3method(dsl_by,combine)
66+
S3method(dsl_combine,combine)
67+
S3method(dsl_deps,combine)
68+
S3method(dsl_deps,cross)
69+
S3method(dsl_deps,map)
70+
S3method(dsl_grid,cross)
71+
S3method(dsl_grid,map)
72+
S3method(dsl_id,transform)
73+
S3method(dsl_names,transform)
74+
S3method(dsl_revdeps,combine)
75+
S3method(dsl_revdeps,cross)
76+
S3method(dsl_revdeps,map)
77+
S3method(dsl_transform,combine)
78+
S3method(dsl_transform,map)
79+
S3method(dynamic_hash_list,cross)
80+
S3method(dynamic_hash_list,group)
81+
S3method(dynamic_hash_list,map)
82+
S3method(dynamic_hashes,default)
83+
S3method(dynamic_hashes,drake_dynamic)
84+
S3method(find_old_groupings,combine)
85+
S3method(find_old_groupings,cross)
86+
S3method(find_old_groupings,map)
87+
S3method(format_file_checksum_impl,default)
88+
S3method(format_file_checksum_impl,file)
89+
S3method(get_subtargets,default)
90+
S3method(get_subtargets,drake_dynamic)
91+
S3method(get_trace_impl,cross)
92+
S3method(get_trace_impl,group)
93+
S3method(get_trace_impl,map)
94+
S3method(groupings,combine)
95+
S3method(groupings,map)
96+
S3method(handle_triggers_impl,dynamic_registered)
97+
S3method(handle_triggers_impl,dynamic_unregistered)
98+
S3method(handle_triggers_impl,static)
99+
S3method(handle_triggers_impl,subtarget)
100+
S3method(hpc_spec_impl,default)
101+
S3method(hpc_spec_impl,subtarget)
102+
S3method(interpret_transform,combine)
103+
S3method(interpret_transform,cross)
104+
S3method(interpret_transform,map)
105+
S3method(is_outdated_impl,dynamic)
106+
S3method(is_outdated_impl,static)
107+
S3method(lang,command)
108+
S3method(load_dynamic_subdep_impl,default)
109+
S3method(load_dynamic_subdep_impl,group)
110+
S3method(load_target_impl,bind)
111+
S3method(load_target_impl,eager)
112+
S3method(load_target_impl,promise)
113+
S3method(load_targets_impl,default)
114+
S3method(load_targets_impl,drake_dynamic)
115+
S3method(manage_deps,autoclean)
116+
S3method(manage_deps,lookahead)
117+
S3method(manage_deps,none)
118+
S3method(manage_deps,preclean)
119+
S3method(manage_deps,speed)
120+
S3method(manage_deps,unload)
121+
S3method(match_dynamic_call_impl,combine)
122+
S3method(match_dynamic_call_impl,cross)
123+
S3method(match_dynamic_call_impl,group)
124+
S3method(match_dynamic_call_impl,map)
125+
S3method(new_groupings,cross)
126+
S3method(new_groupings,map)
127+
S3method(old_groupings,map)
5128
S3method(plot,drake_plan)
6129
S3method(print,drake_config)
7130
S3method(print,drake_deps)
@@ -13,9 +136,43 @@ S3method(print,drake_plan_source)
13136
S3method(print,drake_settings)
14137
S3method(print,drake_spec)
15138
S3method(print,drake_triggers)
139+
S3method(recovery_key_impl,default)
140+
S3method(recovery_key_impl,subtarget)
141+
S3method(sanitize_format,default)
142+
S3method(sanitize_format,drake_format_diskframe)
143+
S3method(sanitize_format,drake_format_file)
144+
S3method(sanitize_format,drake_format_fst)
145+
S3method(sanitize_format,drake_format_fst_dt)
146+
S3method(sanitize_format,drake_format_fst_tbl)
147+
S3method(serialize_build,default)
148+
S3method(serialize_build,drake_build_keras)
149+
S3method(store_item_impl,drake_function)
150+
S3method(store_item_impl,drake_object)
151+
S3method(store_item_impl,drake_static_storage)
152+
S3method(store_item_impl,drake_storr)
16153
S3method(subtarget_deps,cross)
17154
S3method(subtarget_deps,group)
18155
S3method(subtarget_deps,map)
156+
S3method(subtarget_hashes,cross)
157+
S3method(subtarget_hashes,group)
158+
S3method(subtarget_hashes,map)
159+
S3method(tag_in,transform)
160+
S3method(tag_out,transform)
161+
S3method(target_msg,cancel)
162+
S3method(target_msg,dynamic)
163+
S3method(target_msg,fail)
164+
S3method(target_msg,finalize)
165+
S3method(target_msg,recover)
166+
S3method(target_msg,retry)
167+
S3method(target_msg,subtarget)
168+
S3method(target_msg,target)
169+
S3method(undecorate_format_value,default)
170+
S3method(undecorate_format_value,drake_format)
171+
S3method(unserialize_build,default)
172+
S3method(unserialize_build,drake_build_keras)
173+
S3method(value_format,default)
174+
S3method(value_format,drake_format)
175+
S3method(value_format,drake_format_diskframe)
19176
export(Makefile_recipe)
20177
export(all_of)
21178
export(analyses)
@@ -312,4 +469,3 @@ importFrom(vctrs,new_rcrd)
312469
importFrom(vctrs,vec_assert)
313470
importFrom(vctrs,vec_c)
314471
importFrom(vctrs,vec_slice)
315-
useDynLib(drake, .registration = TRUE)

NEWS.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Version 7.13.10
2+
3+
* Remove environment locking, c.f. https://github.com/r-lib/rlang/issues/1705.
4+
* Export S3 methods.
5+
16
# Version 7.13.9
27

38
* Avoid `is.R()`.

R/cache.R

+4
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ load_targets_impl <- function(
315315
UseMethod("load_targets_impl")
316316
}
317317

318+
#' @export
318319
load_targets_impl.drake_dynamic <- function( # nolint
319320
hashes,
320321
target,
@@ -328,6 +329,7 @@ load_targets_impl.drake_dynamic <- function( # nolint
328329
assign(target, value, envir = envir, inherits = FALSE)
329330
}
330331

332+
#' @export
331333
load_targets_impl.default <- function(
332334
hashes,
333335
target,
@@ -343,6 +345,7 @@ get_subtargets <- function(hashes, target, cache, subtargets, subtarget_list) {
343345
UseMethod("get_subtargets")
344346
}
345347

348+
#' @export
346349
get_subtargets.drake_dynamic <- function(
347350
hashes,
348351
target,
@@ -366,6 +369,7 @@ get_subtargets.drake_dynamic <- function(
366369
out
367370
}
368371

372+
#' @export
369373
get_subtargets.default <- function(
370374
hashes,
371375
target,

R/create_drake_spec.R

+7
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ cds_dynamic_deps <- function(dynamic, target, args) {
295295
UseMethod("cds_dynamic_deps")
296296
}
297297

298+
#' @export
298299
cds_dynamic_deps.dynamic <- function(dynamic, target, args) {
299300
dynamic$.trace <- NULL
300301
out <- ht_filter(args$ht_globals, all.vars(dynamic))
@@ -307,6 +308,7 @@ cds_dynamic_deps.dynamic <- function(dynamic, target, args) {
307308
out
308309
}
309310

311+
#' @export
310312
cds_dynamic_deps.default <- function(dynamic, target, args) {
311313
character(0)
312314
}
@@ -315,10 +317,12 @@ cds_dynamic_trace <- function(dynamic, args) {
315317
UseMethod("cds_dynamic_trace")
316318
}
317319

320+
#' @export
318321
cds_dynamic_trace.dynamic <- function(dynamic, args) {
319322
all.vars(dynamic$.trace)
320323
}
321324

325+
#' @export
322326
cds_dynamic_trace.default <- function(dynamic, args) {
323327
character(0)
324328
}
@@ -327,6 +331,7 @@ cds_assert_trace <- function(dynamic, spec) {
327331
UseMethod("cds_assert_trace")
328332
}
329333

334+
#' @export
330335
cds_assert_trace.group <- function(dynamic, spec) {
331336
bad <- setdiff(spec$deps_dynamic_trace, spec$deps_dynamic)
332337
if (!length(bad)) {
@@ -343,6 +348,7 @@ cds_assert_trace.group <- function(dynamic, spec) {
343348
)
344349
}
345350

351+
#' @export
346352
cds_assert_trace.dynamic <- function(dynamic, spec) {
347353
bad <- setdiff(spec$deps_dynamic_trace, spec$deps_dynamic)
348354
if (!length(bad)) {
@@ -360,6 +366,7 @@ cds_assert_trace.dynamic <- function(dynamic, spec) {
360366
)
361367
}
362368

369+
#' @export
363370
cds_assert_trace.default <- function(dynamic, spec) {
364371
character(0)
365372
}

0 commit comments

Comments
 (0)