Conversation
Add first pages for new dissMapR and invasiMap R packages
|
Thanks @macSands! I see you took inspiration from the gcube page, which makes sense. We'll change that up a bit though and include the external tutorials directly into the website. Here's how it will look:
It's very good for us to know that the dissmapr and invasiMap packages and related tutorials are coming, but given that 1) we'll change the way we're adding them to the website (semi-automatically) and 2) they're currently not there yet, I'm going to keep this pull request in draft form until we have concrete files to parse. FYI: the navigation is maintained here: documentation/astro.config.mjs Lines 29 to 37 in fcc5234 Right now the software tutorials are added manually to the navigation, but after the switch we'll set that to autogenerate. |
|
I noticed the repositories are created, so I started to add dissmapr to the documentation website. We read each .Rmd file and produce a .md file and figures that are added to the website. However, our method does not work here because the Rmd files use an external .Rmd file. Warning in file(con, "r") :
cannot open file 'C:/Users/SANNE_~1/AppData/Local/Temp/RtmpMV10n6/rmd_file/_common.Rmd': No such file or directory |
Hi @macSands: Would it be possible to not use external files in your .Rmd so I can add your documentation to the website? |
|
Ping @macSands |
There was a problem hiding this comment.
Hi @macSands
Good to see that your tutorials are ready to be added to the documentation website. However, it is not possible to add them for now, as I commented above.
We read each .Rmd file and produce a .md file and figures that are added to the website, with this script, using the function b3doc::rmd_to_md().
However, our method does not work here because the Rmd files use an external .Rmd file.
{r child-2, child = "_common.Rmd"}
Warning in file(con, "r") :
cannot open file 'C:/Users/SANNE_~1/AppData/Local/Temp/RtmpMV10n6/rmd_file/_common.Rmd': No such file or directoryI can only add your tutorials if no external files are used to created the vignettes.
Also, all dependencies need to be listed in the vignettes.yml file under dependencies, for each vignette seperately. I had added those for each of your vignettes for each package that you load with library(). This is to make sure that all the needed packages are installed on the computer that recreates the markdown files. But you changed this to dissmapr dplyr knitr for all vignettes, while many more packages are used in the vignettes.
|
@macSands, As we discussed during our meeting, these are the next 2 steps:
I recommended you during the meeting to work with data functions. It is good to have this for an example dataset you work with. However, this might not be the best solution after all for your situation where you need to save snapshots of the data during the analysis. Here you can find more info. So your solution to store the data in *I am confused because the software requirements of B-cubed say: "Data files included in the repository MUST be placed in the data/ directory (and inst/extdata/ for R packages).", while the R package guide advises to use Also be aware that all the data together cannot be too big when you are submitting your R package to Cran. |

Add first pages for new dissMapR and invasiMap R packages in development. Software repositories 'https://b-cubed-eu.github.io/dissmapr/' and 'https://b-cubed-eu.github.io/invasimapr' still to be created, so links won't work yet. With the new 'Astro + Starlight project' structure, I'm not sure where to update navigation tab.