{"id":15975939,"url":"https://github.com/gadenbuie/lorem","last_synced_at":"2025-03-17T15:31:58.953Z","repository":{"id":76832879,"uuid":"213234692","full_name":"gadenbuie/lorem","owner":"gadenbuie","description":"Generate Lorem Ipsum Text","archived":false,"fork":false,"pushed_at":"2023-03-10T16:15:37.000Z","size":567,"stargazers_count":30,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2023-11-20T16:02:50.941Z","etag":null,"topics":["lorem-ipsum","lorem-ipsum-generator","r-pkg","rstats","rstudio","rstudio-addin"],"latest_commit_sha":null,"homepage":"http://pkg.garrickadenbuie.com/lorem/","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/gadenbuie.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","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,"publiccode":null,"codemeta":null}},"created_at":"2019-10-06T19:58:21.000Z","updated_at":"2023-08-23T19:43:05.000Z","dependencies_parsed_at":"2024-10-07T22:06:36.613Z","dependency_job_id":"29e6fd90-cd5c-4893-b9e4-1cc8cd1ebce0","html_url":"https://github.com/gadenbuie/lorem","commit_stats":{"total_commits":48,"total_committers":3,"mean_commits":16.0,"dds":0.1875,"last_synced_commit":"79113db73d002a0f486f3670881fe5e03a7e88da"},"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gadenbuie%2Florem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gadenbuie%2Florem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gadenbuie%2Florem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gadenbuie%2Florem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gadenbuie","download_url":"https://codeload.github.com/gadenbuie/lorem/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243869376,"owners_count":20361004,"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":["lorem-ipsum","lorem-ipsum-generator","r-pkg","rstats","rstudio","rstudio-addin"],"created_at":"2024-10-07T22:06:32.087Z","updated_at":"2025-03-17T15:31:58.662Z","avatar_url":"https://github.com/gadenbuie.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)\nset.seed(424342)\n```\n\n# lorem::ipsum()\n\n\u003c!-- badges: start --\u003e\n[![CRAN status](https://www.r-pkg.org/badges/version/lorem)](https://CRAN.R-project.org/package=lorem)\n[![lorem r-universe badge](https://gadenbuie.r-universe.dev/badges/lorem)](https://gadenbuie.r-universe.dev/lorem)\n[![R-CMD-check](https://github.com/gadenbuie/lorem/actions/workflows/check-standard.yaml/badge.svg)](https://github.com/gadenbuie/lorem/actions/workflows/check-standard.yaml)\n\u003c!-- badges: end --\u003e\n\n* Quickly generate lorem ipsum placeholder text with `lorem::ipsum()`.\n\n* Easy to integrate in RMarkdown documents.\n\n* Includes an RStudio addin to insert *lorem ipsum* into the current document.\n\n## Installation\n\nYou can install the latest released version of lorem from CRAN\n\n``` r\ninstall.packages(\"lorem\")\n```\n\nor the current development version of lorem from GitHub or r-universe\n\n``` r\n# GitHub\n# install.packages(\"remotes\")\nrmeotes::install_github(\"gadenbuie/lorem\")\n\n# R Universe\ninstall.packages('lorem', repos = c('https://gadenbuie.r-universe.dev', 'https://cloud.r-project.org'))\n```\n\n## Usage\n\n### RStudio Addin\n\n**lorem** includes a simple addin for RStudio that\nadds placeholder _lorem ipsum_ text to the current source document.\nThe addin allows you to specify the number of desired paragraphs and sentences.\n\n### R Markdown\n\nAnother way to generate _lorem ipsum_ placeholder text is to call\n`lorem::ipsum()` in an inline R chunk in R Markdown.\n\n```markdown\n`r knitr::inline_expr(\"lorem::ipsum(paragraphs = 2)\")`\n```\n\n`r paste(\"\u003e\", lorem::ipsum(2), collapse = \"\\n\u003e\\n\")`\n\nYou can control the number of `paragraphs` and `sentences` per paragraph.\n\n```markdown\n`r knitr::inline_expr(\"lorem::ipsum(paragraphs = 3, sentences = c(1, 2, 3))\")`\n```\n\n`r paste(\"\u003e\", lorem::ipsum(3, 1:3), collapse = \"\\n\u003e\\n\")`\n\nYou can also adjust the `avg_words_per_sentence` to create long or short paragraphs.\n\n```markdown\n`r knitr::inline_expr(\"lorem::ipsum(2, avg_words_per_sentence = 3)\")`\n```\n\n`r paste(\"\u003e\", lorem::ipsum(paragraphs = 2, avg_words_per_sentence = 3), collapse = \"\\n\u003e\\n\")`\n\n\n```markdown\n`r knitr::inline_expr(\"lorem::ipsum(1, avg_words_per_sentence = 20)\")`\n```\n\n`r paste(\"\u003e\", lorem::ipsum(1, 2, avg_words_per_sentence = 20), collapse = \"\\n\u003e\\n\")`\n\n### Everywhere Else\n\nGenerate _lorem ipsum_ anywhere else using `lorem::ipsum()` or `lorem::ipsum_words()`.\n\n```{r results='asis'}\nipsum_items \u003c- replicate(5, lorem::ipsum_words(5))\ncat(paste(\"-\", ipsum_items), sep = \"\\n\")\n```\n\n## Ipsum gratiam\n\nThank you to\n[Luke Haas](https://getlorem.com)\nfor the node module\n[getlorem](https://github.com/lukehaas/getlorem)\nand for providing the lorem ipsum word list used in this package.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgadenbuie%2Florem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgadenbuie%2Florem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgadenbuie%2Florem/lists"}