Defines functions release_questions onUnload onAttach

# Copyright (C) 2014 - 2018  Jack O. Wasey
# This file is part of icd.
# icd is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# icd is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with icd. If not, see <http:#www.gnu.org/licenses/>.

# nocov start

.onAttach <- function(libname, pkgname) {
    "Welcome to the 'icd' package for finding comorbidities and interpretation of ICD-9 and ICD-10 codes.\n",
    "?icd or visit https://jackwasey.github.io/icd to get started.\n",
    "Please cite this package if you find it useful in your published work citation(package = \"icd\")")
  if (system.file(package = "icd9") != "")
      "The 'icd9' package is now deprecated, and should be removed to avoid conflicts with 'icd'.
The 'icd' package up to version 2.1 contains tested versions of all the deprecated function names which overlap with those in the old
'icd9' package, e.g. 'icd9ComorbidAhrq'. It is strongly recommended to run the command:


.onUnload <- function(libpath) {
  library.dynam.unload("icd", libpath)

release_questions <- function() {
    # commands:
    "update_everything(), then copy data to icd.data package",
    "tools/publish.sh to run pkgdown::build_site() then push to gh-pages",
    # documentation:
    "Check all TODO comments, make into github issues",
    "Do all examples look ok (not just run without errors)?",
    "Have all the fixed github issues been closed",
    "Is NEWS.md updated and contributors credited?",
    "Does every file have correct licence information?",
    # code quality:
    "Consider results of 'goodpractice' package.",
    "Are you happy with the _core_ code coverage?",
    "Is every SEXP PROTECT()ed and UNPROTECT()ed, when appropriate?",
    "Are all public S3 classes all exported? use devtools::missing_s3()",
    "use LLVM static scan build, scan-build before compiler in .R/Makevars",
    # testing and compilation and different platforms:
    "Have you run tests in tests-deprecated and tests-build-code?",
    "Has config.h.win been updated to reflect latest configure.ac results?",
    "Are there skipped tests which should be run?",
    "Does it compile, test and check fine on travis and appveyor?",
    "Have you checked on Windows, win_builder (if possible with configure.win failure),
      Mac, Ubuntu, UBSAN rocker, and updated my docker image which
      resembles a CRAN maintainers environment?",
    "is R_OPENMP macro updated from R sources: m4/openmp.m4",
    "look for residual tmp files or dirs after checking, CRAN doesn't tolerate",
    # final manual check:
    "Are all NOTES from R CMD check documented in cran-comments.md",
    "Have all unnecessary files been ignored in built archive? Especially
      thinking of autoconfigure stuff. Look in the final built archive
      before submitting to CRAN?",
# nocov end

Try the icd package in your browser

Any scripts or data that you put into this service are public.

icd documentation built on June 8, 2018, 1:04 a.m.