Skip to content

Commit cf7953c

Browse files
committed
commit nothing
1 parent b3a912c commit cf7953c

File tree

5 files changed

+61
-23
lines changed

5 files changed

+61
-23
lines changed

man/.internal_call.1

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,30 @@
1-
.TH .INTERNAL_CALL 1 2025-Mar "" "Invoke an analysis application"
1+
.TH .INTERNAL_CALL 1 2025-Mar "internal" "@title Invoke an Analysis Application (Internal Function)"
22
.SH NAME
33
.internal_call \- .internal_call(app, context)
44
.SH SYNOPSIS
55
\fI.internal_call(app, context)\fR
6+
.SH DESCRIPTION
7+
.PP
8+
This internal function executes an analysis application after validating its dependencies. It handles application execution, error reporting, and performance profiling.
9+
.PP
610
.SH OPTIONS
711
.PP
8-
\fBapp\fB \fR\- .
12+
\fBapp\fB \fR\- . A list defining the analysis application. Must contain: - `name`: (character) Name of the application (for logging). - `call`: (function) The function to execute the application logic. - `profiler`: (list) Stores performance metrics (e.g., execution time).
13+
.PP
14+
.PP
15+
\fBcontext\fB \fR\- . A list or environment providing runtime context, such as input data paths, environment variables, or configuration settings required by the application.
16+
.PP
17+
.SH VALUE
18+
.PP
19+
Invisibly returns `NULL`. The function primarily updates `app$profiler` with execution time metrics and may modify the `context` during execution.
920
.PP
21+
.SH DETAILS
1022
.PP
11-
\fBcontext\fB \fR\- .
23+
### Key Steps: 1. ​**Dependency Check**: Validates if required context variables and files exist via `check_dependency(app, context)`. - If dependencies are met, proceeds to execute the application. - If dependencies are missing, throws an error with detailed missing resources. 2. ​**Execution**: - Logs start/end timestamps if `options(verbose = TRUE)`. - Executes `app$call` with arguments `app` and `context` using `do.call()`. 3. ​**Error Handling**: - Aggregates missing dependencies into readable error messages. - Calls `throw_err()` to terminate the workflow and report issues. 4. ​**Profiling**: Records total execution time in `app$profiler$time` using `time_span()` for human-readable formatting.
1224
.PP
1325
.SH FILES
1426
.PP
15-
SMRUCC/R#.declare_function..internal_call at runner.R:line 3
27+
SMRUCC/R#.declare_function..internal_call at runner.R:line 57
1628
.PP
1729
.SH COPYRIGHT
1830
Copyright © xieguigang, MIT Licensed 2025

