AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
xlsxio 리더를 포함해 시스템 XML·ZIP 없이 xlsx 파일 데이터를 읽어 스프레드시트 정보를 제공
Reads spreadsheet data from xlsx workbooks using a bundled copy of the xlsxio reader (<https://github.com/brechtsanders/xlsxio>), so that no system XML or ZIP library is required. The Expat parser and
개발 도구R · CGitHub @pedrobtz온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Reads spreadsheet data from xlsx workbooks using a bundled copy of the xlsxio reader (<https://github.com/brechtsanders/xlsxio>), so that no system XML or ZIP library is required. The Expat parser and the miniz ZIP reader are linked statically at install time from the zuxml and zukomp packages, which means there is no run-time dependency on either of them. Worksheets are read as a stream, so a workbook does not have to be held in memory in full. Writing workbooks is out of scope.
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
Read .xlsx workbooks from R, password-protected ones included, with no
system XML, ZIP or cryptography library required.
zuxlsx bundles the xlsxio reader and
links the Expat parser, the miniz ZIP reader and TF-PSA-Crypto statically at
install time, out of the sibling packages
zuxml,
zukomp and
zucrypt. Those are LinkingTo
dependencies only: the archives end up inside zuxlsx.so, so none of the
three has to be installed or loadable once zuxlsx is built.
Writing workbooks is out of scope.README 전문 보기 ↗Read .xlsx workbooks from R, password-protected ones included, with no
system XML, ZIP or cryptography library required.
zuxlsx bundles the xlsxio reader and
links the Expat parser, the
miniz ZIP reader and
TF-PSA-Crypto statically at
install time, out of the sibling packages
zuxml,
zukomp and
zucrypt. Those are LinkingTo
dependencies only: the archives end up inside zuxlsx.so, so none of the
three has to be installed or loadable once zuxlsx is built.
Writing workbooks is out of scope.
library(zuxlsx)
path <- system.file("extdata", "two-sheets.xlsx", package = "zuxlsx")
xlsx_sheets(path) # "readings" "notes"
xlsx_read(path) # first worksheet as a data frame
xlsx_read(path, sheet = "readings", range = "A1:B3")
xlsx_read() gives each column the type its cells support: logical, double,
character, Date or POSIXct. A column that cannot hold its cells becomes
character rather than failing. range takes A1 notation, and either corner
may name a cell, a column or a row, so "B2:D10", "A:C" and "2:10" are
all accepted.
Both Excel date systems are handled. The workbook's own date1904 setting
decides which is used, and the 1900 system's phantom 29 February 1900 is
accounted for, so dates before March 1900 are not a day early.
A password-protected workbook is read by passing its password, to any of the readers:
xlsx_read("protected.xlsx", password = "s3cret")
It is decrypted in memory and never written to disk. zuxlsx decrypts agile encryption, which Excel has written since 2013, and checks the integrity code stored with the file before decrypting anything. Office 2007's older standard encryption is recognised and refused by name.
Underneath, for worksheets that are not rectangular enough for a data frame:
xlsx_cells(path) # one row per cell: position, type, text, numeric value
xlsx_rows(path) # a worksheet row by row as text, padded to a rectangle
# A chunk at a time; returning FALSE stops the read, so finding something
# near the top of a large worksheet does not pay for the rest.
xlsx_stream_cells(path, callback = function(cells) { str(cells); FALSE })
zuxlsx needs zuxml, zukomp and zucrypt at build time, and its
configure script will stop with an explanatory message if their static
archives are missing. All three are on CRAN, so installing zuxlsx installs
them first:
install.packages("zuxlsx")
The development version is on GitHub:
# install.packages("pak")
pak::pak("pedrobtz/zuxlsx")
Every error carries a condition class, so calling code can tell a corrupt archive from a missing file without matching on message text:
tryCatch(
xlsx_sheets("broken.xlsx"),
zuxlsx_zip_error = function(e) "not a readable ZIP archive",
zuxlsx_ooxml_error = function(e) "a ZIP, but not a workbook",
zuxlsx_error = function(e) "something else went wrong"
)
See ?"zuxlsx-conditions" for the full list.
The bundled xlsxio reader is MIT licensed and is never edited in place. It is
re-derived from the pristine 0.2.36 release archive plus the patches in
tools/patches/xlsxio/, and tools/vendor/verify checks offline that the
committed tree, the manifests and the attribution all still agree.