Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is to share the Work In Progress about the documentation site discussed in #18
The site is build with pkgdown. This package by RStudio allow to generate easily a website based on the already present documentation of the package. However, it has some rules and the package is not currently fully compatible. It is why it still is WIP.
Few suggestions based on my work
Authors on the documentation site
Authors on the website is based on the description page. pkgdown decided to only consider the maintainer ("cre"), authors ("aut"), and funder ("fnd") to be the homepage list. Others are in the author page on the site.
In the help page of
?person
, it is explained that roles are based on the MARC Code List for Relators where founder ("fnd"
) is described as "A person or organization that furnished financial support for the production of the work".RTE could be add as founder in
DESCRIPTION
, that way it will appears on the home page of the site.Homepage of the site
The homepage could be based on the readme file. It is the easier choice as it is already existing. Just for you to know, another solution is to create and index.rmd file specific for the website. It is a choice.
For now, I choose
readme.rmd
for convenience. However, there is several things to change.Readme.Rmd
contains html contents (a plotly graph). For pkgdown, it needsalways_allow_html: true
in the yaml header in order to generate theReadme.md
file with html code. Why? Because that way, the code in the rmd file is translated to html and the website contains in its homepage the interactive plotly graph. It nice ! However, the readme.md on on github do not have anymore the graph. It is a choice to make for the documentation between the readme.md on github and the homepage.Several solutions for me:
eval = F
for the plotly chunk and make the file points to this png file.Work In Progress
As you see, to have a website that suits your need, choices have to made to adapt the website your way or change some of your current choices to suit the website way.
See the current work
You could see the current work pulling this PR and open
index.html
in the docs folder.