Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cran/sos
:exclamation: This is a read-only mirror of the CRAN R package repository. sos — Search Contributed R Packages, Sort by Package. Homepage: https://github.com/sbgraves237/sos Report bugs for this package: https://github.com/sbgraves237/sos/issues
https://github.com/cran/sos
Last synced: 8 days ago
JSON representation
:exclamation: This is a read-only mirror of the CRAN R package repository. sos — Search Contributed R Packages, Sort by Package. Homepage: https://github.com/sbgraves237/sos Report bugs for this package: https://github.com/sbgraves237/sos/issues
- Host: GitHub
- URL: https://github.com/cran/sos
- Owner: cran
- Created: 2014-03-13T06:21:44.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2024-06-30T02:47:02.000Z (6 months ago)
- Last Synced: 2024-08-13T07:14:18.574Z (4 months ago)
- Language: R
- Homepage:
- Size: 1.45 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
Awesome Lists containing this project
- jimsghstars - cran/sos - :exclamation: This is a read-only mirror of the CRAN R package repository. sos — Search Contributed R Packages, Sort by Package. Homepage: https://github.com/sbgraves237/sos Report bugs for this pac (R)
README
# sos
[![R-CMD-check](https://github.com/sbgraves237/sos/workflows/R-CMD-check/badge.svg)](https://github.com/sbgraves237/sos/actions)
The `sos` package provides the fastest literature search I know for
anything statistical. It queries the `RSiteSearch` database and sorts
the results by package not just help page. The package includes a
vignette reprinted from [*The R
Journal*](https://journal.r-project.org/archive/2009/RJ-2009-017/RJ-2009-017.pdf).## Installation
You can install the released version of sos from
[CRAN](https://CRAN.R-project.org) with:``` r
install.packages("sos")
```And the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("sbgraves237/sos")
```## Example
This is a basic example which shows you how to solve a common problem:
``` r
library(sos)
#> Loading required package: brew
#>
#> Attaching package: 'sos'
#> The following object is masked from 'package:utils':
#>
#> ?
(PL <- findFn('Petal.Length'))
#> found 100 matches; retrieving 5 pages
#> 2 3 4 5
#> Downloaded 100 links in 63 packages.
#> Warning in file(templateFile, encoding = "utf-8", open = "r"): file("") only
#> supports open = "w+" and open = "w+b": using the former
#> Warning in print.packageSum(packageSum(x, title = titSum, ...)): Brew created a
#> file of size 0
#> Ignoring template.
```The `print` method for an object of class `findFn`, like `PL`, opens two
tabs in the default browser: The first has links to individual help
pages sorted by package. The second is a package summary.The current version of `sos` extracts some information only from
installed packages. You can install the leading packages in a search as
follows:``` r
installPackages(PL)
PL
#> Warning in file(templateFile, encoding = "utf-8", open = "r"): file("") only
#> supports open = "w+" and open = "w+b": using the former
#> Warning in print.packageSum(packageSum(x, title = titSum, ...)): Brew created a
#> file of size 0
#> Ignoring template.
```