Skip to content

Commit d651651

Browse files
committed
Changes to documentation ahead of CRAN submission
1 parent a851ec7 commit d651651

11 files changed

+12
-10
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: econdatar
22
Title: Automation of Data Tasks to and from Codera Analytics' Econometric Data Services
33
Version: 3.1.0
4-
Date: 2024-04-24
4+
Date: 2024-08-19
55
Authors@R: c(person(given = "Byron", family = "Botha", role = c("aut", "cre"), email = "econdata@codera.co.za"),
66
person(given = "Sebastian", family = "Krantz", role = "ctb"))
77
Description: Automation of data tasks to and from <https://codera.co.za> econometric data services. Using this package users can download data from <https://www.econdata.co.za> directly into R (in tidy format) after signing up for a free account. <https://www.econdata.co.za> hosts a comprehensive database of South African macroeconomic data. For support and tutorials please see <https://econdata.co.za>.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2023, Codera Analytics
1+
Copyright (c) 2024, Codera Analytics
22

33
Permission is hereby granted, free of charge, to any person obtaining
44
a copy of this software and associated documentation files (the

R/tidy_data.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ add_version_names <- function(x, is_release = FALSE) {
3434
}
3535

3636
tidy_wide <- function(x, codelabel = FALSE, prettymeta = TRUE, ...) {
37+
time_period <- NULL
3738
if (is.null(names(x))) return(lapply(add_version_names(x),
3839
tidy_wide,
3940
codelabel,
@@ -77,6 +78,7 @@ extract_metadata <- function(x, meta, allmeta = FALSE, origmeta = FALSE) {
7778
}
7879

7980
tidy_long <- function(x, combine = FALSE, allmeta = FALSE, origmeta = FALSE, prettymeta = TRUE, ...) {
81+
time_period <- NULL
8082
if (is.null(names(x))) {
8183
res <- lapply(add_version_names(x),
8284
tidy_long,

man/econdatar-package.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ https://www.econdata.co.za
2828
https://econdata.co.za
2929
}
3030
\examples{
31-
\donttest{
31+
\dontrun{
3232
# library(econdatar)
3333
3434
# Return all data sets (useful for browsing available data)

man/read_database.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ If \code{tidy = TRUE} a single \emph{data.table} is returned with columns for \c
3838
\code{\link{write_database}}
3939
}
4040
\examples{
41-
\donttest{
41+
\dontrun{
4242
# library(econdatar)
4343
4444
# Mining production and sales

man/read_dataset.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ If \code{tidy = TRUE} and \code{wide = FALSE} and \code{compact = FALSE} (the de
6060
\code{\link{read_release}}
6161
}
6262
\examples{
63-
\donttest{
63+
\dontrun{
6464
# library(econdatar)
6565

6666
# Electricity Generated

man/read_econdata.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ If \code{tidy = TRUE} and \code{wide = FALSE} and \code{compact = FALSE} (the de
5959
\code{\link{read_release}}
6060
}
6161
\examples{
62-
\donttest{
62+
\dontrun{
6363
# library(econdatar)
6464

6565
# Electricity Generated

man/read_registry.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ If \code{tidy = FALSE}, a list detailing at a minimum the structure's agencyid,
3737
\code{\link{write_registry}}
3838
}
3939
\examples{
40-
\donttest{
40+
\dontrun{
4141
# library(econdatar)
4242

4343
# Frequency codelist

man/read_release.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ If \code{tidy = FALSE}, a nested lists containing metadata and release desciptio
4141
\code{\link{read_econdata}}
4242
}
4343
\examples{
44-
\donttest{
44+
\dontrun{
4545
# library(econdatar)
4646
4747
# Bank Balance Sheet (institutional)

man/write_econdata.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ No return value, called for side-effects - writes data to server.
3434
\code{\link{write_release}}
3535
}
3636
\examples{
37-
\donttest{
37+
\dontrun{
3838
x <- read_econdata("MINING")
3939

4040
tmp <- tempdir()

man/write_registry.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ No return value, called for side-effects - writes data to server.
3232
\code{\link{read_registry}}
3333
}
3434
\examples{
35-
\donttest{
35+
\dontrun{
3636
x <- read_registry("codelist", id = "CL_FREQ")
3737

3838
tmp <- tempdir()

0 commit comments

Comments
 (0)