Title: | Check for Namespace Collisions with Other Packages and Functions on CRAN |
---|---|
Description: | Check for namespace collisions between a string input (your function or package name) and a quarter of a million packages and functions on CRAN. |
Authors: | Steve Condylios [aut, cre] |
Maintainer: | Steve Condylios <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.1 |
Built: | 2024-11-12 05:11:04 UTC |
Source: | https://github.com/collidrpackage/collidr |
collidr: Check for Namespace Collisions with Functions and Packages on CRAN
It has the goal of providing a convenient and native way of checking for namespace collisions when writing functions and packages.
Steve Condylios [email protected]
Check for namespace collisions with functions and packages on CRAN
CRAN_collisions(function_or_package_name, CRANdf)
CRAN_collisions(function_or_package_name, CRANdf)
function_or_package_name |
A character string, or vector of character strings. |
CRANdf |
Optionally provide an updated CRAN data.frame (obtain with getCRAN()) |
# Test single function name function_or_package_name <- "a3.r2" CRAN_collisions(function_or_package_name) # Test multiple function names function_or_package_name <- c("a3.r2", "xtable.A3") CRAN_collisions(function_or_package_name) # Test single package name function_or_package_name <- "dplyr" CRAN_collisions(function_or_package_name) # Test multiple package names function_or_package_name <- c("dplyr", "data.frame", "gsubfn") CRAN_collisions(function_or_package_name)
# Test single function name function_or_package_name <- "a3.r2" CRAN_collisions(function_or_package_name) # Test multiple function names function_or_package_name <- c("a3.r2", "xtable.A3") CRAN_collisions(function_or_package_name) # Test single package name function_or_package_name <- "dplyr" CRAN_collisions(function_or_package_name) # Test multiple package names function_or_package_name <- c("dplyr", "data.frame", "gsubfn") CRAN_collisions(function_or_package_name)
Check for namespace collisions with functions on CRAN
CRAN_function_collisions(function_name, CRANdf)
CRAN_function_collisions(function_name, CRANdf)
function_name |
A character string, or vector of character strings. |
CRANdf |
Optionally provide an updated CRAN data.frame (obtain with getCRAN()) |
# Test single function name function_name <- "a3.r2" CRAN_function_collisions(function_name) # Test multiple function names function_name <- c("a3.r2", "xtable.A3") CRAN_function_collisions(function_name)
# Test single function name function_name <- "a3.r2" CRAN_function_collisions(function_name) # Test multiple function names function_name <- c("a3.r2", "xtable.A3") CRAN_function_collisions(function_name)
Show functions from CRAN.
CRAN_functions(CRANdf) CRANf(CRANdf)
CRAN_functions(CRANdf) CRANf(CRANdf)
CRANdf |
Optionally provide an updated CRAN data.frame (obtain with getCRAN()) |
# Show CRAN functions CRAN_functions()
# Show CRAN functions CRAN_functions()
Check for namespace collisions with packages on CRAN
CRAN_package_collisions(package_name, CRANdf)
CRAN_package_collisions(package_name, CRANdf)
package_name |
A character string, or vector of character strings. |
CRANdf |
Optionally provide an updated CRAN data.frame (obtain with getCRAN()) |
# Test single package name package_name <- "dplyr" CRAN_package_collisions(package_name) # Test multiple package names package_name <- c("dplyr", "data.frame", "gsubfn") CRAN_package_collisions(package_name)
# Test single package name package_name <- "dplyr" CRAN_package_collisions(package_name) # Test multiple package names package_name <- c("dplyr", "data.frame", "gsubfn") CRAN_package_collisions(package_name)
Show a list of packages on CRAN.
CRAN_packages(CRANdf) CRANp(CRANdf)
CRAN_packages(CRANdf) CRANp(CRANdf)
CRANdf |
Optionally provide an updated CRAN data.frame (obtain with getCRAN()) |
# Show CRAN packages CRAN_packages()
# Show CRAN packages CRAN_packages()
Show functions from CRAN.
CRAN_packages_and_functions(CRANdf) CRANpf(CRANdf)
CRAN_packages_and_functions(CRANdf) CRANpf(CRANdf)
CRANdf |
Optionally provide an updated CRAN data.frame (obtain with getCRAN()) |
# Show CRAN packages and functions CRAN_packages_and_functions()
# Show CRAN packages and functions CRAN_packages_and_functions()
Package and function data from The Comprehensive R Archive Network
data(CRANdf)
data(CRANdf)
An object of class data.frame
with 294190 rows and 2 columns.
The Comprehensive R Archive Network, <https://cran.r-project.org/web/packages/available_packages_by_name.html>
data(CRANdf) packages <- CRANdf$package_names functions <- CRANdf$function_names
data(CRANdf) packages <- CRANdf$package_names functions <- CRANdf$function_names
Retrieve a more up to date data.frame of packages and functions from CRAN
getCRAN(last_updated, api_key)
getCRAN(last_updated, api_key)
last_updated |
Set to TRUE to return the timestamp of the last update to the CRAN database file. Access via attributes() |
api_key |
An API key for collidr-api |
## Not run: # Retrieve CRAN functions CRAN_updated <- getCRAN() ## End(Not run)
## Not run: # Retrieve CRAN functions CRAN_updated <- getCRAN() ## End(Not run)