knitr::opts_chunk$set( collapse = TRUE, comment = "", fig.path = "inst/extdata/" )
PDHS
: Pakistan Demographic and Health Surveydevtools::load_all(".")
r getNamespaceVersion("PDHS")
; Copyright (C) 2019-2020: UAF; License: GPL-2|GPL-3Department of Mathematics and Statistics, University of Agriculture Faisalabad, Pakistan.
dver <- ifelse(test = gsub("(.\\.)(\\d+)(\\..)", "", getNamespaceVersion("PDHS")) != "", yes = getNamespaceVersion("PDHS"), no = gsub("Version:\\s*", "", readLines(paste0("https://raw.githubusercontent.com/", "myaseen208/PDHS", "/master/DESCRIPTION"))[grep("Version:", readLines(paste0("https://raw.githubusercontent.com/", "myaseen208/PDHS", "/master/DESCRIPTION")))])) cat(paste("[![develVersion](https://img.shields.io/badge/devel%20version-", dver, "-orange.svg)](https://github.com/myaseen208/PDHS)", sep = ""))
r gsub("(<doi:)(.+)(>)", "[doi:\\2](https://doi.org/\\2)", gsub("\\n", " ", packageDescription("PDHS", fields = "Description")))
The package can be installed from CRAN as follows:
install.packages("PDHS", dependencies = TRUE)
The development version can be installed from github as follows:
if (!require("remotes")) install.packages("remotes") remotes::install_github("myaseen208/PDHS")
To know whats new in this version type:
news(package = "PDHS")
PDHS
To cite the methods in the package use:
citation("PDHS")
```r detach("package:PDHS", unload=TRUE) suppressPackageStartupMessages(library(PDHS)) cit <- citation("PDHS")
cit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.