completeManualPage: Complete Manual Page

Description Usage Arguments Value Author(s) Examples

View source: R/completeManualPage.R

Description

Complete a manual page

Usage

1
2
completeManualPage(filename_s_1, processingContext_o,
                   add_b_1 = TRUE, verbosity_b_1 = FALSE)

Arguments

filename_s_1

A single string value that is a file name

processingContext_o

a single processing object. See codeProcessingContext. Only postProcessing_l parameter is considered by this function.

add_b_1

a boolean flag. When TRUE add content to existing content. Otherwise patch content.

verbosity_b_1

a single boolean flag, to set or unset verbosity

Value

This function adds or patches on-demand sections of a manual page file.

You may consider twice prior using this function. It is a convenience that aims to sustain your productivity. You may get very quick results using it, but at the probable cost of non reproducibility in comparison with manual pages produced using function ManualPageBuilder.

Author(s)

Fabien Gelineau <neonira@gmail.com>

Maintainer: Fabien Gelineau <neonira@gmail.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
f <- function() {}
ic <- InputContext(NULL, 'f')
p <- produceManualPage(ic)
# WARNING: File /tmp/Rtmpvk4BG5/f.Rd
# checkRd: (5) /tmp/Rtmpvk4BG5/f.Rd:0-9: Must have a \description


completeManualPage(p$context$filename,
   ProcessingContext(postProcessing_l = list(
      details = function(content_s) 'some more details',
      concept = function(content_s) 'yet another concept'
   )), verbosity = TRUE
)
# adding details
# adding concept
# [1] TRUE

wyz.code.rdoc documentation built on Oct. 6, 2021, 9:07 a.m.