Reputation: 10540
In R
you can search the documentation by typing a question mark ?
or a double question mark ??
. How do you search the manual for strings in the Julia REPL?
>?first
No documentation for ‘first’ in specified packages and libraries:
you could try ‘??first’
>??first
In the R
console a browser window opens up:
In RStudio
the page is opened within the IDE.
The help() function and ? help operator in R provide access to the documentation pages for R functions, data sets, and other objects, both for packages in the standard R distribution and for contributed packages.
The help() function and ? operator are useful only if you already know the name of the function that you wish to use. Other ways to search include apropos
and ??
The apropos() function searches for objects, including functions, directly accessible in the current R session that have names that include a specified character string.
The ?? operator is a synonym for help.search(). The help.search() function scans the documentation for packages installed in your library. The argument to help.search() is a character string or regular expression.
P.S. I intend to answer my own question.
Upvotes: 5
Views: 339
Reputation: 10540
Julia has similar interactive utilties. Julia's main search utility for docstrings is named apropos
.
To search the documentation for information about "first" in Julia, you have apropos("first")
or equivalently ?"first"
. Thus ?"first"
is roughly equivalent to R
's ??
.
To search for functions and methods, you can type a singe question mark ?
, just as with R
. In the Julia REPL, as you type the question mark, the prompt changes to a question mark. If you type "first"
it searches through strings, while if you type first
without quote-marks, you get a search over variables exported by the modules currently loaded.
Illustration:
help?>"first"
# or equivalently:
julia>apropos("first")
help?>first
If you search for a string, case is ignored. If you want to search within the DataFrames
module, type using DataFrames
before searching.
This also works in Visual Studio Code
and Atom
:
Upvotes: 1