{
  "_id": "6af60a16b90b31e79afd6884",
  "Package": "rtrees",
  "Title": "Deriving Phylogenies from Synthesis Trees",
  "Version": "2.0.3",
  "Authors@R": "person(given = \"Daijiang\",\nfamily = \"Li\",\nrole = c(\"aut\", \"cre\"),\nemail = \"daijianglee@gmail.com\",\ncomment = c(ORCID = \"0000-0002-0925-3421\"))",
  "Description": "Provides tools to derive species-level phylogenies from\nlarge synthesis mega-trees for a wide range of taxonomic\ngroups, including plants, birds, mammals, amphibians, reptiles,\nfish, bees, butterflies, and sharks. When a queried species is\nabsent from the mega-tree, it is grafted onto the tree using\none of two placement strategies: attachment at the basal node\nof the most closely related genus or family ('at_basal_node'),\nor random attachment below that basal node with probability\nproportional to branch length ('random_below_basal'). See Li\n(2023) <doi:10.1111/ecog.06643> for details. Multiple species\nfrom a genus not represented in the mega-tree are placed as a\npolytomy to preserve clade coherence. The package interfaces\nwith the 'megatrees' data package, which bundles or downloads\non demand curated mega-trees. Users can also provide their own\nmega-trees.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "URL": "https://daijiang.github.io/rtrees/",
  "VignetteBuilder": "knitr, R.rsp",
  "Config/roxygen2/version": "8.0.0",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev",
  "Repository": "https://daijiang.r-universe.dev",
  "Date/Publication": "2026-10-23 01:50:28 UTC",
  "RemoteUrl": "https://github.com/daijiang/rtrees",
  "RemoteRef": "HEAD",
  "RemoteSha": "3a3081da1d68754f4a956210b065b5ae731e83fa",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-11-12 18:39:11 UTC",
    "User": "root"
  },
  "Author": "Daijiang Li [aut, cre] (ORCID: <https://orcid.org/0000-0002-0925-3421>)",
  "Maintainer": "Daijiang Li <daijianglee@gmail.com>",
  "_user": "daijiang",
  "_type": "src",
  "_file": "rtrees_2.0.3.tar.gz",
  "_fileid": "https://r2.ropensci.org/d09fbfbee71bc531033711d37cdec4474a08fedb2698562e90140cdaffd44c49",
  "_filesize": 1982935,
  "_sha256": "d09fbfbee71bc531033711d37cdec4474a08fedb2698562e90140cdaffd44c49",
  "_expires": "2027-02-20T18:48:52.000Z",
  "_created": "2026-11-12T18:39:11.000Z",
  "_published": "2026-11-12T18:48:54.340Z",
  "_upstream": "https://github.com/daijiang/rtrees",
  "_status": "success",
  "_maintainer": {
    "name": "Daijiang Li",
    "email": "daijianglee@gmail.com",
    "login": "daijiang",
    "description": "",
    "uuid": 1696911,
    "orcid": "0000-0002-0925-3421"
  },
  "_jobs": [
    {
      "job": 131405951262,
      "time": 184,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13974350685"
    },
    {
      "job": 131405951308,
      "time": 217,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13972299779"
    },
    {
      "job": 131405951193,
      "time": 190,
      "config": "linux-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13972917336"
    },
    {
      "job": 131405951214,
      "time": 198,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13972533476"
    },
    {
      "job": 131405951202,
      "time": 141,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13973082439"
    },
    {
      "job": 131405951353,
      "time": 433,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13972369636"
    },
    {
      "job": 131405951233,
      "time": 211,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13973391696"
    },
    {
      "job": 131405951287,
      "time": 503,
      "config": "macos-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13972983066"
    },
    {
      "job": 131403493638,
      "time": 235,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13973136662"
    },
    {
      "job": 131405951076,
      "time": 134,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13974420289"
    },
    {
      "job": 131405951277,
      "time": 435,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13973557205"
    },
    {
      "job": 131405951306,
      "time": 297,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13974435658"
    },
    {
      "job": 131405951248,
      "time": 243,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13973812022"
    },
    {
      "job": 131405951298,
      "time": 453,
      "config": "windows-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13972269897"
    },
    {
      "job": 131405951243,
      "time": 216,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13973861563"
    }
  ],
  "_buildurl": "https://github.com/r-universe/daijiang/actions/runs/43281353309",
  "_commit": {
    "id": "3a3081da1d68754f4a956210b065b5ae731e83fa",
    "author": "daijiang <daijianglee@gmail.com>",
    "committer": "daijiang <daijianglee@gmail.com>",
    "message": "get_graft_status() always returns a table\n\nSet graft_status in the all-species-already-in-tree early return, and\nstack per-tree tables (with a tree column) for multiPhylo input.\n",
    "time": 1792720228
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "ape",
      "role": "Imports"
    },
    {
      "package": "tidytree",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "castor",
      "role": "Imports"
    },
    {
      "package": "furrr",
      "role": "Imports"
    },
    {
      "package": "future",
      "role": "Imports"
    },
    {
      "package": "megatrees",
      "version": ">= 0.1.3",
      "role": "Imports"
    },
    {
      "package": "fastmatch",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "piggyback",
      "role": "Suggests"
    },
    {
      "package": "R.rsp",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    }
  ],
  "_owner": "daijiang",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-11",
      "n": 1
    },
    {
      "week": "2026-18",
      "n": 4
    },
    {
      "week": "2026-20",
      "n": 2
    },
    {
      "week": "2026-21",
      "n": 9
    },
    {
      "week": "2026-22",
      "n": 3
    },
    {
      "week": "2026-23",
      "n": 2
    },
    {
      "week": "2026-38",
      "n": 1
    },
    {
      "week": "2026-43",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "phylogenetic-trees",
    "cpp"
  ],
  "_stars": 35,
  "_contributors": [
    {
      "user": "daijiang",
      "count": 111,
      "uuid": 1696911
    }
  ],
  "_userbio": {
    "uuid": 1696911,
    "type": "user",
    "name": "Daijiang Li",
    "followers": 143
  },
  "_downloads": {
    "count": 303,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/rtrees"
  },
  "_devurl": "https://github.com/daijiang/rtrees",
  "_pkgdown": "https://daijiang.github.io/rtrees/",
  "_searchresults": 107,
  "_abi": {
    "exports": [],
    "imports": [
      {
        "key": "Rcpp::Rcpp_precious_preserve()",
        "hash": "33a97ea62b293da6"
      },
      {
        "key": "Rcpp::Rcpp_precious_remove()",
        "hash": "63d26947ba7e1377"
      },
      {
        "key": "Rcpp::dataptr()",
        "hash": "54e69ad2e6668c83"
      },
      {
        "key": "Rcpp::demangle()",
        "hash": "b0cfd6754c5ebc4e"
      },
      {
        "key": "Rcpp::enterRNGScope()",
        "hash": "a04a299137cef947"
      },
      {
        "key": "Rcpp::exitRNGScope()",
        "hash": "a04a299137cef947"
      },
      {
        "key": "Rcpp::rcpp_get_stack_trace()",
        "hash": "c684a9bbe15cdc52"
      },
      {
        "key": "Rcpp::rcpp_set_stack_trace()",
        "hash": "33a97ea62b293da6"
      }
    ]
  },
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md",
    "extra/rtrees.html"
  ],
  "_homeurl": "https://github.com/daijiang/rtrees",
  "_realowner": "daijiang",
  "_cranurl": true,
  "_releases": [
    {
      "version": "2.0.2",
      "date": "2026-06-11"
    }
  ],
  "_exports": [
    "add_root_info",
    "bind_tip",
    "bind_tip_df",
    "get_graft_status",
    "get_one_tree",
    "get_tree",
    "rm_stars",
    "sp_list_df"
  ],
  "_datasets": [
    {
      "name": "classifications",
      "title": "Classifications of species",
      "object": "classifications",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "genus",
        "family",
        "taxon"
      ],
      "rows": 54195,
      "table": true,
      "tojson": true
    },
    {
      "name": "taxa_supported",
      "title": "Taxonomic groups supported",
      "object": "taxa_supported",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "add_root_info",
      "title": "Add genus and family basal/root node information to a phylogeny",
      "topics": [
        "add_root_info"
      ]
    },
    {
      "page": "bind_tip",
      "title": "Bind a tip to a phylogeny",
      "topics": [
        "bind_tip"
      ]
    },
    {
      "page": "bind_tip_df",
      "title": "Bind a tip to a phylogeny (data frame version)",
      "topics": [
        "bind_tip_df"
      ]
    },
    {
      "page": "classifications",
      "title": "Classifications of species",
      "topics": [
        "classifications"
      ]
    },
    {
      "page": "get_graft_status",
      "title": "Extract grafting status information as a data frame",
      "topics": [
        "get_graft_status"
      ]
    },
    {
      "page": "get_one_tree",
      "title": "Derive a phylogeny from a mega-tree",
      "topics": [
        "get_one_tree"
      ]
    },
    {
      "page": "get_tree",
      "title": "Get one or multiple trees from megatree(s)",
      "topics": [
        "get_tree"
      ]
    },
    {
      "page": "rm_stars",
      "title": "Remove trailing *",
      "topics": [
        "rm_stars"
      ]
    },
    {
      "page": "sp_list_df",
      "title": "Convert a vector of species names to a data frame",
      "topics": [
        "sp_list_df"
      ]
    },
    {
      "page": "taxa_supported",
      "title": "Taxonomic groups supported",
      "topics": [
        "taxa_supported"
      ]
    }
  ],
  "_readme": "https://github.com/daijiang/rtrees/raw/HEAD/README.md",
  "_rundeps": [
    "ape",
    "castor",
    "cli",
    "codetools",
    "cpp11",
    "data.table",
    "digest",
    "dplyr",
    "fastmatch",
    "fs",
    "furrr",
    "future",
    "generics",
    "globals",
    "glue",
    "jsonlite",
    "lattice",
    "lazyeval",
    "lifecycle",
    "listenv",
    "magrittr",
    "Matrix",
    "megatrees",
    "naturalsort",
    "nlme",
    "parallelly",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "rappdirs",
    "Rcpp",
    "RcppEigen",
    "rlang",
    "RSpectra",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "tidytree",
    "utf8",
    "vctrs",
    "withr",
    "yulab.utils"
  ],
  "_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"
    }
  ],
  "_vignettes": [
    {
      "source": "grafting_scenarios.html.asis",
      "filename": "grafting_scenarios.html",
      "title": "grafting_scenarios",
      "engine": "R.rsp::asis",
      "headings": [
        "Grafting Scenarios"
      ],
      "created": "2026-05-25 16:14:09",
      "modified": "2026-05-25 16:14:09",
      "commits": 1
    },
    {
      "source": "Non-monophyletic-groups.html.asis",
      "filename": "Non-monophyletic-groups.html",
      "title": "Non-monophyletic-groups",
      "engine": "R.rsp::asis",
      "headings": [
        "Non-monophyletic genera"
      ],
      "created": "2026-05-25 16:14:09",
      "modified": "2026-05-25 16:14:09",
      "commits": 1
    },
    {
      "source": "Simple_example.html.asis",
      "filename": "Simple_example.html",
      "title": "Simple_example",
      "engine": "R.rsp::asis",
      "headings": [
        "Simple example"
      ],
      "created": "2026-05-18 15:09:56",
      "modified": "2026-05-18 15:09:56",
      "commits": 1
    },
    {
      "source": "speed.Rmd",
      "filename": "speed.html",
      "title": "Speed comparisons",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2023-01-03 22:34:01",
      "modified": "2026-05-18 19:54:20",
      "commits": 6
    }
  ],
  "_score": 7.77757180469141,
  "_indexed": true,
  "_nocasepkg": "rtrees",
  "_universes": [
    "daijiang"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0.3",
      "date": "2026-11-12T18:41:33.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "3a3081da1d68754f4a956210b065b5ae731e83fa",
      "fileid": "https://r2.ropensci.org/1939d5c06fd44a77247400c9dff1b4b0e7d3e9604cefe3ba77ca8ae6bf8f5ce9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/daijiang/actions/runs/43281353309"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0.3",
      "date": "2026-11-12T18:41:43.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "3a3081da1d68754f4a956210b065b5ae731e83fa",
      "fileid": "https://r2.ropensci.org/1fa9326787b6a1b21289ae1f6101624a3223b44a618408b8a390a64f40d6b97e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/daijiang/actions/runs/43281353309"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "2.0.3",
      "date": "2026-11-12T18:41:37.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "3a3081da1d68754f4a956210b065b5ae731e83fa",
      "fileid": "https://r2.ropensci.org/e1f42702bc161b9f96f63aad2db2f281bf71f8e068ffc08348c33ef926047cf8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/daijiang/actions/runs/43281353309"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "2.0.3",
      "date": "2026-11-12T18:41:36.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "3a3081da1d68754f4a956210b065b5ae731e83fa",
      "fileid": "https://r2.ropensci.org/710286ab678e79400b84473eec97f2e68433cbb231da3d1a48f39e41be607347",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/daijiang/actions/runs/43281353309"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.0.3",
      "date": "2026-11-12T18:40:48.000Z",
      "arch": "aarch64",
      "commit": "3a3081da1d68754f4a956210b065b5ae731e83fa",
      "fileid": "https://r2.ropensci.org/a6749b7ebabc3d473e6e848589f9da5302fd58ffb3e740397d70171742028636",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/daijiang/actions/runs/43281353309"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.0.3",
      "date": "2026-11-12T18:43:02.000Z",
      "arch": "x86_64",
      "commit": "3a3081da1d68754f4a956210b065b5ae731e83fa",
      "fileid": "https://r2.ropensci.org/456ba3f389d14162fabba760acaa3b28d0c81dea598c55ce64cda26a0357dd2d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/daijiang/actions/runs/43281353309"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "2.0.3",
      "date": "2026-11-12T18:41:32.000Z",
      "arch": "aarch64",
      "commit": "3a3081da1d68754f4a956210b065b5ae731e83fa",
      "fileid": "https://r2.ropensci.org/3a6233a2686bc1f29e56e31f9f415510a71907b550e4c0fbdee7d9da89a9a61f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/daijiang/actions/runs/43281353309"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "2.0.3",
      "date": "2026-11-12T18:43:54.000Z",
      "arch": "x86_64",
      "commit": "3a3081da1d68754f4a956210b065b5ae731e83fa",
      "fileid": "https://r2.ropensci.org/797c91aa89eacb7e004721e9cdcec682dcf8ab35b167c49e4bfc538fc04d6835",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/daijiang/actions/runs/43281353309"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.0.3",
      "date": "2026-11-12T18:41:48.000Z",
      "arch": "emscripten",
      "commit": "3a3081da1d68754f4a956210b065b5ae731e83fa",
      "fileid": "https://r2.ropensci.org/be8284ba13d95fffdca7caa04b937e6126d2f0f78302c7fdf0d59226bfdb4b9b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/daijiang/actions/runs/43281353309"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.0.3",
      "date": "2026-11-12T18:44:21.000Z",
      "arch": "aarch64",
      "commit": "3a3081da1d68754f4a956210b065b5ae731e83fa",
      "fileid": "https://r2.ropensci.org/4bce122dc6d59d059114990205db9906ab21d1f72ad86eed68c455ff1e99217b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/daijiang/actions/runs/43281353309"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.0.3",
      "date": "2026-11-12T18:41:49.000Z",
      "arch": "x86_64",
      "commit": "3a3081da1d68754f4a956210b065b5ae731e83fa",
      "fileid": "https://r2.ropensci.org/708a4af123ed105fba698de6f028a06af28873a46adf8c80e4205b8bca290670",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/daijiang/actions/runs/43281353309"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.0.3",
      "date": "2026-11-12T18:41:30.000Z",
      "arch": "x86_64",
      "commit": "3a3081da1d68754f4a956210b065b5ae731e83fa",
      "fileid": "https://r2.ropensci.org/70d6f88fef13ddf9192e4e94348ecd42734f09cd6d12134f192ac6f1974df7b3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/daijiang/actions/runs/43281353309"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "2.0.3",
      "date": "2026-11-12T18:44:52.000Z",
      "arch": "aarch64",
      "commit": "3a3081da1d68754f4a956210b065b5ae731e83fa",
      "fileid": "https://r2.ropensci.org/d3d04c884b6e669903688a3e4afe9587133ae3a977db748910c0e380a212c79e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/daijiang/actions/runs/43281353309"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "2.0.3",
      "date": "2026-11-12T18:41:19.000Z",
      "arch": "x86_64",
      "commit": "3a3081da1d68754f4a956210b065b5ae731e83fa",
      "fileid": "https://r2.ropensci.org/04d90eb3280f1cd46ad8135694013da5c452787f81da765855f004b4fb3d2a62",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/daijiang/actions/runs/43281353309"
    }
  ]
}