Glasshouse
루팅된 LG webOS TV용 대시보드·프라이버시 제어·Home Assistant 연동
동적 보고에서 인용키·인라인 인용·참고문헌을 처리하는 함수, 표 내 일반 렌더링이 안 될 때 사용
Citation related functions used in dynamic reporting - particularily within tables where normal rendering does not work.
개발 도구RGitHub @NewGraphEnvironment온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기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