{"id":14069058,"url":"https://github.com/r-lib/prettycode","last_synced_at":"2025-04-09T07:04:25.124Z","repository":{"id":13182224,"uuid":"73816427","full_name":"r-lib/prettycode","owner":"r-lib","description":"Syntax highlight R code in the terminal","archived":false,"fork":false,"pushed_at":"2024-10-05T14:59:14.000Z","size":1443,"stargazers_count":102,"open_issues_count":3,"forks_count":9,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-02T05:56:18.330Z","etag":null,"topics":["r"],"latest_commit_sha":null,"homepage":"https://r-lib.github.io/prettycode/","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/r-lib.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/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":"2016-11-15T13:30:58.000Z","updated_at":"2025-01-21T23:38:37.000Z","dependencies_parsed_at":"2024-11-09T21:08:10.732Z","dependency_job_id":"bd79cbae-9c27-46ca-a4a3-ff929148c654","html_url":"https://github.com/r-lib/prettycode","commit_stats":{"total_commits":43,"total_committers":5,"mean_commits":8.6,"dds":0.2558139534883721,"last_synced_commit":"cf23660ae58f6174f62ef68e73f58fb25966d946"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fprettycode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fprettycode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fprettycode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lib%2Fprettycode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r-lib","download_url":"https://codeload.github.com/r-lib/prettycode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247994120,"owners_count":21030050,"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":["r"],"created_at":"2024-08-13T07:06:34.651Z","updated_at":"2025-04-09T07:04:25.104Z","avatar_url":"https://github.com/r-lib.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"\n# prettycode\n\n\u003e Pretty Print R Code in the Terminal\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/r-lib/prettycode/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/r-lib/prettycode/actions/workflows/R-CMD-check.yaml)\n[![](https://www.r-pkg.org/badges/version/prettycode)](https://www.r-pkg.org/pkg/prettycode)\n[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/prettycode)](https://www.r-pkg.org/pkg/prettycode)\n[![Codecov test coverage](https://codecov.io/gh/r-lib/prettycode/branch/main/graph/badge.svg)](https://app.codecov.io/gh/r-lib/prettycode?branch=main)\n\u003c!-- badges: end --\u003e\n\nReplace the standard print method for functions with one that performs\nsyntax highlighting, using ANSI colors, if the terminal supports them.\n\n## Installation\n\nStable version:\n\n```r\ninstall.packages(\"prettycode\")\n```\n\nDevelopment version:\n\n```r\npak::pak(\"r-lib/prettycode\")\n```\n\n## Usage\n\nJust call `prettycode::prettycode()` and start printing functions to the\nscreen. Long functions are automatically paged using the default pager.\n\n![](/screenshot.png)\n\n### Options\n\n  - `prettycode.should_page` controls paging. Use `FALSE` to disable paging for long functions.\n\n## License\n\nMIT © Gábor Csárdi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-lib%2Fprettycode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr-lib%2Fprettycode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-lib%2Fprettycode/lists"}