Skip to content

Commit

Permalink
Account for CRAN feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
moodymudskipper committed Jun 6, 2023
1 parent e86a0e0 commit d0ef69f
Show file tree
Hide file tree
Showing 85 changed files with 63 additions and 15 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
^\.github$
^CRAN-SUBMISSION$
^LICENSE\.md$
^ignored$
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
doc
inst/doc
Meta
ignored
4 changes: 2 additions & 2 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 0.2.0
Date: 2023-06-04 23:33:51 UTC
SHA: 59aeabbecd4af017d2833e1bbeb2215e70002681
Date: 2023-06-05 06:55:57 UTC
SHA: e86a0e0d487cd7e3ad4b40f88435e1756b0b6bee
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Authors@R:
email = "[email protected]")
Description: Visualize as flow diagrams the logic of functions, expressions or
scripts in a static way or when running a call, visualize the dependencies between
functions or between modules in a shiny app, and more..
functions or between modules in a shiny app, and more.
License: MIT + file LICENSE
URL: https://github.com/moodymudskipper/flow, https://moodymudskipper.github.io/flow/
BugReports: https://github.com/moodymudskipper/flow/issues
Expand Down
3 changes: 2 additions & 1 deletion R/05_flow_debug.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ flow_undebug <- function(f){
#' @param ... ...
#' @keywords internal
#' @export
#' @return Fails with deprecation error
flow_debugonce <- function(...) {
stop("`flow_debugonce()` is deprecated, use `flow_debug()`")
stop("`flow_debugonce()` is defunct, use `flow_debug()`")
}

10 changes: 5 additions & 5 deletions R/09_flow_view_deps.R
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,11 @@ flow_view_deps_df <- function(target_fun_name, target_fun, trim, promote, demote
}

deps <- function(pkg) {
ip <- installed.packages()
setdiff(trimws(union(
strsplit(gsub("\\(.*?\\)", "", ip[pkg, "Imports"]), "\\s?,\\s?")[[1]],
strsplit(gsub("\\(.*?\\)", "", ip[pkg, "Depends"]), "\\s?,\\s?")[[1]]
)), c("R", NA))
desc <- read.dcf(system.file("DESCRIPTION", package = pkg))
desc <- desc[,intersect(c("Imports", "Depends"), colnames(desc))]
setdiff(trimws(unique(unlist(
strsplit(gsub("\\(.*?\\)", "", desc), "\\s?,\\s?")
))), c("R", NA))
}

get_ns_obj_df <- function(ns_nm, lines) {
Expand Down
1 change: 1 addition & 0 deletions R/11_flow_view_shiny.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#' @param pattern A regular expression used to detect ui and server functions
#' @inheritParams flow_view_deps
#' @export
#' @return A flow diagram object.
#' @examples
#' if (requireNamespace("esquisse", quietly = TRUE)) {
#' flow_view_shiny(esquisse::esquisser, show_imports = "none")
Expand Down
26 changes: 26 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
## Comments

The package was archive due to the pkgdown html thing last year. This is fixed, core functionalities are the same, some feature were added.

# Answering comments from Benjamin Altmann 2023-06-06

> A CRAN package should not be larger than 5 MB. Please reduce the size.
Size was reduced, tar.gz is 3.6 Mb big

> Please omit one full stop at the end of your DESCRIPTION:
done

> Missing Rd-tags:
> flow_debugonce.Rd: \value
> flow_view_shiny.Rd: \value
Added \value section for both

> Used ::: in documentation:
> man/flow_view_deps.Rd:
> flow_view_deps(here::i_am, hide = c(pattern = "here:::s"))
Example was changed to use `::` rather than `:::`

> You are using installed.packages() in your code.
We now gather dependencies from DESCRIPTION files rather than installed.packages()
Binary file modified docs/articles/customize_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/customize_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/customize_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/customize_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/customize_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/customize_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/customize_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/customize_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/customize_8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/customize_9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/articles/experimental-functions.html

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

Binary file modified docs/articles/flow_compare_runs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/flow_debugonce.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/flow_run_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/flow_run_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/flow_run_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/flow_view_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/flow_view_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/flow_view_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/flow_view_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/flow_view_deps_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/flow_view_deps_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/flow_view_deps_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/flow_view_deps_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/flow_view_deps_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/flow_view_deps_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/flow_view_deps_7.png
Binary file modified docs/articles/flow_view_shiny.png
Binary file modified docs/articles/flow_view_uses.png
Binary file modified docs/articles/flow_view_vars_1.png
Binary file modified docs/articles/flow_view_vars_2.png
Binary file modified docs/articles/nested_1.png
Binary file modified docs/articles/nested_2.png
Binary file modified docs/articles/nested_3.png
Binary file modified docs/articles/plantuml.png
2 changes: 1 addition & 1 deletion docs/index.html

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

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ articles:
nested-functions: nested-functions.html
reports: reports.html
simple-usage: simple-usage.html
last_built: 2023-06-04T23:30Z
last_built: 2023-06-06T11:37Z

4 changes: 2 additions & 2 deletions docs/reference/flow-package.html

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

6 changes: 6 additions & 0 deletions docs/reference/flow_debugonce.html

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

6 changes: 6 additions & 0 deletions docs/reference/flow_view_shiny.html

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

2 changes: 1 addition & 1 deletion man/flow-package.Rd

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

3 changes: 3 additions & 0 deletions man/flow_debugonce.Rd

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

3 changes: 3 additions & 0 deletions man/flow_view_shiny.Rd

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

Binary file modified vignettes/customize_1.png
Binary file modified vignettes/customize_10.png
Binary file modified vignettes/customize_2.png
Binary file modified vignettes/customize_3.png
Binary file modified vignettes/customize_4.png
Binary file modified vignettes/customize_5.png
Binary file modified vignettes/customize_6.png
Binary file modified vignettes/customize_7.png
Binary file modified vignettes/customize_8.png
Binary file modified vignettes/customize_9.png
Binary file modified vignettes/flow_compare_runs.png
Binary file modified vignettes/flow_debugonce.png
Binary file modified vignettes/flow_run_1.png
Binary file modified vignettes/flow_run_2.png
Binary file modified vignettes/flow_run_3.png
Binary file modified vignettes/flow_view_1.png
Binary file modified vignettes/flow_view_2.png
Binary file modified vignettes/flow_view_3.png
Binary file modified vignettes/flow_view_4.png
Binary file modified vignettes/flow_view_deps_1.png
Binary file modified vignettes/flow_view_deps_2.png
Binary file modified vignettes/flow_view_deps_3.png
Binary file modified vignettes/flow_view_deps_4.png
Binary file modified vignettes/flow_view_deps_5.png
Binary file modified vignettes/flow_view_deps_6.png
Binary file modified vignettes/flow_view_deps_7.png
Binary file modified vignettes/flow_view_shiny.png
Binary file modified vignettes/flow_view_uses.png
Binary file modified vignettes/flow_view_vars_1.png
Binary file modified vignettes/flow_view_vars_2.png
Binary file modified vignettes/nested_1.png
Binary file modified vignettes/nested_2.png
Binary file modified vignettes/nested_3.png
Binary file modified vignettes/plantuml.png

0 comments on commit d0ef69f

Please sign in to comment.