readthedocs: Use "Read the Docs" to get help on a Python module/object

Description Usage Arguments Details Examples

View source: R/read-the-docs.R

Description

Uses utils::browseURL() to open up a browser window pointing to a https://docs.python.org search for the object in question.

Usage

1
readthedocs(obj, py_ver = 3, check_keywords = TRUE)

Arguments

obj

the unquoted Python object or a character string with the query keyword

check_keywords

logical; if TRUE check_keywords=yes will be used in the docs.python.org URL

pyver

defautls to 3 but you can use any Python version string

Details

You pass in the object itself (the function will handle the rest) or a character string with the item to lookup.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
library(reticulate)

mailbox = import("mailbox")
readthedocs(mailbox)

# or

readthedocs("mailbox")

## End(Not run)

hrbrmstr/sanipy documentation built on May 20, 2019, 11:58 a.m.