Explicitly Qualifying Namespaces by Automatically Adding 'pkg::' to Functions
Overview
Automatically adding 'pkg::' to a function, i.e. mutate() becomes dplyr::mutate(). It is up to the user to determine which packages should be used explicitly, whether to include base R packages or use the functionality on selected text, a file, or a complete directory. User friendly logging is provided in the 'RStudio' Markers pane. Lives in the spirit of 'lintr' and 'styler'. Can also be used for checking which packages are actually used in a project.
Patch
- Due to the removing of the soon to be defunct function
dplyr::id, I changed examples and tests by now usingdplyr::filterinstead. Thanks to @DavisVaughan for raising the issue #11.
From NEWS.md in the release
Install
Health
ERRORtestsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> testthat::test_check("origin")
Loading required package: origin
Error : RStudio not running
== Package Usage Report ========================================================
-- Used Packages: 3 ------------------------------------------------------------
v data.table
v dplyr
v purrr
-- Unused Packages: 1 ----------------------------------------------------------
i testthat
-- Possible Namespace Conflicts: 2 --------------------------------------------
x last data.table >> dplyr
x %>% dplyr >> purrr, testthat
-- Functions with unknown origin: 1 --------------------------------------------
x bind_cols_2
== Package Usage Report ========================================================
-- Used Packages: 2 ------------------------------------------------------------
v data.table
v testthat
-- Unused Packages: 0 ----------------
...[truncated]...
"[1261 chars quoted with ''']"
- "sed do eiusmod tempor incididunt ut labore et dolore"
+ "[1261 chars quoted with ''']"
- "magna aliqua. Venenatis tellus in metus vulputate eu"
+ "[1261 chars quoted with ''']"
- "scelerisque felis. Commodo elit at imperdiet dui. In "
+ "[1261 chars quoted with ''']"
- "fermentum et sollicitudin ac orci phasellus egestas "
+ "[1261 chars quoted with ''']"
- "tellus. Vel risus commodo viverra maecenas. Urna neque"
+ "[1261 chars quoted with ''']"
- "viverra justo nec. Nec dui nunc mattis enim ut. Donec"
+ "[1261 chars quoted with ''']"
- "pretium vulputate sapien nec sagittis. Blandit cursus"
+ "[1261 chars quoted with ''']"
- "risus at ultrices. Leo urna molestie at elementum eu"
+ "[1261 chars quoted with ''']"
- "facilisis. Dignissim convallis aenean et tortor at risus."
+ "[1261 chars quoted with ''']"
and 14 more ...
[ FAIL 1 | WARN 0 | SKIP 18 | PASS 125 ]
Error:
! Test failures.
Execution haltedr-devel-linux-x86_64-debian-clang
Running ‘testthat.R’ [8s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> testthat::test_check("origin")
Loading required package: origin
Error : RStudio not running
== Package Usage Report ========================================================
-- Used Packages: 3 ------------------------------------------------------------
v data.table
v dplyr
v purrr
-- Unused Packages: 1 ----------------------------------------------------------
i testthat
-- Possible Namespace Conflicts: 2 --------------------------------------------
x last data.table >> dplyr
x %>% dplyr >> purrr, testthat
-- Functions with unknown origin: 1 --------------------------------------------
x bind_cols_2
== Package Usage Report ========================================================
-- Used Packages: 2 ------------------------------------------------------------
v data.table
v testthat
-- Unused Packages: 0 -------
...[truncated]...
"[1261 chars quoted with ''']"
- "sed do eiusmod tempor incididunt ut labore et dolore"
+ "[1261 chars quoted with ''']"
- "magna aliqua. Venenatis tellus in metus vulputate eu"
+ "[1261 chars quoted with ''']"
- "scelerisque felis. Commodo elit at imperdiet dui. In "
+ "[1261 chars quoted with ''']"
- "fermentum et sollicitudin ac orci phasellus egestas "
+ "[1261 chars quoted with ''']"
- "tellus. Vel risus commodo viverra maecenas. Urna neque"
+ "[1261 chars quoted with ''']"
- "viverra justo nec. Nec dui nunc mattis enim ut. Donec"
+ "[1261 chars quoted with ''']"
- "pretium vulputate sapien nec sagittis. Blandit cursus"
+ "[1261 chars quoted with ''']"
- "risus at ultrices. Leo urna molestie at elementum eu"
+ "[1261 chars quoted with ''']"
- "facilisis. Dignissim convallis aenean et tortor at risus."
+ "[1261 chars quoted with ''']"
and 14 more ...
[ FAIL 1 | WARN 0 | SKIP 18 | PASS 125 ]
Error:
! Test failures.
Execution haltedr-devel-linux-x86_64-debian-gcc
Running ‘testthat.R’ [5s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> testthat::test_check("origin")
Loading required package: origin
Error : RStudio not running
== Package Usage Report ========================================================
-- Used Packages: 3 ------------------------------------------------------------
v data.table
v dplyr
v purrr
-- Unused Packages: 1 ----------------------------------------------------------
i testthat
-- Possible Namespace Conflicts: 2 --------------------------------------------
x last data.table >> dplyr
x %>% dplyr >> purrr, testthat
-- Functions with unknown origin: 1 --------------------------------------------
x bind_cols_2
== Package Usage Report ========================================================
-- Used Packages: 2 ------------------------------------------------------------
v data.table
v testthat
-- Unused Packages: 0 --------
...[truncated]...
"[1261 chars quoted with ''']"
- "sed do eiusmod tempor incididunt ut labore et dolore"
+ "[1261 chars quoted with ''']"
- "magna aliqua. Venenatis tellus in metus vulputate eu"
+ "[1261 chars quoted with ''']"
- "scelerisque felis. Commodo elit at imperdiet dui. In "
+ "[1261 chars quoted with ''']"
- "fermentum et sollicitudin ac orci phasellus egestas "
+ "[1261 chars quoted with ''']"
- "tellus. Vel risus commodo viverra maecenas. Urna neque"
+ "[1261 chars quoted with ''']"
- "viverra justo nec. Nec dui nunc mattis enim ut. Donec"
+ "[1261 chars quoted with ''']"
- "pretium vulputate sapien nec sagittis. Blandit cursus"
+ "[1261 chars quoted with ''']"
- "risus at ultrices. Leo urna molestie at elementum eu"
+ "[1261 chars quoted with ''']"
- "facilisis. Dignissim convallis aenean et tortor at risus."
+ "[1261 chars quoted with ''']"
and 14 more ...
[ FAIL 1 | WARN 0 | SKIP 18 | PASS 125 ]
Error:
! Test failures.
Execution haltedr-devel-windows-x86_64
Running 'testthat.R' [7s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> testthat::test_check("origin")
Loading required package: origin
Error : RStudio not running
== Package Usage Report ========================================================
-- Used Packages: 3 ------------------------------------------------------------
v data.table
v dplyr
v purrr
-- Unused Packages: 1 ----------------------------------------------------------
i testthat
-- Possible Namespace Conflicts: 2 --------------------------------------------
x last data.table >> dplyr
x %>% dplyr >> purrr, testthat
-- Functions with unknown origin: 1 --------------------------------------------
x bind_cols_2
== Package Usage Report ========================================================
-- Used Packages: 2 ------------------------------------------------------------
v data.table
v testthat
-- Unused Packages: 0 -----------
...[truncated]...
"[1261 chars quoted with ''']"
- "sed do eiusmod tempor incididunt ut labore et dolore"
+ "[1261 chars quoted with ''']"
- "magna aliqua. Venenatis tellus in metus vulputate eu"
+ "[1261 chars quoted with ''']"
- "scelerisque felis. Commodo elit at imperdiet dui. In "
+ "[1261 chars quoted with ''']"
- "fermentum et sollicitudin ac orci phasellus egestas "
+ "[1261 chars quoted with ''']"
- "tellus. Vel risus commodo viverra maecenas. Urna neque"
+ "[1261 chars quoted with ''']"
- "viverra justo nec. Nec dui nunc mattis enim ut. Donec"
+ "[1261 chars quoted with ''']"
- "pretium vulputate sapien nec sagittis. Blandit cursus"
+ "[1261 chars quoted with ''']"
- "risus at ultrices. Leo urna molestie at elementum eu"
+ "[1261 chars quoted with ''']"
- "facilisis. Dignissim convallis aenean et tortor at risus."
+ "[1261 chars quoted with ''']"
and 14 more ...
[ FAIL 1 | WARN 0 | SKIP 18 | PASS 125 ]
Error:
! Test failures.
Execution halted- ERROR8 OK, 5 ERRORNow
- ERROR12 OK, 1 ERROR2026-10-14
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 10 (1 internal)includes a package overview page
- Examples that run
- 25%2 run in a plain check · 6 never run
- Exported functions with examples
- 100%
- Documented parameters
- 87%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- origin HTML
Downloads
Repository
- PRs merged (all time)
- 67%
- Median days to close, 50 most recently updated closed issues
- 42
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
9 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/mnist91/origin on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Show all practicesHide 1 practice
Dependencies
Installing origin adds 2 packages (1 with compiled code, 757 KB of source tarballs). Heaviest: cli 629 KB, rstudioapi 128 KB.
Code & Tests
People & History
Maintainer since 0.5.3 (2021)
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.2.1Latest
- RR 4.5.0 released · 2025-04-11
- 1.2.02024-11-24 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.1.22024-04-21 · diff ↗
- 1.1.12023-09-03 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.1.02022-11-02 · diff ↗
- 1.0.0
- RR 4.2.0 released · 2022-04-22
- 0.5.32021-09-22
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2021-09-22
- Total releases
- 7 / 5 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 2.10
- Download size
- 724 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("origin")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.