forked from r-lib/usethis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
use_import_from()
in other importing functions (r-lib#1396)
* add `use_import_from()` to `use_pipe()` * remove test re: advice since use_import_from requires pkg doc * add `use_import_from()` to `use_tibble()` and update test * add `use_import_from()` to `use_data_table()`, remove template, and update tests * update `use_data_table()` docs * add a more informative message when no pkg doc * simplify sentence in data table doc * tell user about data table dependency action * check installed before checking fun exists * update tests + test `use_data_table()` dependency action * nvm, this is done in `check_has_package_doc()` * just don't test when data.table not installed * there are so many places where the package needs to be checked, better to do so immediately * pacify tibble test * simplify data.table tests * mock use_data_table() tests to get around ns loading * mock tibble tests, too, just in case * remove dead code RIP
- Loading branch information
1 parent
13b3d1d
commit c8c1b94
Showing
12 changed files
with
97 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# use_data_table() Imports data.table | ||
|
||
Code | ||
roxygen_ns_show() | ||
Output | ||
[1] "#' @importFrom data.table .BY" | ||
[2] "#' @importFrom data.table .EACHI" | ||
[3] "#' @importFrom data.table .GRP" | ||
[4] "#' @importFrom data.table .I" | ||
[5] "#' @importFrom data.table .N" | ||
[6] "#' @importFrom data.table .NGRP" | ||
[7] "#' @importFrom data.table .SD" | ||
[8] "#' @importFrom data.table :=" | ||
[9] "#' @importFrom data.table data.table" | ||
|
||
# use_data_table() blocks use of Depends | ||
|
||
Code | ||
roxygen_ns_show() | ||
Output | ||
[1] "#' @importFrom data.table .BY" | ||
[2] "#' @importFrom data.table .EACHI" | ||
[3] "#' @importFrom data.table .GRP" | ||
[4] "#' @importFrom data.table .I" | ||
[5] "#' @importFrom data.table .N" | ||
[6] "#' @importFrom data.table .NGRP" | ||
[7] "#' @importFrom data.table .SD" | ||
[8] "#' @importFrom data.table :=" | ||
[9] "#' @importFrom data.table data.table" | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters