hrbrpkghelpr::global_opts()
hrbrpkghelpr::stinking_badges()
hrbrpkghelpr::yank_title_and_description()

NOTE

What's Inside The Tin

The following functions are implemented:

hrbrpkghelpr::describe_ingredients()

Installation

hrbrpkghelpr::install_block()

Usage

library(mactheknife)

# current verison
packageVersion("mactheknife")

mdls info

res <- mdls(list.files(here::here("R"), full.names = TRUE))

res

dplyr::glimpse(res)

Kernel state vars

kernel_state()

.DS_Store example

Using built-in data

read_dsstore(
  path = system.file("extdat", "DS_Store.ctf", package = "mactheknife")
)

From a URL

A URL I should not have let a .DS_Store file lying around in

read_dsstore("https://rud.is/books/21-recipes/.DS_Store")

A Directory of.DS_Stores

A larger example using my "~/projects" folder (use your own dir as an example).

library(magrittr)

list.files(
  path = "~/projects", pattern = "\\.DS_Store", 
  all.files = TRUE, recursive = TRUE, full.names = TRUE
) %>% 
  lapply(read_dsstore) -> x

str(x)

"Software Update" History

software_update_history()

macOS Version Info (short)

sw_vers()

Applescript

res <- applescript('
tell application "Music" 
  set r_name to name of current track
  set r_artist to artist of current track
end
return "artist=" & r_artist & "\ntrack=" & r_name
')

print(res)

App info

check_sig("/Applications/RSwitch.app") %>% 
  print(n=nrow(.))

check_notarization("/Applications/RSwitch.app")

mactheknife Metrics

cloc::cloc_pkg_md()

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.



hrbrmstr/mactheknife documentation built on Feb. 17, 2020, 7:09 p.m.