knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "",
  fig.path = "inst/extdata/"
)

PDHS: Pakistan Demographic and Health Survey

devtools::load_all(".")
Version : r getNamespaceVersion("PDHS"); Copyright (C) 2019-2020: UAF; License: GPL-2|GPL-3
Muhammad Yaseen

Department of Mathematics and Statistics, University of Agriculture Faisalabad, Pakistan.


minimal R version License: GPL v3 CRAN_Status_Badge rstudio mirror downloads

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 = ""))

Project Status: WIP lifecycle Last-changedate Rdoc


Description

r gsub("(<doi:)(.+)(>)", "[doi:\\2](https://doi.org/\\2)", gsub("\\n", " ", packageDescription("PDHS", fields = "Description")))

Installation

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")

What's new

To know whats new in this version type:

news(package = "PDHS")

Links

CRAN page

Github page

Documentation website

Citing PDHS

To cite the methods in the package use:

citation("PDHS")

```r detach("package:PDHS", unload=TRUE) suppressPackageStartupMessages(library(PDHS)) cit <- citation("PDHS")

yr <- format(Sys.Date(), "%Y")

cit[1]$year <- yr

oc <- class(cit)

cit <- unclass(cit)

attr(cit[[1]],"textVersion") <- gsub("\(\)",

paste("\(", yr, "\)", sep = ""),

attr(cit[[1]],"textVersion"))

class(cit) <- oc

cit



myaseen208/PDHS documentation built on Feb. 29, 2020, 8:15 a.m.