Skip to content

Commit

Permalink
sort out dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
luisDVA committed Oct 7, 2024
1 parent 94fe804 commit 6b0a0a2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.2.9000
URL: https://github.com/luisDVA/hexsession, https://luisdva.github.io/hexsession/
BugReports: https://github.com/luisDVA/hexsession/issues
Imports:
base64enc,
chromote,
jsonlite,
magick,
purrr
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export(make_tile)
export(snap_tile)
importFrom(base64enc,base64encode)
importFrom(jsonlite,toJSON)
importFrom(utils,packageDescription)
3 changes: 2 additions & 1 deletion R/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ find_logopaths <- function(imagepaths) {

#' Get package URLs
#' @param pkgnames Character vector of package names
#' @importFrom utils packageDescription
#' @return A vector of package URLs
pkgurls <- function(pkgnames) {
allurls <- purrr::map(pkgnames,\(x) packageDescription(x,field="URL"))
allurls <- purrr::map(pkgnames,\(x) packageDescription(x,fields="URL"))
splturls <- purrr::map(allurls,\(x) unlist(strsplit(x,",|\n")))
purrr::map_chr(splturls,`[`,1)
}
Expand Down

0 comments on commit 6b0a0a2

Please sign in to comment.