The felp
package provides
?.
pseudo-post fix operator to simultaneously
display a help document and a structure of an object?p
pseudo-post fix operator to display document of
a packagefelp
function and ?
operator to extend
help
and ?
in the utils
package
by displaying structure of an object
felp?. # and `felp(felp)` return source and document of `felp` function
[31mfunction
[39m
[33m(
[39mtopic, package =
[34m
[1mNULL
[22m
[39m, ...
[33m)
[39m
[33m{
[39m
[31mif
[39m
[34m(
[39m
[36mmissing
[39m
[36m(
[39mtopic
[36m)
[39m
[34m)
[39m
[36mreturn
[39m
[34m(
[39m
[36mdo.call
[39m
[36m(
[39mhelp,
[36mlist
[39m
[33m(
[39mpackage =
[36msubstitute
[39m
[34m(
[39mpackage
[34m)
[39m,
...
[33m)
[39m
[36m)
[39m
[34m)
[39m
t
[32m<-
[39m
[36mrev
[39m
[34m(
[39m
[36mas.character
[39m
[36m(
[39m
[36msubstitute
[39m
[33m(
[39mtopic
[33m)
[39m
[36m)
[39m
[34m)
[39m
p
[32m<-
[39m
[36mc
[39m
[34m(
[39m
[36mas.character
[39m
[36m(
[39m
[36msubstitute
[39m
[33m(
[39mpackage
[33m)
[39m
[36m)
[39m, t
[36m[
[39m
[34m2L
[39m
[36m]
[39m
[34m)
[39m
[34m[
[39m
[34m1L
[39m
[34m]
[39m
[31mif
[39m
[34m(
[39m
[36mis.na
[39m
[36m(
[39mp
[36m)
[39m
[34m)
[39m
p
[32m<-
[39m
[34m
[1mNULL
[22m
[39m
[36mstr
[39m
[34m(
[39m
[36mget
[39m
[36m(
[39mt
[33m[
[39m
[34m1L
[39m
[33m]
[39m, envir =
[31mif
[39m
[33m(
[39m
[36mis.null
[39m
[34m(
[39mp
[34m)
[39m
[33m)
[39m
[36mparent.frame
[39m
[33m(
[39m
[33m)
[39m
[31melse
[39m
[36masNamespace
[39m
[33m(
[39mp
[33m)
[39m
[36m)
[39m
[34m)
[39m
[36mtry
[39m
[34m(
[39m
[36mhelp
[39m
[36m(
[39mt
[33m[
[39m
[34m1L
[39m
[33m]
[39m, p
[33m[
[39m
[34m1L
[39m
[33m]
[39m, ...
[36m)
[39m
[34m)
[39m
[33m}
[39m
<environment: namespace:felp>
felp | R Documentation |
Structure of object is returned by str()
.
For a function, its source is returned instead of str()
.
felp(topic, package = NULL, ...)
topic |
usually, a name or character string specifying the topic for which help is sought. A character string (enclosed in explicit single or double quotes) is always taken as naming a topic. If the value of See ‘Details’ for what happens if this is omitted. |
package |
a name or character vector giving the packages to look
into for documentation, or |
... |
Arguments passed on to
|
# Identical to help(identity); print(identity)
felp(identity)
# Identical to help(iris); str(iris)
felp(iris)
# Identical to help(package = stats)
felp(package = stats)
dummy?. # and `felp(dummy)` return sructure and document of `dummy` dataset.
List of 2
$ a: chr "a"
$ b: num 1
dummy | R Documentation |
A dummy data for felp
dummy
An object of class list
of length 2.
felp?p # and `felp(package = felp)` return document of `felp` package
Information on package 'felp'
Description:
Package: felp
Type: Package
Title: Functional Help for Functions, Objects, and Packages
Version: 0.5.0.9999
Author: Atsushi Yasumoto [aut, cph, cre]
(<https://orcid.org/0000-0002-8335-495X>)
Authors@R: c( person( given = "Atsushi", family = "Yasumoto",
role = c("aut", "cph", "cre"), email =
"atusy.rpkg@gmail.com", comment = c(ORCID =
"0000-0002-8335-495X") ) )
Maintainer: Atsushi Yasumoto <atusy.rpkg@gmail.com>
Description: Enhance R help system by fuzzy search and preview
interface, pseudo-postfix operators, and more. The
`?.` pseudo-postfix operator and the `?` prefix
operator displays documents and contents (source or
structure) of objects simultaneously to help
understanding the objects. The `?p` pseudo-postfix
operator displays package documents, and is shorter
than help(package = foo).
URL: https://github.com/atusy/felp
BugReports: https://github.com/atusy/felp/issues
License: MIT + file LICENSE
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
Imports: prettycode, callr, curl, data.table, dplyr,
htmltools, magrittr, matrixStats, miniUI, reactable,
rstudioapi, rlang, shiny, stringi, utils
Suggests: knitr, printr, testthat (>= 2.1.0), covr, rmarkdown
VignetteBuilder: knitr
Language: en-US
Built: R 4.3.3; ; 2024-04-22 14:20:55 UTC; unix
Index:
? Functional help with ? operator
dummy A dummy data for felp
felp Functional help which displays structure of an
object in addition to help
fuzzyhelp Fuzzily Search Help and View the Selection