Skip to content

Commit

Permalink
Changes to documentation ahead of CRAN submission
Browse files Browse the repository at this point in the history
  • Loading branch information
byrongibby committed Aug 21, 2024
1 parent a851ec7 commit d651651
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: econdatar
Title: Automation of Data Tasks to and from Codera Analytics' Econometric Data Services
Version: 3.1.0
Date: 2024-04-24
Date: 2024-08-19
Authors@R: c(person(given = "Byron", family = "Botha", role = c("aut", "cre"), email = "[email protected]"),
person(given = "Sebastian", family = "Krantz", role = "ctb"))
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>.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2023, Codera Analytics
Copyright (c) 2024, Codera Analytics

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
2 changes: 2 additions & 0 deletions R/tidy_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ add_version_names <- function(x, is_release = FALSE) {
}

tidy_wide <- function(x, codelabel = FALSE, prettymeta = TRUE, ...) {
time_period <- NULL
if (is.null(names(x))) return(lapply(add_version_names(x),
tidy_wide,
codelabel,
Expand Down Expand Up @@ -77,6 +78,7 @@ extract_metadata <- function(x, meta, allmeta = FALSE, origmeta = FALSE) {
}

tidy_long <- function(x, combine = FALSE, allmeta = FALSE, origmeta = FALSE, prettymeta = TRUE, ...) {
time_period <- NULL
if (is.null(names(x))) {
res <- lapply(add_version_names(x),
tidy_long,
Expand Down
2 changes: 1 addition & 1 deletion man/econdatar-package.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ https://www.econdata.co.za
https://econdata.co.za
}
\examples{
\donttest{
\dontrun{
# library(econdatar)
# Return all data sets (useful for browsing available data)
Expand Down
2 changes: 1 addition & 1 deletion man/read_database.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ If \code{tidy = TRUE} a single \emph{data.table} is returned with columns for \c
\code{\link{write_database}}
}
\examples{
\donttest{
\dontrun{
# library(econdatar)
# Mining production and sales
Expand Down
2 changes: 1 addition & 1 deletion man/read_dataset.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ If \code{tidy = TRUE} and \code{wide = FALSE} and \code{compact = FALSE} (the de
\code{\link{read_release}}
}
\examples{
\donttest{
\dontrun{
# library(econdatar)

# Electricity Generated
Expand Down
2 changes: 1 addition & 1 deletion man/read_econdata.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ If \code{tidy = TRUE} and \code{wide = FALSE} and \code{compact = FALSE} (the de
\code{\link{read_release}}
}
\examples{
\donttest{
\dontrun{
# library(econdatar)

# Electricity Generated
Expand Down
2 changes: 1 addition & 1 deletion man/read_registry.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ If \code{tidy = FALSE}, a list detailing at a minimum the structure's agencyid,
\code{\link{write_registry}}
}
\examples{
\donttest{
\dontrun{
# library(econdatar)

# Frequency codelist
Expand Down
2 changes: 1 addition & 1 deletion man/read_release.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ If \code{tidy = FALSE}, a nested lists containing metadata and release desciptio
\code{\link{read_econdata}}
}
\examples{
\donttest{
\dontrun{
# library(econdatar)
# Bank Balance Sheet (institutional)
Expand Down
2 changes: 1 addition & 1 deletion man/write_econdata.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ No return value, called for side-effects - writes data to server.
\code{\link{write_release}}
}
\examples{
\donttest{
\dontrun{
x <- read_econdata("MINING")

tmp <- tempdir()
Expand Down
2 changes: 1 addition & 1 deletion man/write_registry.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ No return value, called for side-effects - writes data to server.
\code{\link{read_registry}}
}
\examples{
\donttest{
\dontrun{
x <- read_registry("codelist", id = "CL_FREQ")

tmp <- tempdir()
Expand Down

0 comments on commit d651651

Please sign in to comment.