Skip to content

Commit cd0609f

Browse files
committed
fix pkgdown
- Fix `README.Rmd` for compatibility with pkgdown.
1 parent a081be5 commit cd0609f

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

DESCRIPTION

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ Imports:
1313
tidyr,
1414
purrr,
1515
magrittr
16-
Suggests: testthat,
16+
Suggests:
17+
data.tree,
18+
here,
1719
knitr,
1820
rmarkdown,
19-
data.tree
21+
testthat
2022
Remotes:
2123
krlmlr/utf8
2224
License: GPL-3

README.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
output:
3-
md_document:
4-
variant: markdown_github
3+
github_document:
4+
html_preview: false
55
---
66

77
<!-- README.md is generated from README.Rmd. Please edit that file -->
@@ -39,7 +39,7 @@ print_code <- function(x) {
3939
collapse = "\n"))
4040
}
4141
42-
dirty <- readLines("tests/testthat/example/in.R")
42+
dirty <- readLines(here::here("tests/testthat/example/in.R"))
4343
4444
print_code(dirty)
4545
```

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
<!-- README.md is generated from README.Rmd. Please edit that file -->
23
styler
34
======
@@ -17,7 +18,7 @@ print_code <- function(x) {
1718
collapse = "\n"))
1819
}
1920

20-
dirty <- readLines("tests/testthat/example/in.R")
21+
dirty <- readLines(here::here("tests/testthat/example/in.R"))
2122

2223
print_code(dirty)
2324

0 commit comments

Comments
 (0)