ThinkR-open / testdown

Turn your 'testthat' results into a Bookdown.
https://thinkr-open.github.io/testdown/
Other
25 stars 1 forks source link

Possible to add to pkgdown site? #12

Open jimbrig opened 2 years ago

jimbrig commented 2 years ago

I'm wondering if you have any advice on how to add the testdown report to a packages pkgdown navbar?

jimbrig commented 1 year ago

Any ideas?

VincentGuyader commented 1 year ago

hi,

yes, I thanks that the solution is already in https://github.com/ThinkR-open/lozen but I will let @ymansiaux to show you :)

ymansiaux commented 1 year ago

Hi @jimbrig ,

Indeed, as Vincent said, what you are looking for is present in the {lozen} package.

You can use the following :

lozen::build_pkgdown_with_reports(reports = "testdown")

Thereafter, if you open public/index.html you can see the {testdown} report included in a specific tab of your pkgdown.

image

I hope this helps,

Yohann