Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Description: Designed to help health economic modellers when building and review
License: MIT + file LICENSE
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.2
RoxygenNote: 7.3.3
Suggests:
testthat (>= 3.0.0),
colourpicker,
Expand All @@ -30,22 +30,23 @@ Depends:
R (>= 4.1.0)
Imports:
assertthat,
ggplot2,
dplyr,
utils,
visNetwork,
covr,
htmltools,
officer,
dplyr,
flextable,
ggplot2,
httr,
htmltools,
igraph,
knitr,
methods,
officer,
rlang,
roxygen2,
rstudioapi,
shiny,
shinyjs,
rstudioapi,
roxygen2,
methods,
waiter,
igraph,
httr
utils,
visNetwork,
waiter
URL: https://dark-peak-analytics.github.io/assertHE/, https://github.com/dark-peak-analytics/assertHE
BugReports: https://github.com/dark-peak-analytics/assertHE/issues
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ importFrom(knitr,kable)
importFrom(methods,formalArgs)
importFrom(officer,body_add_par)
importFrom(officer,read_docx)
importFrom(rlang,.data)
importFrom(roxygen2,parse_file)
importFrom(rstudioapi,navigateToFile)
importFrom(stats,na.omit)
Expand Down
9 changes: 8 additions & 1 deletion R/project_visualiser.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This roxygen tag imports the .data pronoun from rlang.
# It allows us to write .data$location / .data$id inside dplyr verbs.
# It silences the common "no visible binding for global variable" NOTES
# from R CMD check / codetools when using data-masking.
#' @importFrom rlang .data
NULL

#' Visualize Project
#'
#' Visualize the dependencies between functions in a project using a network plot.
Expand Down Expand Up @@ -631,7 +638,7 @@ processNodes <- function(df_edges,
unique() |>
stats::na.omit()
) |>
dplyr::mutate(label = id)
dplyr::mutate(label = .data$id)

return(df_nodes)
}
Expand Down
9 changes: 8 additions & 1 deletion R/test_finder.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This roxygen tag imports the .data pronoun from rlang.
# It allows us to write .data$location / .data$id inside dplyr verbs.
# It silences the common "no visible binding for global variable" NOTES
# from R CMD check / codetools when using data-masking.
#' @importFrom rlang .data
NULL

#' Find all function calls in file
#'
#' Searches through a file for function calls using SYMBOL_FUNCTION_CALL
Expand Down Expand Up @@ -132,7 +139,7 @@ find_function_calls_in_folder <- function(test_folder,
# get summary dataframe
df_summary <- dplyr::bind_rows(l_foo_test_paths) |>
as.data.frame() |>
dplyr::rename(test_location = location)
dplyr::rename(test_location = .data$location)

# ensure all function inputs are included in dataframe of outputs
df_out <- merge(
Expand Down