Skip to content

Commit f3d1800

Browse files
committed
spell check
1 parent 4f9bdae commit f3d1800

File tree

8 files changed

+17
-14
lines changed

8 files changed

+17
-14
lines changed

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
^README\.Rmd$
55
^_pkgdown\.yml$
66
^docs$
7+
^cran-comments\.md$
8+
^CRAN-RELEASE$

R/date_xx.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ is_date_xx <- function(x){
8383
#' @param x A [date_xx] object
8484
#' @param ... passed on to [format.date_yq()] or [format.date_ym()]
8585
#'
86-
#' @return `x` (invislby)
86+
#' @return `x` (invisibly)
8787
#' @export
8888
#'
8989
print.date_xx <- function(
@@ -102,12 +102,13 @@ print.date_xx <- function(
102102

103103
#' Coerce dint Objects to Base R Date Types
104104
#'
105-
#' All `dint` objects can be coerced to base R Date or Datetime (`POSIXct`)
105+
#' All \pkg{dint} objects can be coerced to base R Date or Datetime (`POSIXct`)
106106
#' types. The resulting date will always default to the first possible
107107
#' Date/Datetime in this period.
108108
#'
109-
#' If `lubridate` is loaded, methods for lubridate generics (such as `as_date`
110-
#' and `as_datetime`) are also made available by dint.
109+
#' If \pkg{lubridate} is loaded, methods for lubridate generics (such as
110+
#' [lubridate::month()] and [lubridate::year()]) are also made available by
111+
#' dint.
111112
#'
112113
#'
113114
#' @param x any \R object

R/date_y.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#' A Simple S3-Class for Years
22
#'
33
#' A simple data type for storing years. A `date_y` object is just an
4-
#' integer with an additional class atribute.
4+
#' integer with an additional class attribute.
55
#'
66
#' @param y year
77
#'

R/date_ym.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#' A Simple S3-Class for Year-Month Dates
44
#'
55
#' A simple data type for storing year-month dates in a human readable integer
6-
#' format, e.g.: December 2012 is stored as 201212. Supports simple arithmethics
6+
#' format, e.g.: December 2012 is stored as 201212. Supports simple arithmetics
77
#' (`+` and `-`) as well formatting.
88
#'
99
#' @param y year
@@ -267,7 +267,7 @@ seq.date_ym <- function(x, y, ...){
267267

268268
# shortcuts ---------------------------------------------------------------
269269

270-
#' Direclty Create Formatted Year-Month Strings
270+
#' Directly Create Formatted Year-Month Strings
271271
#'
272272
#' @param x,m Two integer (vectors). `m` is optional and the interpretation of
273273
#' `x` will depend on whether `m` is supplied or not:

R/date_yq.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#' A Simple S3-Class for Year-Quarter Dates
44
#'
55
#' A simple data type for storing year-quarter dates in a human readable integer
6-
#' format, e.g.: 3.Qurter of 2012 is stored as 20123. Supports simple arithmethics
6+
#' format, e.g.: 3.Quarter of 2012 is stored as 20123. Supports simple arithmetics
77
#' (`+` and `-`) as well formatting.
88
#'
99
#' @param y year
@@ -200,12 +200,12 @@ format_date_yq_shorter <- function(x){
200200

201201
#' Date Arithmetic Operations
202202
#'
203-
#' Currently only `+` and `-` are supported, all other basic arithmethic
203+
#' Currently only `+` and `-` are supported, all other basic arithmetic
204204
#' operations are disabled for date_yq objects.
205205
#'
206206
#' @param x a [`date_yq`] or [`date_ym`] object
207207
#' @param y an integer
208-
#' @param ... currently ingored.
208+
#' @param ... currently ignored
209209
#'
210210
#' @rdname date_xx_arithmetic
211211
#' @aliases date_yq_arithmetic
@@ -284,7 +284,7 @@ seq.date_yq <- function(x, y, ...){
284284

285285
# shortcuts ---------------------------------------------------------------
286286

287-
#' Direclty Create Formatted Year-Quarter Strings
287+
#' Directly Create Formatted Year-Quarter Strings
288288
#'
289289
#' @param x,q Two integer (vectors). `q` is optional and the interpretation of
290290
#' `x` will depend on whether `q` is supplied or not:

R/first_day_of_year.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#' Get First or Last Day of a Year
22
#'
33
#' `first_day_y()` is equivalent with `first_day_of_year()` and only included
4-
#' for summetry with [first_day_yq()] and [first_day_ym()].
4+
#' for symmetry with [first_day_yq()] and [first_day_ym()].
55
#'
66
#'
77
#' @inheritParams format_ym

R/get_year.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#'
33
#'
44
#' @details
5-
#' If you use lubridate in addition to dint,
5+
#' If you use \pkg{lubridate} in addition to dint,
66
#' you can also use [lubridate::year()], [lubridate::month()] and
77
#' [lubridate::quarter()] with dint objects.
88
#'

tests/testthat/test_date_yq.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ test_that("format.date_yq works as expected", {
6464
})
6565

6666

67-
test_that("as_date_yq arithmethics works", {
67+
test_that("as_date_yq arithmetics works", {
6868
#* @testing increment.date_yq
6969
tdat <- (as_date_yq(c(-11, -12, -13, -14, 1, 2, 3, 4)))
7070

0 commit comments

Comments
 (0)