{
  "_id": "6ad208f4c96d212026e707a2",
  "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-10-16 11:14:11 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>",
  "_user": "freguglia",
  "_type": "src",
  "_file": "bacontrees_1.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/c793c9f10d2f5c9c80ab70bd527df6f63868f6d9cc0175fdbac20f9b8a579db3",
  "_filesize": 190838,
  "_sha256": "c793c9f10d2f5c9c80ab70bd527df6f63868f6d9cc0175fdbac20f9b8a579db3",
  "_expires": "2027-01-24T11:22:26.000Z",
  "_created": "2026-10-16T11:14:11.000Z",
  "_published": "2026-10-16T11:22:28.056Z",
  "_buildurl": "https://github.com/r-universe/freguglia/actions/runs/38892046582",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 116945107049,
      "time": 146,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12042586581"
    },
    {
      "job": 116945106906,
      "time": 178,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12042576883"
    },
    {
      "job": 116945107097,
      "time": 155,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12042023835"
    },
    {
      "job": 116945107058,
      "time": 184,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12042472966"
    },
    {
      "job": 116945107211,
      "time": 151,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12042801305"
    },
    {
      "job": 116945107163,
      "time": 362,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12042517456"
    },
    {
      "job": 116945107114,
      "time": 166,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12042308667"
    },
    {
      "job": 116945107013,
      "time": 254,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12042816301"
    },
    {
      "job": 116943746652,
      "time": 224,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12041928661"
    },
    {
      "job": 116945107044,
      "time": 110,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12041684033"
    },
    {
      "job": 116945106747,
      "time": 248,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12042049790"
    },
    {
      "job": 116945106884,
      "time": 176,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12042507285"
    },
    {
      "job": 116945107224,
      "time": 144,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12042810690"
    },
    {
      "job": 116945106944,
      "time": 300,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12042244856"
    },
    {
      "job": 116945107173,
      "time": 157,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12042611615"
    }
  ],
  "_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",
    "description": "Assistant Professor - Department of Statistics - University of Campinas.",
    "uuid": 26393042,
    "orcid": "0000-0002-6189-4453"
  },
  "_distro": "resolute",
  "_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-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",
    "followers": 42,
    "description": "Assistant Professor - Department of Statistics - University of Campinas."
  },
  "_downloads": {
    "count": 358,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bacontrees"
  },
  "_devurl": "https://github.com/freguglia/bacontrees",
  "_searchresults": 3,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/bacontrees.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_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": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 3.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "bacontrees",
  "_universes": [
    "freguglia"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-16T11:16:23.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "https://r2.ropensci.org/1e4e4d8caf007a15ed64f9761ba5b30df5e778dc1aed0e5372239a76aa191fc2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/38892046582"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-16T11:16:37.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "https://r2.ropensci.org/c271ef982d5380fc3e191568f44d54ca44e281abb5b632836c6934df38b703c6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/38892046582"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-16T11:16:27.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "https://r2.ropensci.org/aac286400cf2f274f099d4d21ce8579007f19fe593676fdfebadee3aa461fd80",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/38892046582"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-10-16T11:16:39.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "https://r2.ropensci.org/189d0dd6fcf2570f070cff802b0eab82d9a9437c28f27900000e516a18543da2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/38892046582"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-16T11:17:51.000Z",
      "arch": "aarch64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "https://r2.ropensci.org/7a24327f473a740b26572a49f69198b347e507b89982d83c0d24cb5adb7d9298",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/38892046582"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-16T11:19:21.000Z",
      "arch": "x86_64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "https://r2.ropensci.org/d50a25b3f068dda8ef1c4216aab3636a3aa8c5651e6294effae18ff91a855d63",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/38892046582"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-16T11:16:47.000Z",
      "arch": "aarch64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "https://r2.ropensci.org/3be9b9c11f2c38df41fe82409b75a069abc5045704ce93b0b58f31e599a939ea",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/38892046582"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-10-16T11:17:42.000Z",
      "arch": "x86_64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "https://r2.ropensci.org/ce7fc3debbdc682604e9fa4fd2a73c8bc9a17484427d71839529ff6846961b01",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/38892046582"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-10-16T11:16:30.000Z",
      "arch": "emscripten",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "https://r2.ropensci.org/b132264bc52bd616204e4f8a10316521b3692aa7f1ee01c4c9a8ab81fe569d82",
      "status": "success",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/38892046582"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-16T11:17:41.000Z",
      "arch": "aarch64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "https://r2.ropensci.org/2da0aedc4c503eefa126af6f17d8e82416a5b7c857f83c006dfffa1852cdae97",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/38892046582"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-16T11:15:34.000Z",
      "arch": "x86_64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "https://r2.ropensci.org/98a4822d31856792cd0b87fbecd2872c055dac43032394555760544a36fc412f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/38892046582"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-16T11:15:36.000Z",
      "arch": "x86_64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "https://r2.ropensci.org/d7a711e40c4a6fbf14bbe266784676ce444783d50104c4eb43a8e2067fecab89",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/38892046582"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-16T11:18:30.000Z",
      "arch": "aarch64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "https://r2.ropensci.org/b5130cf13cbeeedb1511cf35ac41f7def6ddc7a0dda16ec9bab8244c84ad92b9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/38892046582"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-10-16T11:15:47.000Z",
      "arch": "x86_64",
      "commit": "01e9bbbdc206491d9485ce134c1332d78f5362c9",
      "fileid": "https://r2.ropensci.org/b188a832b0ba28c91099a2fe4d27735be6414370eb834b23624b6fd47c647a7b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/freguglia/actions/runs/38892046582"
    }
  ]
}