Learn R Programming

⚠️There's a newer version (0.4.3) of this package.Take me there.

Function

Implementing journal abbreviation for the 'Journal' field in BibTex file.

Install

# CRAN
install.packages("journalabbr")

#
devtools::install_github("zoushucai/journalabbr")
# or
xfun::install_github("zoushucai/journalabbr")

Require

The format of the bib file is as follows:

@***{****,
  **** = {****},
  **** = "*****",
  *** = {{******}},
  **** = {*****}}

% or

@***{****,
  **** = {****},
  **** = "*****",
  *** = {{******}},
  **** = {*****}
  }
  

Except for the @character line, the rest of the field lines must have an equal sign =

Use

library(journalabbr)
path = system.file("extdata", "testfile_1.bib", package = "journalabbr", mustWork = TRUE)
temptab = abbr2bib(file = path, outfile =  tempfile(fileext = ".bib"))

# or
journalabbr::runExample()

Access internal data

library(journalabbr)
library(stringi)
abbrTable = journalabbr:::abbrTable
# Unicode to UTF-8
abbrTable = as.data.frame(
    lapply(abbrTable,
           function(x)stringi::stri_unescape_unicode(x))
           )

Copy Link

Version

Install

install.packages('journalabbr')

Monthly Downloads

217

Version

0.3.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

ShuCai Zou

Last Published

April 23rd, 2022

Functions in journalabbr (0.3.1)

runExample

The Shiny Program for the 'journalabbr' Package
rbind_bib

Merging multiple Bib file
abbr2bib

Journal field abbreviation of BibTeX file
write_tib2bib

Export a BibTeX tibble to a .bib file.
read_bib2tib

Parse a BibTeX file to a tibble
unique_bib

Delete duplicate.
abbrTable

data abbrTable data