個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Extra functions for dealing with citation keys, inline citations and references
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗
This package focuses solely on “extra” functions related to citeing
bibliography items such as processing .bib files to get citation keys,
processing BiBtex keys to get inline citations, etc. We are calling it
“extra” because we rely heavily on
rbbt and standard
rmarkdown::render magic to almost everything we need to do. Some
functions for rendering citation keys as inline references wrap calls to
pandoc so that needs to be installed. If you have Rstudion you likely
have it already.
This package deals with a few problems as follows:
NewGraphEnvironment.bib file representing our shared library. Can be
found here
path_bib <- system.file("extdata", "NewGraphEnvironment.bib", package = "xciter")You can install the development version of xciter from GitHub with:
# install.packages("devtools")
pak::pkg_install("NewGraphEnvironment/xciter")
This is a basic example of subbing citation keys for inline references within a table so that it can be rendered as is after the changes are made:
library(xciter)
## basic example code
path_bib <- system.file("extdata", "NewGraphEnvironment.bib", package = "xciter")
dat <- data.frame(
id = 1:3,
bib_keys = c(
"Outside block quotes @busch_etal2011LandscapeLevelModela and in [@woll_etal2017SalmonEcological]",
"This is many [@busch_etal2011LandscapeLevelModela; @woll_etal2017SalmonEcological; @kirsch_etal2014Fishinventorya]",
"this is a failed key @key3"
)
)
result <- xct_keys_to_inline_table_col(dat, col_format = "bib_keys", path_bib = path_bib)
print(result)
#> id
#> 1 1
#> 2 2
#> 3 3
#> bib_keys
#> 1 Outside block quotes Busch et al. (2011) and in (Woll, Albert, and Whited 2017)
#> 2 This is many (Busch et al. 2011; Woll, Albert, and Whited 2017; Kirsch, Buckwalter, and Reed 2014)
#> 3 this is a failed key (key3?)
This is a basic example of checking if the citation keys within a
bookdown document are found within a specified .bib file.
key_missing <- xct_bib_keys_missing(path_bib, "kirsch_etal2014Fishinventory")
#> ! The following citations were not found in the BibTeX file:
#> [1] "kirsch_etal2014Fishinventory"
This is an example of how to search for the closest match for an unmatched key.
xct_keys_guess_match(key_missing, keys_bib = xct_bib_keys_extract(path_bib))
#> key_missing key_missing_guess_match
#> 1 kirsch_etal2014Fishinventory kirsch_etal2014Fishinventorya