Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation of html gouv #45

Open
pachevalier opened this issue Sep 30, 2021 · 1 comment
Open

Documentation of html gouv #45

pachevalier opened this issue Sep 30, 2021 · 1 comment

Comments

@pachevalier
Copy link

pachevalier commented Sep 30, 2021

In the documentation of html_gouv(), it is written that it can be passed as a parameter to rmarkdown:render() https://github.com/spyrales/gouvdown/blob/master/man/html_gouv.Rd#L29. Which parameter is it ?

Should we have the following syntax ? render(input = "index.Rmd", params = html_gouv(logo = "gouvernement"))

It would be useful to add an example.

@cdugeai
Copy link
Collaborator

cdugeai commented Apr 4, 2022

I had the same issue. But the doc reads:

An R Markdown output format object to be passed to rmarkdown::render().

So I guessed that the parameter to use was output_format like so:

rmarkdown::render(input = "<your-filename>.Rmd", output_format = html_gouv())

This command seems to work well but I have another proxy error when the script tries to download a font called Spectral so the command crashed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants