{
  "_id": "6a1022d3acfb0bcc41c8d330",
  "Package": "rformat",
  "Type": "Package",
  "Title": "Base R Code Formatter",
  "Version": "0.1.0",
  "Authors@R": "c(person(\"Troy\", \"Hernandez\", role = c(\"aut\", \"cre\"),\nemail = \"troy@cornball.ai\",\ncomment = c(ORCID = \"0009-0005-4248-604X\")),\nperson(\"Dirk\", \"Eddelbuettel\", role = \"ctb\",\ncomment = c(ORCID = \"0000-0001-6419-907X\")))",
  "Description": "A minimal R code formatter following base R style\nconventions. Formats R code with consistent spacing,\nindentation, and structure.",
  "License": "GPL-3",
  "URL": "https://github.com/cornball-ai/rformat",
  "BugReports": "https://github.com/cornball-ai/rformat/issues",
  "Encoding": "UTF-8",
  "VignetteBuilder": "simplermarkdown",
  "Repository": "https://cornball-ai.r-universe.dev",
  "Date/Publication": "2026-05-14 00:49:20 UTC",
  "RemoteUrl": "https://github.com/cornball-ai/rformat",
  "RemoteRef": "HEAD",
  "RemoteSha": "3ec63940cc7b6ab27bc82d32464c5ec9029c59f2",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-14 04:43:31 UTC",
    "User": "root"
  },
  "Author": "Troy Hernandez [aut, cre] (ORCID:\n<https://orcid.org/0009-0005-4248-604X>),\nDirk Eddelbuettel [ctb] (ORCID:\n<https://orcid.org/0000-0001-6419-907X>)",
  "Maintainer": "Troy Hernandez <troy@cornball.ai>",
  "MD5sum": "4c6c1cb1f44441a3c4db7269e6a5340a",
  "_user": "cornball-ai",
  "_type": "src",
  "_file": "rformat_0.1.0.tar.gz",
  "_fileid": "e0b8c2a51a4313073dc4967e2aaf55b37bf5603dc74052e46ebb4dbf3a71f86a",
  "_filesize": 183124,
  "_sha256": "e0b8c2a51a4313073dc4967e2aaf55b37bf5603dc74052e46ebb4dbf3a71f86a",
  "_created": "2026-05-14T04:43:31.000Z",
  "_published": "2026-05-22T09:33:07.733Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77353489708,
      "time": 135,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6987340839"
    },
    {
      "job": 77353489423,
      "time": 132,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6987339781"
    },
    {
      "job": 77353489437,
      "time": 121,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6987337584"
    },
    {
      "job": 77353489372,
      "time": 134,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6987341181"
    },
    {
      "job": 77353489795,
      "time": 128,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6987338783"
    },
    {
      "job": 77353489761,
      "time": 179,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6987348321"
    },
    {
      "job": 77353489678,
      "time": 96,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6987333068"
    },
    {
      "job": 77353489397,
      "time": 315,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6987373921"
    },
    {
      "job": 77353488500,
      "time": 185,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6987315763"
    },
    {
      "job": 77353488797,
      "time": 106,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7157354206"
    },
    {
      "job": 77353489217,
      "time": 119,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6987336940"
    },
    {
      "job": 77353489653,
      "time": 114,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6987336385"
    },
    {
      "job": 77353489757,
      "time": 115,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6987336411"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/25842055827",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cornball-ai/rformat",
  "_commit": {
    "id": "3ec63940cc7b6ab27bc82d32464c5ec9029c59f2",
    "author": "Troy Hernandez <troy@cornball.ai>",
    "committer": "GitHub <noreply@github.com>",
    "message": "wrap_long_calls: re-pack already-wrapped calls so first arg lands on the call line (#30)\n\nThe wrap=paren mode used to bail on any call whose close paren was\nalready on a different line from the call line. As a result, code\nwritten as\n\n    new_session(\n        channel = \"console\",\n        provider = provider\n    )\n\nstayed in that shape and the serialization pass applied paren-column\nindent to the orphaned args, producing a hyper-indented output that\ndoesn't match what wrap=paren is supposed to do.\n\nThis change lets wrap_long_calls re-pack already-wrapped calls. The\ngreedy packer now puts the first arg on the call line, aligns\nsubsequent args under it, and tucks the close paren against the last\narg. Three guards keep the behavior safe:\n\n  1. Calls containing comments are skipped (comments need their own\n     line; collapse_calls already does this).\n  2. Re-packing is skipped when the first arg alone wouldn't fit on\n     the call line within line_limit, or when any resulting line\n     would exceed the limit. This preserves the existing layout for\n     deeply nested data literals where the greedy packer would\n     otherwise jam huge args onto one line.\n  3. The line-shift handling captures pre-shift token positions so\n     close-line trailing content (and tokens that shift into\n     old_close_line) are accounted for correctly.\n\nR/ast_wrap.R is updated to mirror the C++ logic; 6 new regression\ntests cover the single-line wrapped collapse, multi-line re-pack,\ncomment preservation, and trailing-content cases. All 139 tests pass.\n\nDeeply nested data structures (e.g. a 3x3x3 tensor of nested lists)\nstill stay in their existing hyper-indented form because the safety\nguard refuses to re-pack when the first arg won't fit. A follow-up\npull-up algorithm that preserves internal multi-line structure is\nneeded for those cases; tracked separately.",
    "time": 1778719760
  },
  "_maintainer": {
    "name": "Troy Hernandez",
    "email": "troy@cornball.ai",
    "login": "troyhernandez",
    "uuid": 5670773
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "tinytest",
      "role": "Suggests"
    },
    {
      "package": "simplermarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cornball-ai",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-04",
      "n": 13
    },
    {
      "week": "2026-05",
      "n": 7
    },
    {
      "week": "2026-06",
      "n": 2
    },
    {
      "week": "2026-08",
      "n": 16
    },
    {
      "week": "2026-09",
      "n": 19
    },
    {
      "week": "2026-10",
      "n": 9
    },
    {
      "week": "2026-11",
      "n": 2
    },
    {
      "week": "2026-13",
      "n": 1
    },
    {
      "week": "2026-15",
      "n": 1
    },
    {
      "week": "2026-20",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 4,
  "_contributors": [
    {
      "user": "troyhernandez",
      "count": 67,
      "uuid": 5670773
    },
    {
      "user": "eddelbuettel",
      "count": 7,
      "uuid": 673121
    }
  ],
  "_userbio": {
    "uuid": 153995987,
    "type": "organization",
    "name": "cornball.ai"
  },
  "_downloads": {
    "count": 490,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/rformat"
  },
  "_devurl": "https://github.com/cornball-ai/rformat",
  "_searchresults": 4,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/rformat.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/cornball-ai/rformat",
  "_realowner": "cornball-ai",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-03-09"
    }
  ],
  "_exports": [
    "rformat",
    "rformat_dir",
    "rformat_file"
  ],
  "_help": [
    {
      "page": "rformat",
      "title": "Format R Code",
      "topics": [
        "rformat"
      ]
    },
    {
      "page": "rformat_dir",
      "title": "Format R Files in Directory",
      "topics": [
        "rformat_dir"
      ]
    },
    {
      "page": "rformat_file",
      "title": "Format R File",
      "topics": [
        "rformat_file"
      ]
    }
  ],
  "_readme": "https://github.com/cornball-ai/rformat/raw/HEAD/README.md",
  "_rundeps": [
    "Rcpp"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "rformat-options.md",
      "filename": "rformat-options.html",
      "title": "Formatting Options",
      "engine": "simplermarkdown::mdweave_to_html",
      "headings": [
        "title: \"Formatting Options\"",
        "Formatting Options",
        "Default formatting",
        "indent",
        "line_limit",
        "wrap",
        "brace_style",
        "control_braces",
        "expand_if",
        "else_same_line",
        "join_else",
        "function_space",
        "Combining options",
        "Formatting files and directories"
      ],
      "created": "2026-03-03 22:53:49",
      "modified": "2026-03-04 19:13:33",
      "commits": 2
    },
    {
      "source": "r-core-style.md",
      "filename": "r-core-style.html",
      "title": "R Core Style Analysis",
      "engine": "simplermarkdown::mdweave_to_html",
      "headings": [
        "title: \"R Core Style Analysis\"",
        "R Core Style Analysis",
        "Method",
        "Results: Base R (15 packages, excluding translations)",
        "Brace style",
        "Indentation",
        "Space after function",
        "Function signatures",
        "Results: Base + Recommended (30 packages)",
        "Control flow bodies",
        "} else placement",
        "Source examples",
        "Key findings",
        "External references",
        "rformat defaults"
      ],
      "created": "2026-01-23 22:12:10",
      "modified": "2026-03-04 19:13:33",
      "commits": 9
    },
    {
      "source": "stress-test.md",
      "filename": "stress-test.html",
      "title": "Stress Testing rformat",
      "engine": "simplermarkdown::mdweave_to_html",
      "headings": [
        "title: \"Stress Testing rformat\"",
        "Stress Testing rformat",
        "Correctness Invariants",
        "Why These Tests Matter",
        "Test Methodology",
        "Randomized Parameters",
        "Running the Stress Test",
        "Package List",
        "Results",
        "Summary",
        "Bugs Found and Fixed",
        "Tab-expanded column positions",
        "Long string truncation",
        "ELSE search crosses brace boundaries",
        "Braced false body collapsed",
        "Nested call wrap corruption",
        "Comment transparency in bare body detection",
        "Idempotency Design"
      ],
      "created": "2026-02-21 16:04:38",
      "modified": "2026-03-03 22:53:49",
      "commits": 2
    }
  ],
  "_score": 5.778151250383644,
  "_indexed": true,
  "_nocasepkg": "rformat",
  "_universes": [
    "cornball-ai",
    "troyhernandez"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-14T04:45:46.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "3ec63940cc7b6ab27bc82d32464c5ec9029c59f2",
      "fileid": "8d0df48f044be0d36295e7833204d05d90a801120c030879c1ffccdb5b01984f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/25842055827"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-14T04:45:36.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "3ec63940cc7b6ab27bc82d32464c5ec9029c59f2",
      "fileid": "7590fb929c3a1c70d163b4af3e838d8a23712470fb49dc5d39ebe879eece5335",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/25842055827"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-14T04:45:31.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "3ec63940cc7b6ab27bc82d32464c5ec9029c59f2",
      "fileid": "85379b884e710870e85b55dc527635a99358a8e75f771a0a8439066d69d66f05",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/25842055827"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-14T04:45:45.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "3ec63940cc7b6ab27bc82d32464c5ec9029c59f2",
      "fileid": "34a2f71bb57350dfb2dcd44fcfa1b9aebbbd850c67fd4d17c10179f08485d6f1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/25842055827"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-14T04:45:23.000Z",
      "arch": "aarch64",
      "commit": "3ec63940cc7b6ab27bc82d32464c5ec9029c59f2",
      "fileid": "a25cee34b2c8dc75960f79cc357669cd7e471941ae2a41d8c597fcf57e763a79",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/25842055827"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-14T04:46:04.000Z",
      "arch": "x86_64",
      "commit": "3ec63940cc7b6ab27bc82d32464c5ec9029c59f2",
      "fileid": "970eb81f9364e31de7e8338051a6e8c65adbe64aafff3701ce932f4ba9a4b82a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/25842055827"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-14T04:45:08.000Z",
      "arch": "aarch64",
      "commit": "3ec63940cc7b6ab27bc82d32464c5ec9029c59f2",
      "fileid": "11f2e4cf190bd6f814e18e1bc33a2b7eed50a31df9deaab6a53e87e64ff42eec",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/25842055827"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-14T04:47:33.000Z",
      "arch": "x86_64",
      "commit": "3ec63940cc7b6ab27bc82d32464c5ec9029c59f2",
      "fileid": "8be2d8b325c03976554fcd62e7713e6a2c2f0f659b07998d6449b67f05580ba3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/25842055827"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-14T04:44:56.000Z",
      "arch": "x86_64",
      "commit": "3ec63940cc7b6ab27bc82d32464c5ec9029c59f2",
      "fileid": "2393bba859af480596090c2ada888ae19374a20a50c733b0f5606f587bcc1717",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/25842055827"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-14T04:44:46.000Z",
      "arch": "x86_64",
      "commit": "3ec63940cc7b6ab27bc82d32464c5ec9029c59f2",
      "fileid": "b57ca2a0496cfaf1640faf833169e564493ad3c8015da6468cfb6cf591f9bec5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/25842055827"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-14T04:44:48.000Z",
      "arch": "x86_64",
      "commit": "3ec63940cc7b6ab27bc82d32464c5ec9029c59f2",
      "fileid": "6855edd3542dac6be1d6237a1c8c8015c74022d64bb8009eb16ca7f0b1407572",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/25842055827"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-05-22T09:32:38.000Z",
      "arch": "emscripten",
      "commit": "3ec63940cc7b6ab27bc82d32464c5ec9029c59f2",
      "fileid": "28f379bdf9a2221554476e16f96898f0d3e1c8f28bba77ee3cd273e4000e4871",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cornball-ai/actions/runs/25842055827"
    }
  ]
}