Skip to content

Commit 5465971

Browse files
committed
tidy
1 parent d78f5de commit 5465971

File tree

4 files changed

+182
-261
lines changed

4 files changed

+182
-261
lines changed

tools/retether.R

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ resolve_roxy_tether <- function(endpoint) {
2424
resolve_roxy_tether("keras.ops")
2525

2626
# endpoint <- 'keras.layers.BatchNormalization'
27-
# resolve_roxy_tether(endpoint)
28-
#
29-
# stop()
30-
# x <- resolve_roxy_tether('keras.layers.Conv1D')
27+
# x <- resolve_roxy_tether(endpoint)
28+
# x
3129
# cat(x)
3230
# cat(attr(x, "roxified"))
31+
# stop()
3332

3433

3534
# url <- "https://raw.githubusercontent.com/keras-team/keras/master/guides/writing_your_own_callbacks.py"
@@ -48,26 +47,18 @@ resolve_rmd_tether <- function(url) {
4847
}
4948

5049
# resolve_rmd_tether <- NULL
50+
# resolve_roxy_tether <- NULL
51+
5152

52-
# debug(Filter)
53-
# debugonce(doctether:::get_block_name)
54-
# debugonce(doctether::retether)
5553
# options(warn = 2)
56-
# options(error = browser)
57-
# debug(roxygen2:::warn_roxy_tag)
58-
# unlink(".tether", recursive = TRUE)
5954
doctether::retether(
6055
# "keras.ops",
61-
unsafe = TRUE,
62-
roxy_tag_eval =
63-
resolve_roxy_tether,
64-
# NULL,
65-
rmd_field_eval =
66-
resolve_rmd_tether
67-
# NULL
56+
# unsafe = TRUE,
57+
roxy_tag_eval = resolve_roxy_tether,
58+
rmd_field_eval = resolve_rmd_tether
6859
)
6960

70-
# to retether just one vignette:
61+
## To retether just one vignette:
7162
# doctether:::retether_rmd("~/github/rstudio/keras/vignettes-src/serialization_and_saving.Rmd",
7263
# eval_tether_field = resolve_rmd_tether)
7364

tools/scraps.R

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# defered TODOs:
2-
# TODO: consider using quilt or stgit instead of the manual git calls
3-
# https://stacked-git.github.io https://savannah.nongnu.org/projects/quilt/ https://blog.tfnico.com/2020/07/git-tools-for-keeping-patches-on-top-of.html
4-
5-
61

72

83
# filter out function handles that also have class handles

0 commit comments

Comments
 (0)