Skip to content

Commit

Permalink
cleanup and doc
Browse files Browse the repository at this point in the history
  • Loading branch information
cole-brokamp committed Aug 22, 2024
1 parent 36a4e6a commit 40d301a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ export(stow_remove)
export(stow_size)
export(stow_url)
export(write_dpkg)
if (getRversion() < "4.3.0") importFrom("S7", "@")
8 changes: 8 additions & 0 deletions R/dpkg_tibble.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ print.dpkg <- function(x, ...) {
#' @param x a dpkg object
#' @returns a list of metadata key value pairs
#' @export
#' @examples
#'
#' x <- as_dpkg(mtcars, name = "mtcars", title = "Motor Trend Road Car Tests")
#' attr(x, "description") <- "This is a data set all about characteristics of different cars"
#' attr(x, "homepage") <- "https://github.com/cole-brokamp/dpkg"
#' x
#'
#' dpkg_meta(x)
dpkg_meta <- function(x) {
attributes(x)[c("name", "version", "title", "homepage", "description")]
}
Expand Down
8 changes: 0 additions & 8 deletions R/helpers.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
.onLoad <- function(...) {
fs::dir_create(stow_path())
}

# enable usage of <S7_object>@name in package code
#' @rawNamespace if (getRversion() < "4.3.0") importFrom("S7", "@")
NULL

has_internet <- function() {
!is.null(curl::nslookup("captive.apple.com", error = FALSE))
}
9 changes: 9 additions & 0 deletions man/dpkg_meta.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 40d301a

Please sign in to comment.