{"id":20665606,"url":"https://github.com/thinkr-open/lightparser","last_synced_at":"2025-04-19T16:39:28.939Z","repository":{"id":207518628,"uuid":"719446437","full_name":"ThinkR-open/lightparser","owner":"ThinkR-open","description":"From Rmd And Qmd To Tibble And Back","archived":false,"fork":false,"pushed_at":"2024-05-31T00:28:40.000Z","size":4213,"stargazers_count":24,"open_issues_count":7,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-23T19:03:43.229Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://thinkr-open.github.io/lightparser/","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/ThinkR-open.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2023-11-16T07:23:02.000Z","updated_at":"2025-02-14T11:20:32.000Z","dependencies_parsed_at":"2024-05-06T09:27:55.140Z","dependency_job_id":"fcec1938-9eb7-4973-bfb6-b158163c1437","html_url":"https://github.com/ThinkR-open/lightparser","commit_stats":null,"previous_names":["thinkr-open/lightparser"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThinkR-open%2Flightparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThinkR-open%2Flightparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThinkR-open%2Flightparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThinkR-open%2Flightparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThinkR-open","download_url":"https://codeload.github.com/ThinkR-open/lightparser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249739859,"owners_count":21318670,"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-16T19:32:43.580Z","updated_at":"2025-04-19T16:39:28.911Z","avatar_url":"https://github.com/ThinkR-open.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# lightparser\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/ThinkR-open/lightparser/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ThinkR-open/lightparser/actions/workflows/R-CMD-check.yaml)\n[![Codecov test coverage](https://codecov.io/gh/ThinkR-open/lightparser/branch/main/graph/badge.svg)](https://app.codecov.io/gh/ThinkR-open/lightparser?branch=main)\n\u003c!-- badges: end --\u003e\n\nYou need to extract some specific information from your Rmd or Qmd file?\n{lightparser} is designed to split your Rmd or Qmd file by sections into a tibble: titles, text, chunks.\nIt stores them as a tibble, so you can easily manipulate it with {dplyr} or {purrr}.\nLater, you can rebuild a Rmd or Qmd from the tibble.\n\n## Installation\n\nYou can install the released CRAN version:\n\n``` r\ninstall.packages(\"lightparser\")\n```\n\nYou can install the development version of lightparser from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"ThinkR-open/lightparser\")\n```\n\n## Documentation\n\nFull documentation website on: https://thinkr-open.github.io/lightparser/\n\n## Example\n\n\nSplit your Rmd or Qmd file into a tibble:\n\n```{r, message=FALSE}\nlibrary(lightparser)\n\nfile \u003c- system.file(\n  \"dev-template-parsing.Rmd\",\n  package = \"lightparser\"\n)\n\n\ntbl_rmd \u003c- split_to_tbl(file)\ntbl_rmd\n```\n\nCombine the tibble into a Rmd or Qmd file:\n\n```{r}\nfile_out \u003c- tempfile(fileext = \".Rmd\")\nout \u003c- combine_tbl_to_file(tbl_rmd, file_out)\n```\n\nRead the file re-created with `combine_tbl_to_file()` to verify it is a proper Rmd\n```{r}\ncat(readLines(file_out), sep = \"\\n\")\n```\n\n## Similar work\n\n{lightparser} is a light version of {parsermd} that has not been updated for a long time, \nand which is not compatible with the latest versions of C++ compilers.\n{lightparser} does not rely on C++ compilation.\n\n## Code of Conduct\n\nPlease note that the lightparser project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/1/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkr-open%2Flightparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkr-open%2Flightparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkr-open%2Flightparser/lists"}