dev.R

# This file just keeps some of the code used when creating this package
# and it is not part of the package. It is provided for convencience only.

library(devtools)
library(usethis)
library(here)


# Do this when creating PR that merges master branch changes (if it has changed)

# see https://stackoverflow.com/questions/16955980/git-merge-master-into-feature-branch

# git checkout master
# git pull
# git checkout feature-branch
# git merge --no-ff master
# git mergetool

# .... now carefully merge the changes (I'm using "meld" as mergetool)
# http://meldmerge.org/features.html (can do threeway-diffs nicely)

# Also, are you bumping the version nr?
# if so edit DESCRIPTION w new verson nr and NEWS.md with changelog

## DO THIS when pushing

document()
check()
# remember to update the bundled data
db_sync(overwrite_existing = TRUE)
source(here("data-raw/public_data.R"))

# changes to abm.Rmd may require Ctrl-Shift-B (for new internal pkg data to be installed)!

# first revert the .gitignore if it has been changed by below
build_vignettes()

#build()
#test()

# git revert the .gitignore to remove the "doc" line in there
# Remember to update news.md before build_site()
pkgdown::build_site()
file.copy("doc", "inst", recursive = TRUE)
KTH-Library/bibliomatrix documentation built on Feb. 29, 2024, 5:54 a.m.