Skip to content

prajwalkpatil/VedicDateTime

Repository files navigation

VedicDateTimealt text

CRAN status codecov R-CMD-check lintr

An R Package to work with Vedic Calendar System.

@maintainer: @neerajdhanraj

Getting Started

To get tithi or lunar day given a Gregorian calendar date

library("VedicDateTime")
place <- c(15.34, 75.13, +5.5)
tithi(gregorian_to_jd(08,09,2022), place)

To get vaara or day of the week given a Gregorian calendar date

library("VedicDateTime")
vaara(gregorian_to_jd(08,09,2022))

To get masa or lunar month given a Gregorian calendar date

library("VedicDateTime")
place <- c(15.34, 75.13, +5.5)
masa(gregorian_to_jd(08,09,2022), place)

To get Julian day from a given Gregorian calendar date

library("VedicDateTime")
gregorian_to_jd(08,09,2022) # dd, mm, yyyy

Install

To install the development version from GitHub

devtools::install_github("saradindusengupta/VedicDateTime")
devtools::install_github("prajwalkpatil/VedicDateTime")

Build

To build from source, clone the repository from Github

devtools::build(args = c('--compact-vignettes=both'))
devtools::install()

R CMD CHECK

To check for CRAN submission

rhub

rhub::check_for_cran(check_args = c('--compact-vignettes=both'))

Local - R CMD CHECK

devtools::check(build_args = c('--compact-vignettes=both'))

Submit to CRAN

devtools::release(args = c('--compact-vignettes=both'))

Test

To run the test cases for development

devtools::test()

Test Coverage

To generate the test coverage report cases for development

covr::package_coverage("VedicDateTime")

CRAN

Check cran-comments.md to verify latest updates

Documentation