{"id":17153028,"url":"https://github.com/geobosh/rbibutils","last_synced_at":"2025-04-13T12:43:22.693Z","repository":{"id":56293655,"uuid":"262796003","full_name":"GeoBosh/rbibutils","owner":"GeoBosh","description":"Convert bibliography files between various formats, including BibTeX, BibLaTeX, PubMed, RIS, and Bibentry. This is an R port of the bibutils utilities plus R manipulation of bibiliography objects.","archived":false,"fork":false,"pushed_at":"2023-10-25T14:12:28.000Z","size":2493,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-09T22:18:13.748Z","etag":null,"topics":["biblatex","bibliography","bibtex","bibutils","conversion","endnote","pubmed","r","r-package","ris-format"],"latest_commit_sha":null,"homepage":"https://geobosh.github.io/rbibutils/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GeoBosh.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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":"2020-05-10T13:43:14.000Z","updated_at":"2024-04-25T11:21:40.000Z","dependencies_parsed_at":"2023-02-09T16:31:06.643Z","dependency_job_id":"86d28196-df49-4db9-8f0a-74189f85d0e4","html_url":"https://github.com/GeoBosh/rbibutils","commit_stats":{"total_commits":147,"total_committers":2,"mean_commits":73.5,"dds":0.006802721088435382,"last_synced_commit":"b56ec755e6cd08f8033d5030117b1587cc35f254"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoBosh%2Frbibutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoBosh%2Frbibutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoBosh%2Frbibutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeoBosh%2Frbibutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GeoBosh","download_url":"https://codeload.github.com/GeoBosh/rbibutils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248717234,"owners_count":21150387,"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":["biblatex","bibliography","bibtex","bibutils","conversion","endnote","pubmed","r","r-package","ris-format"],"created_at":"2024-10-14T21:45:01.201Z","updated_at":"2025-04-13T12:43:22.666Z","avatar_url":"https://github.com/GeoBosh.png","language":"C","readme":"[![CRANStatusBadge](http://www.r-pkg.org/badges/version/rbibutils)](https://cran.r-project.org/package=rbibutils)\n[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/rbibutils)](https://www.r-pkg.org/pkg/rbibutils)\n[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/grand-total/rbibutils?color=blue)](https://r-pkg.org/pkg/rbibutils)\n[![R build status](https://github.com/GeoBosh/rbibutils/workflows/R-CMD-check/badge.svg)](https://github.com/GeoBosh/rbibutils/actions)\n[![codecov](https://codecov.io/gh/GeoBosh/rbibutils/branch/master/graph/badge.svg?token=SNUE0KC0TX)](https://app.codecov.io/gh/GeoBosh/rbibutils)\n\nRead and write 'BibTeX' files. Convert bibliography files between various\nformats, including BibTeX, BibLaTeX, PubMed, EndNote and Bibentry. Includes an R\nport of the `bibutils` utilities.\n\n\n# Installing rbibutils\n\nInstall the  [latest stable version](https://cran.r-project.org/package=rbibutils) from CRAN:\n\n    install.packages(\"rbibutils\")\n\nYou can also install the [development version](https://github.com/GeoBosh/rbibutils) of `rbibutils` from Github:\n\n    library(devtools)\n    install_github(\"GeoBosh/rbibutils\")\n\n\n\n# Overview\n\nImport and export 'BibTeX' files. Convert bibliography files between various\nformats.  All formats supported by the `bibutils` utilities are available, see\n`bibConvert()` for a complete list.  In addition, conversion from and to\n`bibentry`, the R native representation based on Bibtex, is supported.\n\n`readBib()` and `writeBib()` import/export BiBTeX files.  `readBibentry()` and\n`writeBibentry()` import/export `R` source files in which the references are\nrepresented by `bibentry()` calls.\n\nThe convenience function `charToBib()` takes input from a character vector,\nrather than a file. It calls `readBib()` or `bibConvert()`.\n\n`bibConvert()` takes an input bibliography file in one of the supported formats,\nconverts its contents to another format, and writes the result to a file. All\nformats, except for `rds` (see below) are plain text files. `bibConvert()` tries\nto infer the input/output formats from the file extentions. There is ambiguity\nhowever about `bib` files, which can be either Bibtex or Biblatex. Bibtex is\nassumed if the format is not specified. Also, the `xml` extension is shared by\nXML-based formats. Its default is 'XML MODS intermediate' format.\n\nThe default encoding is UTF-8 for both, input and output. All encodings handled\nby `bibutils` are supported. Besides UTF-8, these include `gb18030` (Chinese),\nISO encodings such as `iso8859_1`, Windows code pages (e.g. `cp1251` for Windows\nCyrillic) and many others. Common alternative names are also accepted\n(e.g. `latin1`).\n\nBibentry objects can be input from an `R` source file or from an `rds` file. The\n`rds` file should contain a `bibentry` R object, saved from R with `saveRDS()`.\nThe `rds` format is a compressed binary format`. Alternatively, an R source file\ncontaining one or more bibentry instructions and maybe other commands can be\nused.  The R file is sourced and all bibentry objects created by it are\ncollected.\n\n\n\n# Examples:\n\n## readBib\n\nThe examples in this section import the following file:\n\n    bibacc \u003c- system.file(\"bib/latin1accents_utf8.bib\", package = \"rbibutils\")\n\nNote that some characters may not be displayed on some locales. Also, on Windows\nsome characters may be \"approximated\" by other characters.\n\nImport the above bibtex file into a `bibentry` object. By default TeX escape\nsequences representing characters are kept as is:\n\n    be0 \u003c- readBib(bibacc)\n    be0\n    print(be0, style = \"bibtex\")\n\nAs above, using the direct option:\n\n    be1 \u003c- readBib(bibacc, direct = TRUE)\n    ## readBib(bibacc, direct = TRUE, texChars = \"keep\") # same\n    be1\n    print(be1, style = \"bibtex\")\n\n\nUse the `\"convert\"` option to convert TeX sequences to true characters:\n\n    be2 \u003c- readBib(bibacc, direct = TRUE, texChars = \"convert\")\n    be2\n    print(be2, style = \"R\")\n\n(On Windows the Greek characters alpha and delta may be printed as 'a' and 'd'\nbut internally they are alpha and delta.)\n\nUse the `\"export\"` option to convert other characters to ASCII TeX sequences,\nwhen possible (currently this option doesn't handle well mathematical\nexpressions):\n\n    be3 \u003c- readBib(bibacc, direct = TRUE, texChars = \"export\")\n    print(be3, style = \"bibtex\")\n  \n\n## bibConvert\n\n\nConvert Bibtex file `myfile.bib` to a `bibentry` object and save the latter to\n`\"myfile.rds\":\n\n    bibConvert(\"myfile.bib\", \"myfile.rds\", informat = \"bibtex\", outformat = \"bibentry\")\n    bibConvert(\"myfile.bib\", \"myfile.rds\")\n\nConvert Bibtex file `myfile.bib` to a Biblatex save to `\"biblatex.bib\":\n\n    bibConvert(\"myfile.bib\", \"biblatex.bib\", \"bibtex\", \"biblatex\")\n    bibConvert(\"myfile.bib\", \"biblatex.bib\", outfile = \"biblatex\")\n\nConvert Bibtex file `myfile.bib` to Bibentry and save as `rds` or `R`:\n\n    bibConvert(\"myfile.bib\", \"myfile.rds\")\n    bibConvert(\"myfile.bib\", \"myfile.R\")\n\nRead back the above files and/or convert them to other formats:\n\n    readLines(\"myfile.R\")\n    file.show(\"myfile.R\")\n    readRDS(\"myfile.rds\")\n    bibConvert(\"myfile.rds\", \"myfile.bib\")\n    bibConvert(\"myfile.R\", \"myfile.bib\")\n\n\nAssuming `myfile.bib` is a Biblatex file, convert it to Bibtex and save to  `bibtex.bib`:\n\n    bibConvert(\"myfile.bib\", \"bibtex.bib\", \"biblatex\", \"bibtex\")\n    bibConvert(\"myfile.bib\", \"bibtex.bib\", \"biblatex\")\n\n\nAssuming \"myfile.med\" is a PubMed file, convert it to Bibtex:\n\n    bibConvert(infile = \"myfile.med\", outfile = \"bibtex.bib\", informat = \"med\", outformat = \"bib\")\n    bibConvert(infile = \"myfile.med\", outfile = \"bibtex.bib\", informat = \"med\") # same\n\n\nSee `bibConvert()` for further examples and their results.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeobosh%2Frbibutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeobosh%2Frbibutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeobosh%2Frbibutils/lists"}