man/__runImpl.1

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,32 @@
1-
.TH __RUNIMPL 1 2025-Mar "" "An internal function for start the workflow"
1+
.TH __RUNIMPL 1 2025-Mar "internal" "Internal Workflow Execution Engine"
22
.SH NAME
33
__runImpl \- __runImpl(context,
44
<i>disables</i> = 'list'())
55
.SH SYNOPSIS
66
\fI__runImpl(context,
77
<i>disables</i> = 'list'())\fR
8+
.SH DESCRIPTION
9+
.PP
10+
An internal function that drives the execution of a modular workflow. It sequentially processes analysis modules according to the pipeline configuration while respecting disablement rules.
11+
.PP
812
.SH OPTIONS
913
.PP
10-
\fBcontext\fB \fR\- .
14+
\fBcontext\fB \fR\- . A workflow context object containing: \itemize{ \item{pipeline - character vector of module execution order} \item{workflow - list of module definitions} }
15+
.PP
16+
.PP
17+
\fBdisables\fB \fR\- 'list'(). A named list specifying module disablement status. Format: `list(module_name = TRUE/FALSE)`. Modules with TRUE will be skipped.
18+
.PP
19+
.SH VALUE
20+
.PP
21+
Invisibly returns NULL. Modifies the workflow context object in-place through module executions.
1122
.PP
23+
.SH DETAILS
1224
.PP
13-
\fBdisables\fB \fR\- 'list'().
25+
This function: \enumerate{ \item Retrieves module execution order from `context$pipeline` \item Checks disablement status through two mechanisms: \itemize{ \item Explicit disablement via `disables` parameter \item Module's own `disable` property (set by upstream modules) } \item Executes non-disabled modules using `.internal_call()` \item Provides verbose logging when `options(verbose=TRUE)` } The workflow context is modified in-place by module execution.
1426
.PP
1527
.SH FILES
1628
.PP
17-
SMRUCC/R#.declare_function.__runImpl at workflowRender.R:line 37
29+
SMRUCC/R#.declare_function.__runImpl at workflowRender.R:line 76
1830
.PP
1931
.SH COPYRIGHT
2032
Copyright © xieguigang, MIT Licensed 2025

man/index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

vignettes/R/docs/.internal_call.html

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33

44
<head>
5-
<title>Invoke an analysis application</title>
5+
<title>@title Invoke an Analysis Application (Internal Function)</title>
66
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
88
<link rel="stylesheet" type="text/css" href="https://rdocumentation.rsharp.net/assets/page.css">
@@ -18,11 +18,11 @@
1818
</tr>
1919
</table>
2020

21-
<h2>Invoke an analysis application</h2>
21+
<h2>@title Invoke an Analysis Application (Internal Function)</h2>
2222

2323
<h3>Description</h3>
2424

25-
25+
<p>This internal function executes an analysis application after validating its dependencies. It handles application execution, error reporting, and performance profiling.</p>
2626

2727
<h3>Usage</h3>
2828

@@ -33,21 +33,28 @@ <h3>Usage</h3>
3333
<h3>Arguments</h3>
3434

3535
<table>
36-
36+
37+
<dt>app</dt>
38+
<dd><p><p>A list defining the analysis application. Must contain: - `name`: (character) Name of the application (for logging). - `call`: (function) The function to execute the application logic. - `profiler`: (list) Stores performance metrics (e.g., execution time).</p></p></dd>
39+
40+
41+
<dt>context</dt>
42+
<dd><p><p>A list or environment providing runtime context, such as input data paths, environment variables, or configuration settings required by the application.</p></p></dd>
43+
3744
</table>
3845

3946

40-
<h3 style="display: none;">Details</h3>
47+
<h3 style="display: block;">Details</h3>
4148

42-
49+
<h3>Key Steps: 1. ​<strong>Dependency Check<em></em>: Validates if required context variables and files exist via `check<em>dependency(app, context)`. - If dependencies are met, proceeds to execute the application. - If dependencies are missing, throws an error with detailed missing resources. 2. ​**Execution**: - Logs start/end timestamps if `options(verbose = TRUE)`. - Executes `app$call` with arguments `app` and `context` using `do.call()`. 3. ​**Error Handling**: - Aggregates missing dependencies into readable error messages. - Calls `throw</em>err()` to terminate the workflow and report issues. 4. ​<em></em>Profiling</strong>: Records total execution time in `app$profiler$time` using `time_span()` for human-readable formatting.</h3>
4350

4451
<h3 style="display: block">Authors</h3>
4552

4653
xieguigang
4754

4855
<h3>Value</h3>
4956

50-
This function has no value returns.
57+
<p>Invisibly returns `NULL`. The function primarily updates `app$profiler` with execution time metrics and may modify the `context` during execution.</p>
5158

5259
<h3 style="display: none;">Examples</h3>
5360

vignettes/R/docs/__runImpl.html

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33

44
<head>
5-
<title>An internal function for start the workflow</title>
5+
<title>Internal Workflow Execution Engine</title>
66
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
88
<link rel="stylesheet" type="text/css" href="https://rdocumentation.rsharp.net/assets/page.css">
@@ -18,11 +18,11 @@
1818
</tr>
1919
</table>
2020

21-
<h2>An internal function for start the workflow</h2>
21+
<h2>Internal Workflow Execution Engine</h2>
2222

2323
<h3>Description</h3>
2424

25-
25+
<p>An internal function that drives the execution of a modular workflow. It sequentially processes analysis modules according to the pipeline configuration while respecting disablement rules.</p>
2626

2727
<h3>Usage</h3>
2828

@@ -34,21 +34,28 @@ <h3>Usage</h3>
3434
<h3>Arguments</h3>
3535

3636
<table>
37-
37+
38+
<dt>context</dt>
39+
<dd><p><p>A workflow context object containing: \itemize{ \item{pipeline - character vector of module execution order} \item{workflow - list of module definitions} }</p></p></dd>
40+
41+
42+
<dt>disables</dt>
43+
<dd><p><p>A named list specifying module disablement status. Format: `list(module_name = TRUE/FALSE)`. Modules with TRUE will be skipped.</p></p></dd>
44+
3845
</table>
3946

4047

41-
<h3 style="display: none;">Details</h3>
48+
<h3 style="display: block;">Details</h3>
4249

43-
50+
<p>This function: \enumerate{ \item Retrieves module execution order from `context$pipeline` \item Checks disablement status through two mechanisms: \itemize{ \item Explicit disablement via `disables` parameter \item Module's own `disable` property (set by upstream modules) } \item Executes non-disabled modules using `.internal_call()` \item Provides verbose logging when `options(verbose=TRUE)` } The workflow context is modified in-place by module execution.</p>
4451

4552
<h3 style="display: block">Authors</h3>
4653

4754
xieguigang
4855

4956
<h3>Value</h3>
5057

51-
This function has no value returns.
58+
<p>Invisibly returns NULL. Modifies the workflow context object in-place through module executions.</p>
5259

5360
<h3 style="display: none;">Examples</h3>
5461

0 commit comments

Comments
 (0)