funmaintext: Modify the Main Text and the Markdown Header in p_text...

View source: R/funmaintext.R

funmaintextR Documentation

Modify the Main Text and the Markdown Header in p_text Function

Description

Use funmaintext or funmaintext2 to select the function that displays the main text. Usage is f\_maintext = funmaintext (without curly braces).

Use funheadermd to insert markdown header in function sep1 = funheadermd() (with curly braces).

See the example in p\_text. To create you own functions, use these functions as a pattern. The five parameters in f\_maintext, funmaintext are mandatory. funheadermd can be freely modified.

Usage

funmaintext(pkg, sep1, sep2, eol, crandb, repos)

funmaintex(pkg, sep1, sep2, eol, crandb, repos)

funheadermd(title = "TITLE", author = "AUTHOR", date = Sys.Date(),
  keep_tex = "false", toc = "false", number_sections = "true",
  fontsize = "10pt", papersize = "a4paper", margin = "1in")

funheadertex(fontsize = "10pt", papersize = "a4paper", margin = "1in")

funfootertex()

Arguments

pkg

character. The package name.

sep1

character. The symbols written just before each package name.

sep2

character. The symbols written just after each package name.

eol

character. The end of line for the main text (but not for the header and the footer). "\n" for text, " \n" for rmarkdown, " \\ \n" for latex.

crandb

data.frame crandb. The data.frame of CRAN packages.

repos

character. The address of your local CRAN.

title

character. The title of the .md document (and then in the .pdf file).

author

character. The author of the .md document.

date

character. The date of the document. Any text format is accepted.

keep_tex

character. "true" or "false".

toc

character. "true" or "false".

number_sections

character. "true" or "false".

fontsize

character. Usually "10pt", "11pt", "12pt.

papersize

character. The usual tex format. Example: "a4paper".

margin

character. In inches, cm or mm. Example: "0.5in", "1.5cm", "25mm".


RWsearch documentation built on March 18, 2022, 5:17 p.m.