Skip to content

Commit 434cf17

Browse files
committed
run package document msbuild
1 parent e59c3d2 commit 434cf17

Some content is hidden

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

65 files changed

+598
-117
lines changed

man/.get_context.1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
<i>ssid</i> = <span style='color: blue !important;'>NULL</span>)\fR
88
.SH OPTIONS
99
.PP
10-
\fBssid\fB \fR\- NULL.
10+
\fBssid\fB \fR\- NULL. the session id for multiple user environment, default NULL means global user environment
1111
.PP
1212
.SH VALUE
1313
.PP
14-
the context object which is generated via the ``init_context`` function.
14+
the context object which is generated via the
15+
``init_context`` function.
1516
.PP
1617
.SH FILES
1718
.PP

man/.internal_call.1

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,59 @@
55
\fI.internal_call(app, context)\fR
66
.SH DESCRIPTION
77
.PP
8-
This internal function executes an analysis application after validating its dependencies. It handles application execution, error reporting, and performance profiling.
8+
9+
10+
This internal function executes an analysis application after validating its dependencies.
11+
It handles application execution, error reporting, and performance profiling.
912
.PP
1013
.SH OPTIONS
1114
.PP
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).
15+
\fBapp\fB \fR\- . A list defining the analysis application. Must contain:
16+
- `name`: (character) Name of the application (for logging).
17+
- `call`: (function) The function to execute the application logic.
18+
- `profiler`: (list) Stores performance metrics (e.g., execution time).
1319
.PP
1420
.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.
21+
\fBcontext\fB \fR\- . A list or environment providing runtime context, such as input data paths,
22+
environment variables, or configuration settings required by the application.
1623
.PP
1724
.SH VALUE
1825
.PP
19-
Invisibly returns `NULL`. The function primarily updates `app$profiler` with execution time metrics and may modify the `context` during execution.
26+
Invisibly returns `NULL`. The function primarily updates `app$profiler` with execution
27+
time metrics and may modify the `context` during execution.
2028
.PP
2129
.SH DETAILS
2230
.PP
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.
31+
### Key Steps:
32+
1. ​**Dependency Check**:
33+
Validates if required context variables and files exist via `check_dependency(app, context)`.
34+
- If dependencies are met, proceeds to execute the application.
35+
- If dependencies are missing, throws an error with detailed missing resources.
36+
2. ​**Execution**:
37+
- Logs start/end timestamps if `options(verbose = TRUE)`.
38+
- Executes `app$call` with arguments `app` and `context` using `do.call()`.
39+
3. ​**Error Handling**:
40+
- Aggregates missing dependencies into readable error messages.
41+
- Calls `throw_err()` to terminate the workflow and report issues.
42+
4. ​**Profiling**:
43+
Records total execution time in `app$profiler$time` using `time_span()` for human-readable formatting.
2444
.PP
2545
.SH EXAMPLES
2646
.PP
27-
\dontrun{ # Define a sample application app <- list( name = "demo_analysis", call = function(argv) { print(paste("Running:", argv$app$name)) }, profiler = list() ) # Execute with context .internal_call(app, context = list()) }
47+
#\dontrun{
48+
49+
# Define a sample application
50+
app <- list(
51+
name = "demo_analysis",
52+
call = function(argv) {
53+
print(paste("Running:", argv$app$name))
54+
},
55+
profiler = list()
56+
)
57+
# Execute with context
58+
.internal_call(app, context = list())
59+
60+
#}
2861
.PP
2962
.SH FILES
3063
.PP

man/__build_app.1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ __build_app \- __build_app(f)
55
\fI__build_app(f)\fR
66
.SH OPTIONS
77
.PP
8-
\fBf\fB \fR\- . the target function f which tagged the required attribute data inside: app, desc, context_env, workfiles
8+
\fBf\fB \fR\- . the target function f which tagged the required
9+
attribute data inside: app, desc, context_env, workfiles
10+
.PP
11+
.SH DETAILS
12+
.PP
13+
Build a new workflow app module object based on the
14+
custom attribute values that tagged on the target function
915
.PP
1016
.SH FILES
1117
.PP

man/__runImpl.1

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,45 @@ __runImpl \- __runImpl(context,
55
.SH SYNOPSIS
66
\fI__runImpl(context,
77
<i>disables</i> = 'list'())\fR
8+
.SH DESCRIPTION
9+
.PP
10+
11+
12+
An internal function that drives the execution of a modular workflow.
13+
It sequentially processes analysis modules according to the pipeline
14+
configuration while respecting disablement rules.
15+
.PP
816
.SH OPTIONS
917
.PP
10-
\fBcontext\fB \fR\- . A workflow context object containing: \itemize{ \item{pipeline - character vector of module execution order} \item{workflow - list of module definitions} }
18+
\fBcontext\fB \fR\- . A workflow context object containing:
19+
\itemize{
20+
\item{pipeline - character vector of module execution order}
21+
\item{workflow - list of module definitions}
22+
}
1123
.PP
1224
.PP
13-
\fBdisables\fB \fR\- 'list'(). A named list specifying module disablement status. Format: `list(module_name = TRUE/FALSE)`. Modules with TRUE will be skipped.
25+
\fBdisables\fB \fR\- 'list'(). A named list specifying module disablement status.
26+
Format: `list(module_name = TRUE/FALSE)`. Modules with TRUE will be skipped.
1427
.PP
1528
.SH VALUE
1629
.PP
17-
Invisibly returns NULL. Modifies the workflow context object in-place through module executions.
30+
Invisibly returns NULL. Modifies the workflow context object in-place
31+
through module executions.
1832
.PP
1933
.SH DETAILS
2034
.PP
21-
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.
35+
This function:
36+
\enumerate{
37+
\item Retrieves module execution order from `context$pipeline`
38+
\item Checks disablement status through two mechanisms:
39+
\itemize{
40+
\item Explicit disablement via `disables` parameter
41+
\item Module's own `disable` property (set by upstream modules)
42+
}
43+
\item Executes non-disabled modules using `.internal_call()`
44+
\item Provides verbose logging when `options(verbose=TRUE)`
45+
}
46+
The workflow context is modified in-place by module execution.
2247
.PP
2348
.SH SEE ALSO
2449
\code{\link{.internal_call}} for module execution logic

man/__workfile_uri_parser.1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ __workfile_uri_parser \- __workfile_uri_parser(uri)
55
\fI__workfile_uri_parser(uri)\fR
66
.SH OPTIONS
77
.PP
8-
\fBuri\fB \fR\- .
8+
\fBuri\fB \fR\- . a character vector that contains the workfile
9+
reference expression.
910
.PP
1011
.SH VALUE
1112
.PP
12-
a tuple list object that contains the necessary parameter value for call ``workfile`` function for gets the reference file path to the required data files.
13+
a tuple list object that contains the necessary
14+
parameter value for call ``workfile`` function for gets
15+
the reference file path to the required data files.
1316
.PP
1417
.SH FILES
1518
.PP

man/app.1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@ app \- app(name, analysis,
1212
\fBname\fB \fR\- . the analysis app name
1313
.PP
1414
.PP
15-
\fBanalysis\fB \fR\- .
15+
\fBanalysis\fB \fR\- . a callable function for run the data analysis
16+
content. The function declare signature for this parameter
17+
value required of two parameter signature, see comment document
18+
of the ``app_check.delegate`` function.
1619
.PP
1720
.PP
1821
\fBdesc\fB \fR\- 'no description'.
1922
.PP
2023
.PP
21-
\fBdependency\fB \fR\- NULL. usually be the environment context symbol dependency or the workspace file dependency
24+
\fBdependency\fB \fR\- NULL. usually be the environment context symbol
25+
dependency or the workspace file dependency
2226
.PP
2327
.SH FILES
2428
.PP

man/app_check.delegate.1

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,20 @@ app_check.delegate \- app_check.delegate(analysis)
55
\fIapp_check.delegate(analysis)\fR
66
.SH OPTIONS
77
.PP
8-
\fBanalysis\fB \fR\- .
8+
\fBanalysis\fB \fR\- . a callable function to check, just check of the required
9+
parameters is exists in the definition or not.
910
.PP
1011
.SH DETAILS
1112
.PP
12-
the analysis function should contains only two required parameters with specific name defined: 1. app: a list object that defines the app object itself 2. context: a list object that accept the workflow environment context due to the reason of analysis app function is called via the ``do.call`` function from the RENV base environment, so that the parameter value is aligned with the invoke function target strictly, so you can not change the parameter name or the parameter will not be aligned properly when call this analysis app function.
13+
the analysis function should contains only two
14+
required parameters with specific name defined:
15+
1. app: a list object that defines the app object itself
16+
2. context: a list object that accept the workflow environment context
17+
due to the reason of analysis app function is called via the ``do.call``
18+
function from the RENV base environment, so that the parameter value is
19+
aligned with the invoke function target strictly, so you can not change
20+
the parameter name or the parameter will not be aligned properly when
21+
call this analysis app function.
1322
.PP
1423
.SH FILES
1524
.PP

man/check_dependency.1

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,22 @@ check_dependency \- check_dependency(app,
77
<i>context</i> = '.get_context'())\fR
88
.SH OPTIONS
99
.PP
10-
\fBapp\fB \fR\- .
10+
\fBapp\fB \fR\- . the analysis app object list which is construct
11+
via the ``app`` function.
1112
.PP
1213
.PP
1314
\fBcontext\fB \fR\- '.get_context'().
1415
.PP
1516
.SH VALUE
1617
.PP
17-
this function returns a data list that contains the dependency check result. there are some data symbol inside this result object list: 1. check: logical, for indicate the dependency check success or not; 2. context: a tuple list object that contains of context symbol names which are not check success, and the reason of failure; 3. file: character vector of dependency of local workspace file check not success
18+
this function returns a data list that contains the
19+
dependency check result. there are some data symbol inside
20+
this result object list:
21+
1. check: logical, for indicate the dependency check success or not;
22+
2. context: a tuple list object that contains of context symbol names
23+
which are not check success, and the reason of failure;
24+
3. file: character vector of dependency of local workspace file
25+
check not success
1826
.PP
1927
.SH FILES
2028
.PP

man/check_dependency.context_env.1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ check_dependency.context_env \- check_dependency.context_env(requires, context)
1010
.PP
1111
\fBcontext\fB \fR\- .
1212
.PP
13+
.SH DETAILS
14+
.PP
15+
the environment symbols from the analysis context should be
16+
set via the ``set_config`` function.
17+
.PP
1318
.SH FILES
1419
.PP
1520
SMRUCC/R#.declare_function.check_dependency.context_env at context_env.R:line 6

man/check_dependency.localfiles.1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@ check_dependency.localfiles \- check_dependency.localfiles(requires, context)
55
\fIcheck_dependency.localfiles(requires, context)\fR
66
.SH OPTIONS
77
.PP
8-
\fBrequires\fB \fR\- .
8+
\fBrequires\fB \fR\- . the required temp work files, should be a tuple list
9+
object that contains the app reference and the related temp workfile,
10+
example data format of this tuple list would be:
11+
list(app1 = [file1, file2, ...], app2 = file3, ...)
912
.PP
1013
.PP
1114
\fBcontext\fB \fR\- .
1215
.PP
1316
.SH DETAILS
1417
.PP
15-
the workfile path in the ``requires`` tuple file list should be a relative file path which is relative to the app workdir
18+
the workfile path in the ``requires`` tuple file list should be
19+
a relative file path which is relative to the app workdir
1620
.PP
1721
.SH FILES
1822
.PP

0 commit comments

Comments
 (0)