Package 'thankr'

Title: Find Out Who Maintains the Packages you Use
Description: Find out who maintains the packages you use in your current session or in your package library and maybe say 'thank you'.
Authors: Dirk Schumacher [aut, cre]
Maintainer: Dirk Schumacher <[email protected]>
License: MIT + file LICENSE
Version: 1.0.0.9000
Built: 2024-11-21 03:03:56 UTC
Source: https://github.com/dirkschumacher/thankr

Help Index


Appreciate your package dependencies

Description

This function is meant to be used when developing a package. It extracts all package dependencies from the DESCRIPTION file in your working directory and checks if you have starred it on github (if those packages are hosted on github).

Usage

appreciate()

Details

Still under development. Api and names can change.

The function assumes that you have set an environment variable (either GITHUB_PAT or GITHUB_TOKEN) with a Github Access Token.

When using this function together with shoulders please note that once run for the first time additional packages are attached to your session.

Also take a look at the API documentation <https://developer.github.com/v3/> of Github and their terms of use before using this function.

Value

Always returns an invisible data.frame with three columns "username", "repository" and "starred". Also outputs that information to the console.

References

Inspired by <https://github.com/musically-ut/appreciate>


Check if you starred packages on Github

Description

Starring a package on Github is a form of appreciation for the project. With this function you can quickly check if you starred all your favorite packages.

Usage

gh_starred(packages, console_output = TRUE,
  api_url = "https://api.github.com",
  user_agent = "https://github.com/dirkschumacher/thankr")

Arguments

packages

a non empty character vector of package names.

console_output

Optional. TRUE if the result should be written to the console

api_url

Optional. The GitHub API url.

user_agent

Optional. The user-agent for all the API requests. Change it if this function is part of something bigger.

Details

Still under development. Api and names can change.

The function assumes that you have set an environment variable (either GITHUB_PAT or GITHUB_TOKEN) with a Github Access Token.

When using this function together with shoulders please note that once run for the first time additional packages are attached to your session.

Also take a look at the API documentation <https://developer.github.com/v3/> of Github and their terms of use before using this function.

Value

Always returns a data.frame with three columns "username", "repository" and "starred". If console_output is TRUE, then the return value is invisible.

References

Inspired by <https://github.com/musically-ut/appreciate>


Find Out Who Maintains the Packages you Use

Description

This function helps to identify what packages you depend on. It finds the maintainers and the number of packages they maintain.

Usage

shoulders(where = c("session", "library", "package"), package,
  include_dependencies = TRUE)

Arguments

where

either look in the current loaded "session", your whole "library" or for a specific "package"

package

if where is "package" then this must be a character vector of positive length

include_dependencies

if where is "package" then use this to include all dependencies of the package. Otherwise it will just return the maintainer.

Details

Note, if you do a package lookup you connect to a CRAN mirror.

Value

A data.frame showing all packages you depend on with these three columns:

  • maintainer The maintainer as in the DESCRIPTION file

  • no_packages The number of packages of that maintainer

  • packages A comma separated list of those packages

Examples

## Not run: 
# identifies the packages currently loaded in your session
shoulders() # equal to shoulders("session")

# shows all maintainers of your package library
shoulders("library")

# find out about a specific package
# by default it lists all dependencies of that package as well
shoulders("package", "utils", include_dependencies = FALSE)
shoulders("package", "utils")

## End(Not run)

Find Out Who Maintains the Packages you Use

Description

Find out who maintains the packages you use in your current session or in your package library.

Details

This package exposes a single function shoulders that helps you identify the maintainers of your favorite packages.

> standing on the shoulders of giants