dev_history.R

require(usethis)
require(devtools)
require(attachment)
require(pkgdown)
## See tutorials here : https://rtask.thinkr.fr/blog/rmd-first-when-development-starts-with-documentation/
## and https://usethis.r-lib.org/articles/articles/usethis-setup.html
## and video here : http://www.user2019.f r/static/pres/t257651.zip

## create the package
usethis::create_package("/home/ptaconet/malamodpkg")
## Manual step : Create a dev_history.R file that archives all the package history steps. Then copy it to the package folder.
## Then proceed :
usethis::use_build_ignore("dev_history.R")
usethis::use_build_ignore("GRASS_TEMP")
usethis::use_git()
usethis::use_gpl3_license()
devtools::check()
usethis::proj_get()
usethis::use_github()
devtools::install()
usethis::use_readme_rmd()

## Manual step : Commit and push

## Document functions and dependencies
attachment::att_to_description()
## Check the package
devtools::check()

## Manual step : Add example dataset in inst/example-data

usethis::use_vignette("import_tidy_transform_envdata")
# Document functions and dependencies
attachment::att_to_description()
# Check the package
devtools::check()

devtools::install()

## To build a website with home and vignettes
usethis::use_package_doc()
usethis::use_tibble()
devtools::document()
pkgdown::build_site()
## Manual step : go to the settings of the package on the github page, then under "github page" put "master branch /docs folder"
ptaconet/malamodpkg documentation built on Feb. 12, 2020, 3:45 p.m.