{"id":19769512,"url":"https://github.com/tjmahr/wraprmd","last_synced_at":"2025-04-30T17:31:20.176Z","repository":{"id":45407627,"uuid":"53078946","full_name":"tjmahr/WrapRmd","owner":"tjmahr","description":"RStudio addin for wrapping RMarkdown paragraphs","archived":false,"fork":false,"pushed_at":"2024-02-19T18:27:19.000Z","size":84,"stargazers_count":102,"open_issues_count":6,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-06T03:05:00.862Z","etag":null,"topics":["knitr","r","rmarkdown","rstudio"],"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/tjmahr.png","metadata":{"files":{"readme":"README.md","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,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-03-03T19:56:57.000Z","updated_at":"2024-05-24T05:49:00.000Z","dependencies_parsed_at":"2024-02-09T02:08:21.470Z","dependency_job_id":"57c9fedb-ed56-4e80-b4b1-babfbac36802","html_url":"https://github.com/tjmahr/WrapRmd","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjmahr%2FWrapRmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjmahr%2FWrapRmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjmahr%2FWrapRmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjmahr%2FWrapRmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tjmahr","download_url":"https://codeload.github.com/tjmahr/WrapRmd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224219737,"owners_count":17275477,"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":["knitr","r","rmarkdown","rstudio"],"created_at":"2024-11-12T04:43:35.098Z","updated_at":"2024-11-12T04:43:35.726Z","avatar_url":"https://github.com/tjmahr.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WrapRmd\n\nAn [RStudio Addin](https://rstudio.github.io/rstudioaddins/) to wrap paragraphs\nof RMarkdown text without inserting line breaks into inline R code.\n\n## Installation\n\nYou can install the plain version WrapRmd from GitHub with:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"tjmahr/WrapRmd\")\n```\n\nThis package used the\n[commonmark](https://cran.r-project.org/web/packages/commonmark/index.html)\npackage to wrap and reformat to markdown text. Using commonmark means that it\ncan wrap links and markdown lists. The package does some additional work to\nhandle inline R Markdown.\n\n## Overview\n\nHere is some nice looking RMarkdown:\n\n```\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum a `r max(iris$Sepal.Length)`, viverra nisl at, luctus ante = `r length(letters) * 2 + 100`.\n```\n\nYou highlight the text, and hit `Ctrl/Cmd + Shift + /` to wrap the text and get:\n\n```\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum a `r\nmax(iris$Sepal.Length)`, viverra nisl at, luctus ante = `r length(letters) * 2 +\n100`.\n```\n\nThis RStudio Addin wraps text, but doesn't insert line breaks into inline R\ncode, yielding:\n\n```\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum\na `r max(iris$Sepal.Length)`, viverra nisl at, luctus ante =\n`r length(letters) * 2 + 100`.\n```\n\n![An animation of the above](demo.gif)\n\n## Notes\n\nThen go to Tools \u003e Addins in RStudio to select and configure addins. I've mapped \nthis one addin to the shortcut `Ctrl + Shift + Alt + /`.\n\nThe package wraps lines using a maximum width set by `options(\"WrapRmd.width\")`\nwhich currently defaults to `80` characters.\n\nIt should work on multiple paragraphs:\n\n![Animation of wrapping paragraphs separately](multi_paragraph.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjmahr%2Fwraprmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftjmahr%2Fwraprmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjmahr%2Fwraprmd/lists"}