Skip to content

Commit

Permalink
Merge pull request #50 from TanguyBarthelemy/develop
Browse files Browse the repository at this point in the history
new version .9000
  • Loading branch information
TanguyBarthelemy authored Jul 11, 2024
2 parents f5f08ea + b5b4de2 commit 1c0ec63
Show file tree
Hide file tree
Showing 29 changed files with 173 additions and 136 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ rsconnect/

# produced README.html
README.html
/doc/
/Meta/
17 changes: 9 additions & 8 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: rjd3revisions
Type: Package
Title: Revision analysis with 'JDemetra+ 3.x'
Version: 1.3.2
Version: 1.3.2.9000
Authors@R: c(
person(given = "Corentin", family = "Lemasson",
email = "[email protected]", role = c("aut", "cre")),
Expand All @@ -12,6 +12,10 @@ Description: Revision analysis tool part of 'JDemetra+ 3.x' (<https://github.com
with the results. The various tests enable the users to detect
potential bias and sources of inefficiency in preliminary
estimates.
License: EUPL | file LICENSE
URL: https://github.com/rjdverse/rjd3revisions, https://rjdverse.github.io/rjd3revisions/
BugReports: https://github.com/rjdverse/rjd3revisions/issues
SystemRequirements: Java (>= 17)
Depends:
R (>= 4.1.0)
Imports:
Expand All @@ -31,10 +35,7 @@ Suggests:
readxl,
formattable
Remotes:
github::rjdverse/rjd3toolkit@*release
SystemRequirements: Java (>= 17)
License: EUPL | file LICENSE
Encoding: UTF-8
github::rjdverse/rjd3toolkit
Collate:
'rjd3revisions-package.R'
'check.R'
Expand All @@ -46,8 +47,8 @@ Collate:
'tests.R'
'vintages.R'
'zzz.R'
RoxygenNote: 7.3.2
URL: https://github.com/rjdverse/rjd3revisions, https://rjdverse.github.io/rjd3revisions/
BugReports: https://github.com/rjdverse/rjd3revisions/issues
Config/testthat/edition: 3
Encoding: UTF-8
RoxygenNote: 7.3.2
Roxygen: list(markdown = TRUE)
VignetteBuilder: knitr
25 changes: 17 additions & 8 deletions R/report.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,27 @@
#' @examples
#'
#' ## Simulated data
#'
#' long_format <- rjd3revisions:::simulate_long(
#' start_period = as.Date("2020-01-01"),
#' n_period = 24,
#' n_revision = 6,
#' periodicity = 12L
#' )
#' period_range <- seq(as.Date('2011-01-01'),as.Date('2020-10-01'),by='quarter')
#' qtr <- (as.numeric(substr(period_range,6,7))+2)/3
#' time_period <- rep(paste0(format(period_range, "%Y"), "Q", qtr),5)
#' np <- length(period_range)
#' rev_date <- c(rep("2021-06-30",np), rep("2021-12-31",np), rep("2022-06-30",np),
#' rep("2022-12-31",np), rep("2023-06-30",np))
#' set.seed(1)
#' xt <- cumsum(sample(rnorm(1000,0,1), np, TRUE))
#' rev <- rnorm(np*4,0,.1)
#' obs_values <- xt
#' for(i in 1:4) {
#' xt <- xt+rev[(1+(i-1)*np):(i*np)]
#' obs_values <- c(obs_values,xt)
#' }
#' df <- data.frame(rev_date, time_period, obs_values)
#'
#' ## Make analysis and generate the report
#'
#' vintages <- create_vintages(long_format, periodicity = 12L)
#' vintages <- create_vintages(df, periodicity = 4L, type = "long")
#' rslt <- revision_analysis(vintages, view = "diagonal")
#'
#' \dontrun{
#' render_report(
#' rslt,
Expand Down
2 changes: 1 addition & 1 deletion man/View.rjd3rev_vintages.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/bias.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 18 additions & 16 deletions man/check-date.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/check_horizontal.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/check_vertical.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/cointegration.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 15 additions & 17 deletions man/create_vintages.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 11 additions & 9 deletions man/create_vintages_from_csv.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 10 additions & 8 deletions man/create_vintages_from_xlsx.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/descriptive_statistics.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/efficiencyModel1.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/efficiencyModel2.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1c0ec63

Please sign in to comment.