Skip to content

Commit 2529cbd

Browse files
authored
Merge pull request #84 from Genentech/dev
0.5.0 checked refactor
2 parents 3615af8 + 573e515 commit 2529cbd

145 files changed

Lines changed: 4992 additions & 2712 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@
1111
^codecov\.yml$
1212
^README\.html$
1313
^README_cache$
14+
^\.lintr

.github/workflows/R-CMD-check.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ jobs:
2424
- {os: windows-latest, r: 'release'}
2525
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
2626
- {os: ubuntu-latest, r: 'release'}
27-
- {os: ubuntu-latest, r: 'oldrel-1'}
2827

2928
env:
3029
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
3130
R_KEEP_PKG_SOURCE: yes
31+
_R_CHECK_CRAN_INCOMING_: false
32+
_R_CHECK_FORCE_SUGGESTS_: false
3233
NOT_CRAN: "true"
3334

3435
steps:

.lintr

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
linters:
2+
linters_with_defaults(
3+
defaults = default_linters,
4+
object_length_linter = NULL,
5+
object_name_linter = NULL,
6+
cyclocomp_linter = NULL
7+
)
8+
exclusions:
9+
list(
10+
"tests/testthat/testing_pkgs",
11+
"tests/testthat/fixtures",
12+
"inst/"
13+
)
14+

