{"id":18555410,"url":"https://github.com/bearloga/compostable","last_synced_at":"2025-10-27T08:37:14.637Z","repository":{"id":146996608,"uuid":"257065823","full_name":"bearloga/compostable","owner":"bearloga","description":"R Markdown document for making a compostable vs not compostable table dynamically from files in directories","archived":false,"fork":false,"pushed_at":"2020-04-19T17:51:54.000Z","size":603,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-15T13:09:47.013Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bearloga.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-19T17:51:49.000Z","updated_at":"2020-04-19T17:53:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"8ee99106-0ed2-4808-979c-a0a7e7d11c58","html_url":"https://github.com/bearloga/compostable","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/bearloga%2Fcompostable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearloga%2Fcompostable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearloga%2Fcompostable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearloga%2Fcompostable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bearloga","download_url":"https://codeload.github.com/bearloga/compostable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254346622,"owners_count":22055809,"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":[],"created_at":"2024-11-06T21:26:32.978Z","updated_at":"2025-10-27T08:37:14.580Z","avatar_url":"https://github.com/bearloga.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntitle: \"Compostables\"\noutput: github_document\n---\n\n```{r setup, include=FALSE}\nknitr::opts_chunk$set(echo = FALSE, message = FALSE)\n```\n\nThe [R Markdown](https://rmarkdown.rstudio.com/) document [compost.Rmd](compost.Rmd) together with [styles.css](styles.css) produces an HTML page like:\n\n![Screenshot of generated web page](output.png)\n\n...which can be saved to a PDF, printed, and laminated:\n\n![Photo of laminated compostables](laminated.jpg)\n\n## Images\n\nThe document generated by a page based on files in the `images/compostable` and `images/not compostable` directories which looked like:\n\n```{r directory}\ndirectory \u003c- data.frame(\n  pathString = fs::dir_ls(\"images\", recurse = TRUE),\n  stringsAsFactors = FALSE\n)\n```\n```{r tree}\nlibrary(data.tree) # install.packages(\"data.tree\")\nlibrary(magrittr)\n\ntree \u003c- as.Node(directory)\nToDataFrameTree(tree)$levelName %\u003e%\n  paste0(collapse = \"\\n\") %\u003e%\n  cat\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbearloga%2Fcompostable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbearloga%2Fcompostable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbearloga%2Fcompostable/lists"}