From 460547371ffd29229f9a51bf6086d23a062e5ee7 Mon Sep 17 00:00:00 2001 From: Jimmy Briggs Date: Sat, 14 Sep 2024 16:13:20 -0400 Subject: [PATCH] docs: cleanup and re-document --- DESCRIPTION | 11 +++++++++-- NAMESPACE | 31 +++++++++++++++++++++++++++++++ R/assets.R | 0 R/onLoad.R | 8 ++++---- man/noclocksr-package.Rd | 23 +++++++++++++++++++++++ 5 files changed, 67 insertions(+), 6 deletions(-) delete mode 100644 R/assets.R create mode 100644 man/noclocksr-package.Rd diff --git a/DESCRIPTION b/DESCRIPTION index dc951ac..2b32df6 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -22,14 +22,18 @@ Imports: gargle, gitdown, glue, + grDevices, here, htmltools, httr, httr2, jsonlite, keyring, + lubridate, markdown, metathis, + monochromeR, + paletter, parallel, pdftools, pkgdown, @@ -42,8 +46,11 @@ Imports: tibble, tibblify, tidyr, + togglr, + usethis, utils, - xml2 + xml2, + yaml Suggests: knitr, rmarkdown, @@ -56,4 +63,4 @@ Encoding: UTF-8 Language: en-US LazyData: true Roxygen: list(markdown = TRUE) -RoxygenNote: 7.3.2.9000 +RoxygenNote: 7.3.2 diff --git a/NAMESPACE b/NAMESPACE index 000c8d9..8b353f6 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -15,21 +15,30 @@ export(entrace) export(error_cnd) export(extract_pdf_content) export(fetch_brand) +export(generate_news) +export(generate_news_from_changelog) export(get_brand_logos) export(get_favicon) export(get_gitignore) export(get_logo_file_name) +export(get_tracked_time) export(git_attributes) export(git_config) export(git_ignore) +export(hex_to_rgb) export(parse_pdf_content) export(process_pdfs) +export(rgb_to_hex) +export(rgba_to_hex) export(shiny_resume_body) export(shiny_resume_navbar) export(shiny_resume_page) +export(start_time_tracking) +export(stop_time_tracking) export(trace_back) export(tree) export(typography) +export(use_github_action_news) export(use_noclocks_meta) export(write_log) import(htmltools) @@ -37,6 +46,11 @@ import(pkgdown) importFrom(assertthat,assert_that) importFrom(cli,ansi_strip) importFrom(cli,cat_line) +importFrom(cli,cli_abort) +importFrom(cli,cli_alert_info) +importFrom(cli,cli_alert_success) +importFrom(cli,cli_alert_warning) +importFrom(cli,cli_bullets) importFrom(cli,cli_progress_bar) importFrom(cli,cli_progress_done) importFrom(cli,cli_progress_update) @@ -78,6 +92,7 @@ importFrom(httr2,req_url_path_append) importFrom(httr2,request) importFrom(httr2,resp_body_json) importFrom(jsonlite,fromJSON) +importFrom(lubridate,weeks) importFrom(markdown,markdownToHTML) importFrom(metathis,meta) importFrom(metathis,meta_social) @@ -93,11 +108,15 @@ importFrom(purrr,pmap_chr) importFrom(purrr,pwalk) importFrom(rlang,abort) importFrom(rlang,cnd_entrace) +importFrom(rlang,current_env) importFrom(rlang,entrace) importFrom(rlang,error_cnd) importFrom(rlang,trace_back) importFrom(stringr,boundary) +importFrom(stringr,str_detect) importFrom(stringr,str_extract) +importFrom(stringr,str_match) +importFrom(stringr,str_replace) importFrom(stringr,str_replace_all) importFrom(stringr,str_to_lower) importFrom(stringr,str_trim) @@ -112,4 +131,16 @@ importFrom(tibblify,tib_unspecified) importFrom(tibblify,tibblify) importFrom(tibblify,tspec_object) importFrom(tidyr,unnest) +importFrom(togglr,get_time_entries) +importFrom(togglr,get_toggl_api_token) +importFrom(togglr,set_toggl_api_token) +importFrom(togglr,toggl_start) +importFrom(togglr,toggl_stop) +importFrom(usethis,use_news_md) importFrom(utils,assignInMyNamespace) +importFrom(xml2,read_html) +importFrom(xml2,xml_children) +importFrom(xml2,xml_find_all) +importFrom(xml2,xml_find_first) +importFrom(xml2,xml_name) +importFrom(xml2,xml_text) diff --git a/R/assets.R b/R/assets.R deleted file mode 100644 index e69de29..0000000 diff --git a/R/onLoad.R b/R/onLoad.R index 8975dcd..0bc9455 100644 --- a/R/onLoad.R +++ b/R/onLoad.R @@ -4,13 +4,13 @@ #' These functions are run when the package is loaded or attached. .onAttach <- function( - libname = find.package("noclocksR"), - pkgname = "noclocksR" + libname = find.package("noclocksr"), + pkgname = "noclocksr" ) { vers <- as.character(utils::packageVersion(pkgname)) msg <- sprintf( - "Welcome to `noclocksR`! This is version: %s\n", + "Welcome to `noclocksr`! This is version: %s\n", vers ) @@ -38,7 +38,7 @@ # # .auth_env <<- rlang::env( # auth_state = gargle::init_AuthState( - # package = "noclocksR", + # package = "noclocksr", # client = oauth_client, # auth_active = TRUE # ) diff --git a/man/noclocksr-package.Rd b/man/noclocksr-package.Rd new file mode 100644 index 0000000..826b977 --- /dev/null +++ b/man/noclocksr-package.Rd @@ -0,0 +1,23 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/noclocksr-package.R +\docType{package} +\name{noclocksr-package} +\alias{noclocksr} +\alias{noclocksr-package} +\title{noclocksr: Internal Development at No Clocks, LLC} +\description{ +No Clocks, LLC packaged assets and workflows +} +\seealso{ +Useful links: +\itemize{ + \item \url{https://noclocks.github.io/noclocksr/} + \item \url{https://docs.noclocks.dev/noclocksr/} +} + +} +\author{ +\strong{Maintainer}: Jimmy Briggs \email{jimmy.briggs@jimbrig.com} (\href{https://orcid.org/0000-0002-7489-8787}{ORCID}) + +} +\keyword{internal}