DESCRIPTION

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: checked
22
Title: Systematically Run R CMD Checks
3-
Version: 0.2.9
3+
Version: 0.5.1
44
Authors@R:
55
c(
66
person(
@@ -11,8 +11,8 @@ Authors@R:
1111
comment = c(ORCID = "0000-0002-3120-1601")
1212
),
1313
person(
14-
"Doug", "Kelkhoff", ,
15-
"doug.kelkhoff@gmail.com",
14+
"Doug", "Kelkhoff",
15+
email = "doug.kelkhoff@gmail.com",
1616
role = c("aut"),
1717
comment = c(ORCID = "0009-0003-7845-4061")
1818
),
@@ -31,20 +31,27 @@ URL:
3131
BugReports: https://github.com/Genentech/checked/issues
3232
License: MIT + file LICENSE
3333
Encoding: UTF-8
34+
Depends:
35+
R (>= 3.6.2)
3436
Imports:
3537
callr,
3638
cli,
39+
glue,
3740
igraph,
3841
jsonlite,
42+
memoise,
3943
options,
4044
R6,
4145
rcmdcheck,
46+
rlang,
4247
utils (>= 3.6.2),
4348
tools
4449
Roxygen: list(markdown = TRUE)
45-
RoxygenNote: 7.3.2
46-
Suggests:
50+
RoxygenNote: 7.3.3
51+
Suggests:
52+
remotes,
4753
testthat (>= 3.0.0),
54+
visNetwork,
4855
withr
4956
Config/Needs/website:
5057
r-lib/asciicast

NAMESPACE

Lines changed: 131 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,165 @@
11
# Generated by roxygen2: do not edit by hand
22

3-
S3method("[",checked_results)
4-
S3method(check_path,package_spec)
5-
S3method(check_path,package_spec_archive_source)
6-
S3method(check_path,package_spec_source)
3+
S3method("$",enum)
4+
S3method(Ops,enum)
5+
S3method(as_vertex_name,default)
6+
S3method(as_vertex_name,local_check_meta_task)
7+
S3method(as_vertex_name,task)
8+
S3method(check_path,pkg_origin)
9+
S3method(check_path,pkg_origin_archive)
10+
S3method(check_path,pkg_origin_local)
11+
S3method(check_path,pkg_origin_remote)
12+
S3method(check_path,pkg_origin_repo)
713
S3method(count,default)
814
S3method(count,issues)
915
S3method(count,potential_issues)
10-
S3method(format,list_of_task_spec)
11-
S3method(format,task_spec)
16+
S3method(format,lib_path)
17+
S3method(format,local_check_meta_task)
18+
S3method(format,pkg_origin)
19+
S3method(format,pkg_origin_base)
20+
S3method(format,pkg_origin_local)
21+
S3method(format,pkg_origin_remote)
22+
S3method(format,pkg_origin_source)
23+
S3method(format,reporter_cell)
24+
S3method(format,reporter_line)
25+
S3method(format,task)
1226
S3method(format_status_line_ansi,check_process)
1327
S3method(format_status_line_ansi,default)
14-
S3method(get_package_spec_dependencies,default)
15-
S3method(get_package_spec_dependencies,package_spec)
16-
S3method(get_package_spec_dependencies,package_spec_archive_source)
17-
S3method(get_package_spec_dependencies,package_spec_source)
18-
S3method(install_parameters,package_spec)
19-
S3method(install_parameters,package_spec_archive_source)
20-
S3method(install_parameters,package_spec_source)
21-
S3method(print,check_design)
28+
S3method(format_task_name,check_task)
29+
S3method(format_task_name,default)
30+
S3method(format_task_name,install_task)
31+
S3method(format_task_name,rev_dep_check_meta_task)
32+
S3method(format_task_name,rev_dep_dep_meta_task)
33+
S3method(format_task_name,task)
34+
S3method(format_task_type,local_check_meta_task)
35+
S3method(format_task_type,rev_dep_check_meta_task)
36+
S3method(format_task_type,rev_dep_dep_meta_task)
37+
S3method(format_task_type,task)
38+
S3method(get_remote_tasks,default)
39+
S3method(get_remote_tasks,pkg_origin_local)
40+
S3method(get_remote_tasks,pkg_origin_remote)
41+
S3method(get_remote_tasks,task)
42+
S3method(install_params,pkg_origin)
43+
S3method(install_params,pkg_origin_archive)
44+
S3method(install_params,pkg_origin_base)
45+
S3method(install_params,pkg_origin_local)
46+
S3method(install_params,pkg_origin_remote)
47+
S3method(install_params,pkg_origin_repo)
48+
S3method(install_params,pkg_origin_unknown)
49+
S3method(is_type,default)
50+
S3method(is_type,list)
51+
S3method(is_type,process)
52+
S3method(is_type,task)
53+
S3method(lib,"NULL")
54+
S3method(lib,character)
55+
S3method(lib,check_task)
56+
S3method(lib,install_task)
57+
S3method(lib,lib_path_default)
58+
S3method(lib,lib_path_isolated)
59+
S3method(lib,task)
60+
S3method(lib_path,default)
61+
S3method(lib_path,pkg_origin_local)
62+
S3method(lib_path,pkg_origin_remote)
63+
S3method(lib_path,pkg_origin_repo)
64+
S3method(package,"NULL")
65+
S3method(package,default)
66+
S3method(package,pkg_origin)
67+
S3method(package,task)
68+
S3method(package_install_type,pkg_origin)
69+
S3method(package_install_type,pkg_origin_local)
70+
S3method(pkg_deps,default)
71+
S3method(pkg_deps,pkg_origin)
72+
S3method(pkg_deps,pkg_origin_archive)
73+
S3method(pkg_deps,pkg_origin_local)
74+
S3method(pkg_deps,pkg_origin_remote)
75+
S3method(plot,task_graph)
2276
S3method(print,checked_results)
23-
S3method(print,checked_results_check_task_spec)
24-
S3method(print,checked_results_revdep_check_task_spec)
77+
S3method(print,checker)
2578
S3method(print,issues)
79+
S3method(print,local_check_results)
2680
S3method(print,potential_issues)
27-
S3method(print,rcmdcheck_diff)
28-
S3method(print,task_spec)
81+
S3method(print,rcmdcheck_check_results)
82+
S3method(print,rcmdcheck_results)
83+
S3method(print,rcmdcheck_rev_dep_results)
84+
S3method(print,rev_dep_dep_results)
85+
S3method(print,task)
86+
S3method(remotes_graph,check_task)
87+
S3method(remotes_graph,igraph.vs)
88+
S3method(remotes_graph,install_task)
89+
S3method(remotes_graph,integer)
90+
S3method(remotes_graph,task)
91+
S3method(remotes_graph,task_graph)
2992
S3method(report_finalize,"NULL")
3093
S3method(report_finalize,reporter_ansi_tty)
3194
S3method(report_finalize,reporter_basic_tty)
32-
S3method(report_initialize,"NULL")
33-
S3method(report_initialize,reporter_ansi_tty)
34-
S3method(report_initialize,reporter_basic_tty)
95+
S3method(report_sleep,"NULL")
3596
S3method(report_sleep,default)
3697
S3method(report_sleep,reporter_ansi_tty)
98+
S3method(report_sleep,reporter_basic_tty)
99+
S3method(report_start_checks,"NULL")
100+
S3method(report_start_checks,reporter_ansi_tty)
101+
S3method(report_start_setup,"NULL")
102+
S3method(report_start_setup,reporter_ansi_tty)
103+
S3method(report_start_setup,reporter_basic_tty)
37104
S3method(report_status,"NULL")
38105
S3method(report_status,reporter_ansi_tty)
39106
S3method(report_status,reporter_basic_tty)
40-
S3method(results,check_design)
41-
S3method(results,check_task_spec)
42-
S3method(results,list_check_task_spec)
43-
S3method(results,list_revdep_check_task_spec)
44-
S3method(results,revdep_check_task_spec)
107+
S3method(report_step,"NULL")
108+
S3method(report_step,reporter_ansi_tty)
109+
S3method(report_step,reporter_basic_tty)
110+
S3method(report_task,reporter_ansi_tty)
111+
S3method(report_task_ansi_tty,check_task)
112+
S3method(report_task_ansi_tty,default)
113+
S3method(report_task_ansi_tty,rev_dep_check_meta_task)
114+
S3method(results,checker)
115+
S3method(results,igraph.vs)
116+
S3method(results,integer)
117+
S3method(results,local_check_meta_task)
118+
S3method(results,rev_dep_check_meta_task)
119+
S3method(results,rev_dep_dep_meta_task)
120+
S3method(results_to_df,checked_results)
121+
S3method(results_to_df,default)
45122
S3method(run,character)
46-
S3method(run,check_design)
47-
S3method(start_task,check_task_spec)
48-
S3method(start_task,custom_install_task_spec)
49-
S3method(start_task,install_task_spec)
50-
S3method(summary,check_design)
51-
S3method(summary,checked_results)
52-
S3method(summary,checked_results_check_task_spec)
53-
S3method(summary,checked_results_revdep_check_task_spec)
54-
export(check_design)
55-
export(check_dev_rev_deps)
56-
export(check_dir)
123+
S3method(run,checker)
124+
S3method(start_task,check_task)
125+
S3method(start_task,igraph.vs)
126+
S3method(start_task,install_task)
127+
S3method(task_graph,task)
128+
S3method(task_graph,task_graph)
129+
export(STATUS)
57130
export(check_pkgs)
58131
export(check_rev_deps)
59-
export(check_task_spec)
60-
export(custom_install_task_spec)
61-
export(install_task_spec)
62-
export(new_check_design)
63-
export(new_rev_dep_check_design)
64-
export(package_spec)
65-
export(package_spec_archive_source)
66-
export(package_spec_source)
132+
export(check_task)
133+
export(checker)
134+
export(install_task)
135+
export(meta_task)
136+
export(new_checker)
137+
export(new_rev_dep_checker)
138+
export(pkg_origin)
139+
export(pkg_origin_archive)
140+
export(pkg_origin_base)
141+
export(pkg_origin_is_base)
142+
export(pkg_origin_local)
143+
export(pkg_origin_remote)
144+
export(pkg_origin_repo)
145+
export(pkg_origin_unknown)
146+
export(plan_local_checks)
147+
export(plan_rev_dep_checks)
67148
export(reporter_ansi_tty)
149+
export(reporter_ansi_tty2)
68150
export(reporter_basic_tty)
69151
export(reporter_default)
70152
export(results)
71-
export(results_to_file)
72-
export(rev_dep_check_tasks_df)
73-
export(revdep_check_task_spec)
153+
export(results_to_df)
74154
export(run)
75-
export(source_check_tasks_df)
76-
export(task_spec)
155+
export(task)
77156
import(cli)
78157
import(options)
79158
importFrom(R6,R6Class)
80159
importFrom(callr,r_process)
81160
importFrom(cli,make_spinner)
82161
importFrom(igraph,"E<-")
83162
importFrom(igraph,"V<-")
84-
importFrom(igraph,.env)
85163
importFrom(igraph,E)
86164
importFrom(igraph,V)
87165
importFrom(igraph,incident_edges)
@@ -91,6 +169,8 @@ importFrom(igraph,subgraph.edges)
91169
importFrom(igraph,tail_of)
92170
importFrom(igraph,topo_sort)
93171
importFrom(igraph,vertex_attr)
172+
importFrom(memoise,memoise)
94173
importFrom(rcmdcheck,rcmdcheck_process)
174+
importFrom(rlang,hash)
95175
importFrom(utils,install.packages)
96176
importFrom(utils,packageName)

NEWS.md

Lines changed: 9 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,16 @@
1-
# checked (0.2.9)
1+
# checked 0.5.1
22

3-
* Add `igraph_subgraph_from_edges` wrapper to used work around deprecation
4-
messages and alternate between `igraph::subgraph.edges` and
5-
`igraph::subgraph_from_edges` depending on the `igraph` version.
6-
7-
* Address CRAN results issues
8-
9-
* In `install_packages_process` use `withCallingHandlers` instead
10-
of the `tryCatch` to prevent accidental interruptions if `install.packages()`
11-
triggers a benign warning.
3+
* Export STATUS vector to make external statuses analysis easier.
124

13-
# checked 0.2.8
5+
* Allow obtaining partial results for uncompleted checks.
146

15-
* Unify notes, warnings and errors are internally stored when generating
16-
results (R4.5 compatibility)
17-
18-
# checked 0.2.7
19-
20-
* Fix a bug where wrong lib.loc was used to derive whether a package has already
21-
been satisfied.
22-
23-
# checked 0.2.6
7+
* Export `results_to_df()` and make it a generic.
248

25-
* Save minimal version required by each edge and use them to properly identify
26-
whether dependecy is satisfied when calling `task_graph_update_done`
9+
# checked 0.5.0
2710

28-
# checked 0.2.5
11+
* Entire package refactor
2912

30-
* Refine reverse suggested dependecy strategy.
31-
32-
# checked 0.2.4
13+
# checked 0.2.3
3314

3415
* Fix check processes hanging forever in some system configurations.
3516

@@ -46,16 +27,12 @@
4627

4728
* Add tests for the reverse dependency check use case.
4829

49-
* Make `install_packages_process` capture session's `available_packages_filters`
30+
* Make `install_process` capture session's `available_packages_filters`
5031
and reuse them when installing packages to ensure consistency with the main
5132
session filtering.
5233

5334
* Prettify output by stripping excessive new lines.
5435

55-
* `checked` now depends on `options`
56-
57-
* Expose `...` allowing customization of check subprocesses when creating checks df.
58-
5936
* Force garbage collection before scheduling task, to make sure any already
6037
finished processes are removed from the memory.
6138

@@ -110,4 +87,4 @@
11087

11188
# checked 0.1.0
11289

113-
* Package released to CRAN
90+
* Package released to CRAN

0 commit comments

Comments
 (0)