Skip to content

Commit 57fbb83

Browse files
Revise mode-date child document chunk labels
* Note that we use `mod-date` in the parent document and we cannot re-use it in the child.
1 parent ae3421a commit 57fbb83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mod-date.Rmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
```{r set-mod-date, eval=TRUE, include=FALSE}
1+
```{r mod-date-setenv, eval=TRUE, include=FALSE}
22
Sys.setenv(KNITR_CURRENT_INPUT = knitr_current_input)
33
```
44

5-
```{bash mood-date, engine.opts='-l', eval=TRUE, echo=FALSE, comment="", message=FALSE}
5+
```{bash mod-date-print, engine.opts='-l', eval=TRUE, echo=FALSE, comment="", message=FALSE}
66
printf "Last modified: %s" "$(git log -1 --format=%cd $KNITR_CURRENT_INPUT | sed 's/^[^ ]* //;s/ [^ ]*$//')"
77
```

0 commit comments

Comments
 (0)