Skip to content

Commit

Permalink
up version
Browse files Browse the repository at this point in the history
  • Loading branch information
parmsam committed Nov 8, 2024
1 parent 007392d commit 8747098
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: forgot
Type: Package
Title: Function Reference Search In Console
Version: 0.1.0
Version: 0.1.1
Author: Sam Parmar
Maintainer: Sam Parmar <[email protected]>
Description: Search for that one function you need in that one package.
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# forgot 0.1.1

* Fixed bug in `forgot_exmpls()` where the function was not running `filter_fx()` correctly
* Similar bug fix for `forgot_usg()`
* Updated readme with shortcut functions

# forgot 0.1.0

* Added a `NEWS.md` file to track changes to the package.
Expand Down
26 changes: 25 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,35 @@ forgot("stringr", keyword = "count", selected = c("title", "desc"),
Here's how you can cat (?`cat()` for more info) the parameter field, usage field, or example field. Try it out to see how it looks.
```{r eval = F}
forgot_params("dplyr", "count")
forgot_usage("dplyr", "count")
forgot_usg("dplyr", "count")
forgot_exmpls("dplyr", "count")
```
The write logical (see `forgot_exmpls()` documentation for example) argument will create a new RStudio document with the roxygen2 field content of interest that was cat.

### Shortcuts

You can also use some shortcut operators to get the same results as above.
```{r eval = F}
# shortcut for forgot2
"dplyr" %f2% "count"
## OR
dplyr %f2% "count"
# shortcut for forgot_usg
"dplyr" %fu% "count"
## OR
dplyr %fu% count
# shortcut for forgot_exmpls
"dplyr" %fe% "count"
## OR
dplyr %fe% count
# shortcut for forgot_params
"dplyr" %fp% "count"
## OR
dplyr %fp% count
```


## Credits

- Hex icon created using the [hexmake
Expand Down
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,39 @@ usage field, or example field. Try it out to see how it looks.

``` r
forgot_params("dplyr", "count")
forgot_usage("dplyr", "count")
forgot_usg("dplyr", "count")
forgot_exmpls("dplyr", "count")
```

The write logical (see `forgot_exmpls()` documentation for example)
argument will create a new RStudio document with the roxygen2 field
content of interest that was cat.

### Shortcuts

You can also use some shortcut operators to get the same results as
above.

``` r
# shortcut for forgot2
"dplyr" %f2% "count"
## OR
dplyr %f2% "count"
# shortcut for forgot_usg
"dplyr" %fu% "count"
## OR
dplyr %fu% count
# shortcut for forgot_exmpls
"dplyr" %fe% "count"
## OR
dplyr %fe% count

# shortcut for forgot_params
"dplyr" %fp% "count"
## OR
dplyr %fp% count
```

## Credits

- Hex icon created using the [hexmake
Expand Down

0 comments on commit 8747098

Please sign in to comment.