{"id":13858039,"url":"https://github.com/hrbrmstr/mactheknife","last_synced_at":"2025-03-21T12:30:53.314Z","repository":{"id":141238455,"uuid":"131491635","full_name":"hrbrmstr/mactheknife","owner":"hrbrmstr","description":"🦈 Various ‘macOS’-oriented Tools and Utilities in R","archived":false,"fork":false,"pushed_at":"2020-02-11T19:56:37.000Z","size":77,"stargazers_count":38,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T01:11:13.704Z","etag":null,"topics":["ds-store","macos","python","r","r-cyber","reticulate","rstats"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hrbrmstr.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-04-29T12:12:54.000Z","updated_at":"2024-06-27T00:45:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"bddb31e1-1c68-4e4e-92b4-1c90047b4463","html_url":"https://github.com/hrbrmstr/mactheknife","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fmactheknife","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fmactheknife/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fmactheknife/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fmactheknife/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrbrmstr","download_url":"https://codeload.github.com/hrbrmstr/mactheknife/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244799206,"owners_count":20512206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ds-store","macos","python","r","r-cyber","reticulate","rstats"],"created_at":"2024-08-05T03:01:54.749Z","updated_at":"2025-03-21T12:30:52.277Z","avatar_url":"https://github.com/hrbrmstr.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: rmarkdown::github_document\neditor_options: \n  chunk_output_type: console\n---\n```{r pkg-knitr-opts, include=FALSE}\nhrbrpkghelpr::global_opts()\n```\n\n```{r badges, results='asis', echo=FALSE, cache=FALSE}\nhrbrpkghelpr::stinking_badges()\n```\n\n```{r description, results='asis', echo=FALSE, cache=FALSE}\nhrbrpkghelpr::yank_title_and_description()\n```\n\n## NOTE\n\n- Uses `reticulate` so a working Python *3* implementation is needed. Consider setting `RETICULATE_PYTHON` to a valid, working Python 3 installation if this package is not working for you.\n\n## What's Inside The Tin\n\nThe following functions are implemented:\n\n```{r ingredients, results='asis', echo=FALSE, cache=FALSE}\nhrbrpkghelpr::describe_ingredients()\n```\n\n## Installation\n\n```{r install-ex, results='asis', echo=FALSE, cache=FALSE}\nhrbrpkghelpr::install_block()\n```\n\n## Usage\n\n```{r use, message=FALSE, warning=FALSE, error=FALSE}\nlibrary(mactheknife)\n\n# current verison\npackageVersion(\"mactheknife\")\n\n```\n\n### `mdls` info\n\n```{r mdls}\nres \u003c- mdls(list.files(here::here(\"R\"), full.names = TRUE))\n\nres\n\ndplyr::glimpse(res)\n```\n\n### Kernel state vars\n\n```{r ks}\nkernel_state()\n```\n\n### `.DS_Store` example \n\nUsing built-in data\n\n```{r ds1}\nread_dsstore(\n  path = system.file(\"extdat\", \"DS_Store.ctf\", package = \"mactheknife\")\n)\n```\n\n### From a URL\n\nA URL I should not have let a `.DS_Store` file lying around in\n\n```{r ds2}\nread_dsstore(\"https://rud.is/books/21-recipes/.DS_Store\")\n```\n\n### A Directory of`.DS_Store`s\n\nA larger example using my \"~/projects\" folder (use your own dir as an example).\n\n```{r ds-dir, cache = FALSE}\nlibrary(magrittr)\n\nlist.files(\n  path = \"~/projects\", pattern = \"\\\\.DS_Store\", \n  all.files = TRUE, recursive = TRUE, full.names = TRUE\n) %\u003e% \n  lapply(read_dsstore) -\u003e x\n\nstr(x)\n```\n\n### \"Software Update\" History\n\n```{r suh}\nsoftware_update_history()\n```\n\n### macOS Version Info (short)\n\n```{r swv}\nsw_vers()\n```\n\n### Applescript\n\n```{r applescript}\nres \u003c- applescript('\ntell application \"Music\" \n  set r_name to name of current track\n  set r_artist to artist of current track\nend\nreturn \"artist=\" \u0026 r_artist \u0026 \"\\ntrack=\" \u0026 r_name\n')\n\nprint(res)\n```\n\n### App info\n\n```{r app}\ncheck_sig(\"/Applications/RSwitch.app\") %\u003e% \n  print(n=nrow(.))\n\ncheck_notarization(\"/Applications/RSwitch.app\")\n```\n\n## mactheknife Metrics\n\n```{r cloc, echo=FALSE}\ncloc::cloc_pkg_md()\n```\n\n## Code of Conduct\n\nPlease note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrbrmstr%2Fmactheknife","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrbrmstr%2Fmactheknife","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrbrmstr%2Fmactheknife/lists"}