Skip to content

Commit

Permalink
from itemize to markdown to avoid runaway braces error #270
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Blätte authored and Andreas Blätte committed Oct 28, 2023
1 parent 215321c commit 6c47f56
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 52 deletions.
61 changes: 32 additions & 29 deletions R/polmineR.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,58 +37,61 @@ setOldClass("quosure")
#' (document term matrices, term co- occurrence matrices etc.) can be created
#' based on the indexed corpora.
#'
#' A session registry directory (see \code{registry()}) combines the registry
#' A session registry directory (see `registry()`) combines the registry
#' files for corpora that may reside in anywhere on the system. Upon loading
#' \code{polmineR}, the files in the registry directory defined by the
#' 'polmineR', the files in the registry directory defined by the
#' environment variable CORPUS_REGISTRY are copied to the session registry
#' directory. To see whether the environment variable CORPUS_REGISTRY is set,
#' use the `Sys.getenv()`-function. Corpora wrapped in R data packages can be
#' activated using the function \code{use()}.
#' activated using the function `use()`.
#'
#' The package includes a draft shiny app that can be called using
#' \code{polmineR()}.
#' `polmineR()`.
#'
#' @section Package options:
#' \itemize{
#' \item{\emph{polmineR.p_attribute}:} {The default positional attribute}
#' \item{\emph{polmineR.left}:} {Default value for left context.}
#' \item{\emph{polmineR.lineview}:} {A logical value, whether ...}
#' \item{\emph{polmineR.pagelength}:} {10L}
#' \item{\emph{polmineR.meta}:} {}
#' \item{\emph{polmineR.mc}:} {}
#' \item{\emph{polmineR.cores}:} {}
#' \item{\emph{polmineR.browse}:} {}
#' \item{\emph{polmineR.buttons}:} {}
#' \item{\emph{polmineR.specialChars}:} {}
#' \item{\emph{polmineR.cutoff}:} {}
#' \item{\emph{polmineR.mdsub}:}{A list of pairs of character vectors
#' * _polmineR.p_attribute_: The default positional attribute.
#' * _polmineR.left_: Default value for left context.
#' * _polmineR.lineview_: A `logical` value to activate lineview output of
#' `kwic()`.
#' * _polmineR.pagelength_: Maximum number of lines to show when preparing output
#' using `DT::datatable()` (defaults to 10L).
#' * _polmineR.meta_: Default metadata (s-attributes) to show.
#' * _polmineR.mc_: Whether to use multiple cores.
#' * _polmineR.cores_: Number of cores to use. Passed as argument `cl` into
#' `mclapply()`.
#' * _polmineR.browse_: Whether to show output in browser.
#' * _polmineR.buttons_: A `logical` value, whether to display buttons when
#' preparing htmlwidget using `DT::datatable()`.
#' * _polmineR.specialChars_:
#' * _polmineR.cutoff_: Maximum number of characters to display when preparing
#' html output.
#' * _polmineR.mdsub_: A list of pairs of character vectors
#' defining regular expression substitutions applied as part of preprocessing
#' documents for html display. Intended usage: Remove characters that would be
#' misinterpreted as markdown formatting instructions.}
#' \item{\emph{polmineR.corpus_registry}:} {The system corpus registry
#' misinterpreted as markdown formatting instructions.
#' * _polmineR.corpus_registry_: The system corpus registry
#' directory defined by the environment variable CORPUS_REGISTRY before the
#' polmineR package has been loaded. The polmineR package uses a temporary
#' registry directory to be able to use corpora stored at multiple
#' locations in one session. The path to the system corpus registry directory
#' captures this setting to keep it available if necessary.}
#' \item{\emph{polmineR.shiny}:} {A \code{logical} value, whether polmineR is
#' captures this setting to keep it available if necessary.
#' * _polmineR.shiny_: A `logical` value, whether polmineR is
#' used in the context of a shiny app. Used to control the apprearance of
#' progress bars depending on whether shiny app is running, or not.}
#' \item{\emph{polmineR.warn.size}:} {When generating HTML table widgets (e.g.
#' progress bars depending on whether shiny app is running, or not.
#' * _polmineR.warn.size_: When generating HTML table widgets (e.g.
#' when preparing kwic output to be displayed in RStudio's Viewe pane), the
#' function \code{DT::datatable()} that is used internally will issue a
#' function `DT::datatable()` that is used internally will issue a
#' warning by default if the object size of the table is greater than 1500000.
#' The warning adresses a client-server scenario that is not applicable in the
#' context of a local RStudio session, so you may want to turn it of.
#' Internally, the warning can be suppressed by setting the option
#' \code{DT.warn.size} to \code{FALSE}. The polmineR option
#' \code{polmineR.warn.size} is processed by functions calling DT::datatable()
#' to set and reset the value of \code{DT.warn.size}. Please note: The
#' "DT.warn.size" to `FALSE`. The polmineR option
#' "polmineR.warn.size" is processed by functions calling DT::datatable()
#' to set and reset the value of "DT.warn.size". Please note: The
#' formulation of the warning does not match the scenario of a local RStudio
#' session, but it may still be useful to get a warning when tables are large
#' and slow to process. Therefore, the default value of the setting is
#' \code{FALSE}.}
#' }
#' `FALSE`.
#' @author Andreas Blaette (andreas.blaette@@uni-due.de)
#' @keywords package
#' @docType package
Expand Down
51 changes: 28 additions & 23 deletions man/polmineR-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6c47f56

Please sign in to comment.