Skip to content

Commit

Permalink
Mark old functions as defunct, major version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscpritchard committed Jul 3, 2022
1 parent eac9192 commit 9cdaf42
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 33 deletions.
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors:
given-names: Chris C
orcid: https://orcid.org/0000-0002-1143-9751
title: "PRISMA2020: R package and ShinyApp for producing PRISMA 2020 compliant flow diagrams"
version: 0.0.4
version: 1.0.0
doi: 10.5281/zenodo.4287834
date-released: 2022-07-02
license: MIT
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: PRISMA2020
Title: Make Interactive 'PRISMA' Flow Diagrams
Version: 0.0.4
Version: 1.0.0
Authors@R: c(
person(given = "Neal",
family = "Haddaway",
Expand Down
2 changes: 0 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
export(PRISMA_data)
export(PRISMA_flowdiagram)
export(PRISMA_save)
export(read_PRISMAdata)
export(sr_flow_interactive)
importFrom(DT,addRow)
importFrom(rio,import)
importFrom(shiny,column)
Expand Down
23 changes: 7 additions & 16 deletions R/PRISMA_flowdiagram.R
Original file line number Diff line number Diff line change
Expand Up @@ -1820,10 +1820,8 @@ PRISMA_save <- function( #nolint
}
}

#' Plot interactive flow diagram for systematic reviews - DEPRECATED
#' @description DEPRECATED -
#' Converts a PRISMA systematic review flow diagram
#' into an interactive HTML plot, for embedding links from each box.
#' Defunct function - replaced by "PRISMA_interactive_"
#' @description Defunct function - replaced by "PRISMA_interactive_"
#' @seealso [PRISMA_interactive_()]
#' @param plot A plot object from [PRISMA_flowdiagram()].
#' @param urls A dataframe consisting of two columns: nodes and urls. The first
Expand All @@ -1833,24 +1831,17 @@ PRISMA_save <- function( #nolint
#' [PRISMA_flowdiagram()]) specifying whether previous studies were sought.
#' @param other Logical argument (TRUE or FALSE) (supplied through
#' [PRISMA_flowdiagram()]) specifying whether other studies were sought.
#' @return An interactive flow diagram plot.
#' @export
sr_flow_interactive <- function(plot,
urls,
previous,
other) {
.Deprecated("PRISMA_interactive_")
return(PRISMA_interactive_(plot, urls, previous, other)) #nolint
.Defunct("PRISMA_interactive_")
}

#' Read in PRISMA flow diagram data - DEPRECATED
#' @description DEPRECATED -
#' read in a template CSV containing data for the flow diagram
#' Defunct function - replaced by "PRISMA_data"
#' @description Defunct function - replaced by "PRISMA_data"
#' @seealso [PRISMA_data()]
#' @param data File to read in.
#' @return A list of objects needed to plot the flow diagram
#' @export
read_PRISMAdata <- function(data){ #nolint
.Deprecated("PRISMA_data")
return(PRISMA_data(data))
}
.Defunct("PRISMA_data")
}
8 changes: 2 additions & 6 deletions man/read_PRISMAdata.Rd

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

9 changes: 2 additions & 7 deletions man/sr_flow_interactive.Rd

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

0 comments on commit 9cdaf42

Please sign in to comment.