{
  "_id": "6a10240bacfb0bcc41c8da6a",
  "Package": "bacontrees",
  "Title": "Bayesian Context Trees for Discrete Sequence Data",
  "Version": "1.0.0",
  "Authors@R": "c(\nperson(\"Victor\", \"Freguglia\", email = \"victorfreguglia@gmail.com\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-6189-4453\")),\nperson(\"Thiago\", \"Paulichen\",\nrole = \"ctb\",\ncomment = c(ORCID = \"0009-0002-5505-2409\")))",
  "Description": "Models discrete sequential data using Bayesian Context\nTrees. Context trees, also known as Variable Length Markov\nChains (VLMCs), are parsimonious Markov models where the order\nof dependence can vary with the observed past. Provides a\ngeneric 'R6' class structure that exposes the full tree for\nbuilding custom algorithms, exact Bayesian inference via a\nbottom-up recursive algorithm (closed-form marginal likelihood,\nMaximum A Posteriori (MAP) tree, exact posterior probabilities,\nand exact sampling from the posterior), a frequentist estimator\nvia the context algorithm with likelihood-ratio pruning,\nsimulation utilities, and a Metropolis-Hastings sampler. See\nPaulichen and Freguglia (2026) <doi:10.48550/arXiv.2603.25806>.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "libfontconfig1-dev libfreetype6-dev libglpk-dev\nlibicu-dev libxml2-dev",
  "Repository": "https://freguglia.r-universe.dev",
  "Date/Publication": "2026-05-07 21:31:10 UTC",
  "RemoteUrl": "https://github.com/freguglia/bacontrees",
  "RemoteRef": "HEAD",
  "RemoteSha": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-13 10:59:53 UTC",
    "User": "root"
  },
  "Author": "Victor Freguglia [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-6189-4453>),\nThiago Paulichen [ctb] (ORCID: <https://orcid.org/0009-0002-5505-2409>)",
  "Maintainer": "Victor Freguglia <victorfreguglia@gmail.com>",
  "MD5sum": "2733471bce765b0e7b81edbedd8faa9b",
  "_user": "freguglia",
  "_type": "src",
  "_file": "bacontrees_1.0.0.tar.gz",
  "_fileid": "fed2fe4b47878a858537d47fe2f5a836e1f383b9aca3b0cb50aa45945e5abdb8",
  "_filesize": 193524,
  "_sha256": "fed2fe4b47878a858537d47fe2f5a836e1f383b9aca3b0cb50aa45945e5abdb8",
  "_created": "2026-05-13T10:59:53.000Z",
  "_published": "2026-05-22T09:38:19.005Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77354156276,
      "time": 224,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6968342128"
    },
    {
      "job": 77354155974,
      "time": 212,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6968337355"
    },
    {
      "job": 77354156170,
      "time": 232,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6968344444"
    },
    {
      "job": 77354156428,
      "time": 193,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6968330995"
    },
    {
      "job": 77354156511,
      "time": 177,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6968325681"
    },
    {
      "job": 77354156411,
      "time": 297,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6968366159"
    },
    {
      "job": 77354155877,
      "time": 143,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6968313807"
    },
    {
      "job": 77354156279,
      "time": 337,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6968380153"
    },
    {
      "job": 77354155648,
      "time": 206,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6968264109"
    },
    {
      "job": 77354155412,
      "time": 145,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7157443891"
    },
    {
      "job": 77354156174,
      "time": 169,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6968322685"
    },
    {
      "job": 77354156489,
      "time": 153,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6968317094"
    },
    {
      "job": 77354155936,
      "time": 151,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6968317037"
    }
  ],
  "_buildurl": "https://github.com/r-universe/freguglia/actions/runs/25794722894",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/freguglia/bacontrees",
  "_commit": {
    "id": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
    "author": "Freguglia <victorfreguglia@gmail.com>",
    "committer": "Freguglia <victorfreguglia@gmail.com>",
    "message": "Updates documentation from CRAN.\n",
    "time": 1778189470
  },
  "_maintainer": {
    "name": "Victor Freguglia",
    "email": "victorfreguglia@gmail.com",
    "login": "freguglia",
    "linkedin": "in/victor-freguglia-aa0335160",
    "uuid": 26393042,
    "orcid": "0000-0002-6189-4453"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "R6",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "progressr",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "igraph",
      "role": "Imports"
    },
    {
      "package": "ggraph",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "Brobdingnag",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "freguglia",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-41",
      "n": 2
    },
    {
      "week": "2025-43",
      "n": 1
    },
    {
      "week": "2025-47",
      "n": 2
    },
    {
      "week": "2025-48",
      "n": 31
    },
    {
      "week": "2025-49",
      "n": 6
    },
    {
      "week": "2026-14",
      "n": 12
    },
    {
      "week": "2026-15",
      "n": 1
    },
    {
      "week": "2026-16",
      "n": 1
    },
    {
      "week": "2026-17",
      "n": 1
    },
    {
      "week": "2026-18",
      "n": 5
    },
    {
      "week": "2026-19",
      "n": 4
    }
  ],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "freguglia",
      "count": 149,
      "uuid": 26393042
    },
    {
      "user": "paulichent",
      "count": 2,
      "uuid": 141984967
    }
  ],
  "_userbio": {
    "uuid": 26393042,
    "type": "user",
    "name": "Victor Freguglia",
    "description": "Assistant Professor - Department of Statistics - University of Campinas."
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bacontrees"
  },
  "_devurl": "https://github.com/freguglia/bacontrees",
  "_searchresults": 3,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/bacontrees.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/freguglia/bacontrees",
  "_realowner": "freguglia",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2026-05-12"
    }
  ],
  "_exports": [
    "baConTree",
    "ContextTree",
    "fit_vlmc",
    "metropolis_vlmc",
    "rvlmc",
    "Sequence"
  ],
  "_datasets": [
    {
      "name": "abc_list",
      "title": "Simulated Sequence Data from a Variable Length Markov Chain (VLMC)",
      "object": "abc_list",
      "class": [
        "list"
      ],
      "fields": [],
      "table": true,
      "tojson": true
    },
    {
      "name": "abc_vec",
      "title": "Simulated Sequence Data from a Variable Length Markov Chain (VLMC)",
      "object": "abc_vec",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "abc_data",
      "title": "Simulated Sequence Data from a Variable Length Markov Chain (VLMC)",
      "topics": [
        "abc_data",
        "abc_list",
        "abc_vec"
      ]
    },
    {
      "page": "baConTree",
      "title": "Bayesian Context Tree R6 Class",
      "topics": [
        "baConTree"
      ]
    },
    {
      "page": "ContextTree",
      "title": "ContextTree R6 Class",
      "topics": [
        "ContextTree"
      ]
    },
    {
      "page": "fit_vlmc",
      "title": "Fit a Variable Length Markov Chain (VLMC) via Context Algorithm",
      "topics": [
        "fit_vlmc"
      ]
    },
    {
      "page": "metropolis_vlmc",
      "title": "Metropolis-Hastings Posterior Sampling for Context Trees",
      "topics": [
        "metropolis_vlmc"
      ]
    },
    {
      "page": "plot.baConTree",
      "title": "Plot method for baConTree class",
      "topics": [
        "plot.baConTree"
      ]
    },
    {
      "page": "plot.ContextTree",
      "title": "Plot method for ContextTree class",
      "topics": [
        "plot.ContextTree"
      ]
    },
    {
      "page": "rvlmc",
      "title": "Generate a sequence based on a Variable Length Markov Chain (VLMC)",
      "topics": [
        "rvlmc"
      ]
    },
    {
      "page": "Sequence",
      "title": "Sequence Class",
      "topics": [
        "Sequence"
      ]
    },
    {
      "page": "TreeNode",
      "title": "TreeNode Class",
      "topics": [
        "TreeNode"
      ]
    }
  ],
  "_readme": "https://github.com/freguglia/bacontrees/raw/HEAD/README.md",
  "_rundeps": [
    "base64enc",
    "Brobdingnag",
    "cachem",
    "cli",
    "cpp11",
    "digest",
    "dplyr",
    "farver",
    "fastmap",
    "generics",
    "ggforce",
    "ggplot2",
    "ggraph",
    "ggrepel",
    "glue",
    "graphlayouts",
    "gridExtra",
    "gtable",
    "igraph",
    "isoband",
    "jsonlite",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "memoise",
    "pillar",
    "pkgconfig",
    "polyclip",
    "progressr",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "systemfonts",
    "tibble",
    "tidygraph",
    "tidyr",
    "tidyselect",
    "tweenr",
    "utf8",
    "vctrs",
    "viridis",
    "viridisLite",
    "withr"
  ],
  "_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"
    }
  ],
  "_score": 3.7403626894942437,
  "_indexed": true,
  "_nocasepkg": "bacontrees",
  "_universes": [
    "freguglia"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-13T11:03:05.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "961fc8e614a0b9f6e017c460b7f46096f5fa3af05a9a257abded742ded0b8511",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/25794722894"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-13T11:02:48.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "15bffd3fcc7c59ec23e88c55bd52799d164d27cd420f968009cad18d4d85c040",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/25794722894"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-13T11:03:15.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "61be43684969988c9c125bcfc8368d6cd33169c53d7855f8f30398004b7dff7f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/25794722894"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-13T11:02:32.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "7ae7d35fdab9634063242467b7bb8461509c90608d7b070259ea46c460b6a801",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/25794722894"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-13T11:02:11.000Z",
      "arch": "aarch64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "f4807d0cdbbdd637cb98b3e7fa6015e7c37b6a4883fab55735c76c8c2cdc4135",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/25794722894"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-13T11:03:11.000Z",
      "arch": "x86_64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "7e4e15a491469a9df65fa8025ab4616e4b05b9e106f14812a37c162d052ffcf8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/25794722894"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-13T11:01:50.000Z",
      "arch": "aarch64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "9295e114de0cb1ee11ebd504c62ad14b5e8feca2665ff8bcb441cd0425c9093e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/25794722894"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-13T11:04:08.000Z",
      "arch": "x86_64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "88f91bf0f46a6bee67375b0787413fceedd47622ff6914e1e2c5a645578c96eb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/25794722894"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-13T11:01:26.000Z",
      "arch": "x86_64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "99aac66da8141019da63e643c5494b24bfa6a2adc08f33b45c9e84602f482946",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/25794722894"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-13T11:01:31.000Z",
      "arch": "x86_64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "bf56658e15132a1981d2fb5dd7e969d63165bf3170d93c846d47fb292dc77643",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/25794722894"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-13T11:01:20.000Z",
      "arch": "x86_64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "c18a21b77ab5bce9426527665ad5e5e0f630d2627dd7fb82d3cbe21b0e3b37c3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/25794722894"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-05-22T09:37:49.000Z",
      "arch": "emscripten",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "503d67971c51e49da98df113ae90ff3780d683a449f2a0c128578bd159a3a031",
      "status": "success",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/25794722894"
    }
  ]
}