Manipulate and Run Analysis Using IDEAS data model, as described in Robertson et al. 2020.
devtools::install_github("thespatiallabatlaurier/nzdggs")
https://thespatiallabatlaurier.github.io/nzdggs/
install.packages("devtools")
library("devtools")
devtools::install_github("klutometis/roxygen")
library(roxygen2)
setwd("..\")
devtools::document()
#makedocs documentation
library(stringr)
files <- dir("E:/Personal/Lab/pkg/nzdggs/man/", pattern ="*.Rd")
lapply(files, function(x) {
outfile = paste("E:/Personal/Lab/pkg/nzdggs/docs/",str_replace(x, ".Rd", ".md"),sep = "/")
rdfile = paste("E:/Personal/Lab/pkg/nzdggs/man/",x,sep = "/")
Rd2md::Rd2markdown(rdfile = rdfile, outfile = outfile)
})
mkdocs gh-deploy -c -f ./mkdocs_material.yml
To make a tuturial
# make your Rmd file
# then render it
library(rmarkdown)
render("vignettes//IDEAS-spatial-overlay.Rmd", md_document(variant = "markdown_github"))
# then copy it under proper directory under /docs/Examples/IDEAS
# push on the github
# Run mkdocs gh-deploy -c -f ./mkdocs_material.yml