From 427d08e69fa19a2421be1550c0f609def5687ec1 Mon Sep 17 00:00:00 2001 From: davidycliao Date: Sun, 5 Jan 2025 01:18:26 +0000 Subject: [PATCH] docs: update roxygen documentation and pkgdown site files --- .Rproj.user/763C8F27/pcs/source-pane.pper | 2 +- .Rproj.user/763C8F27/pcs/workbench-pane.pper | 2 +- .Rproj.user/763C8F27/persistent-state | 6 +- .Rproj.user/763C8F27/sources/prop/55451CD2 | 4 +- .Rproj.user/763C8F27/sources/prop/70BF7A76 | 4 +- .Rproj.user/763C8F27/sources/prop/8DB96273 | 2 +- .Rproj.user/763C8F27/sources/prop/A6FC25F9 | 4 +- .Rproj.user/763C8F27/sources/prop/INDEX | 4 ++ .../notebooks/A0EE38F7-manual/1/s/chunks.json | 1 - .Rproj.user/shared/notebooks/paths | 4 ++ DESCRIPTION | 11 ++-- NAMESPACE | 1 - R/zzz.R | 34 +++------- docs/pkgdown.yml | 2 +- docs/reference/get_caucus_meetings.html | 2 +- docs/reference/get_executive_response.html | 2 +- docs/reference/get_legislators.html | 2 +- docs/reference/get_meetings.html | 4 +- docs/reference/get_parlquestions.html | 4 +- docs/search.json | 2 +- docs/sitemap.xml | 1 + man/dot-onAttach.Rd | 4 +- man/dot-onLoad.Rd | 12 ---- tests/testthat/test_get_ly_committees_type.R | 38 +++++++++++ .../testthat/test_get_ly_legislator_detail.R | 63 +++++++++++++++++++ 25 files changed, 150 insertions(+), 65 deletions(-) delete mode 100644 .Rproj.user/shared/notebooks/A0EE38F7-manual/1/s/chunks.json delete mode 100644 man/dot-onLoad.Rd create mode 100644 tests/testthat/test_get_ly_committees_type.R create mode 100644 tests/testthat/test_get_ly_legislator_detail.R diff --git a/.Rproj.user/763C8F27/pcs/source-pane.pper b/.Rproj.user/763C8F27/pcs/source-pane.pper index bc7dc995..544e5820 100644 --- a/.Rproj.user/763C8F27/pcs/source-pane.pper +++ b/.Rproj.user/763C8F27/pcs/source-pane.pper @@ -1,3 +1,3 @@ { - "activeTab": 4 + "activeTab": 5 } \ No newline at end of file diff --git a/.Rproj.user/763C8F27/pcs/workbench-pane.pper b/.Rproj.user/763C8F27/pcs/workbench-pane.pper index c690b613..597ecbce 100644 --- a/.Rproj.user/763C8F27/pcs/workbench-pane.pper +++ b/.Rproj.user/763C8F27/pcs/workbench-pane.pper @@ -1,5 +1,5 @@ { - "TabSet1": 2, + "TabSet1": 5, "TabSet2": 1, "TabZoom": {} } \ No newline at end of file diff --git a/.Rproj.user/763C8F27/persistent-state b/.Rproj.user/763C8F27/persistent-state index 7cc6890c..5e8f50b3 100644 --- a/.Rproj.user/763C8F27/persistent-state +++ b/.Rproj.user/763C8F27/persistent-state @@ -1,8 +1,8 @@ build-last-errors="[]" build-last-errors-base-dir="~/Dropbox/My Packages/legisTaiwan/" -build-last-outputs="[{\"type\":0,\"output\":\"==> R CMD INSTALL --preclean --no-multiarch --with-keep.source legisTaiwan\\n\\n\"},{\"type\":1,\"output\":\"* installing to library ‘/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library’\\n\"},{\"type\":1,\"output\":\"* installing *source* package ‘legisTaiwan’ ...\\n\"},{\"type\":1,\"output\":\"** using staged installation\\n\"},{\"type\":1,\"output\":\"** R\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"** data\\n\"},{\"type\":1,\"output\":\"*** moving datasets to lazyload DB\\n\"},{\"type\":1,\"output\":\"** inst\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"** byte-compile and prepare package for lazy loading\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"Fetching data...\\n\"},{\"type\":1,\"output\":\"Data received successfully, processing...\\n\"},{\"type\":1,\"output\":\"Found 100 bills, converting...\\n\"},{\"type\":1,\"output\":\"\\r | \\r | | 0%\\r | \\r |= | 1%\\r | \\r |= | 2%\\r | \\r |== | 3%\\r | \\r |=== | 4%\\r | \\r |==== | 5%\\r | \\r |==== | 6%\\r | \\r |===== | 7%\\r | \\r |====== | 8%\\r | \\r |====== | 9%\\r | \\r |======= | 10%\\r | \\r |======== | 11%\\r | \\r |======== | 12%\\r | \\r |========= | 13%\\r | \\r |========== | 14%\\r | \\r |========== | 15%\\r | \\r |=========== | 16%\\r | \\r |============ | 17%\\r | \\r |============= | 18%\\r | \\r |============= | 19%\\r | \\r |============== | 20%\\r | \\r |=============== | 21%\\r | \\r |=============== | 22%\\r | \\r |================ | 23%\\r | \\r |================= | 24%\\r | \\r |================== | 25%\\r | \\r |================== | 26%\\r | \\r |=================== | 27%\\r | \\r |==================== | 28%\\r | \\r |==================== | 29%\\r | \\r |===================== | 30%\\r | \\r |====================== | 31%\\r | \\r |====================== | 32%\\r | \\r |======================= | 33%\\r | \\r |======================== | 34%\\r | \\r |======================== | 35%\\r | \\r |========================= | 36%\\r | \\r |========================== | 37%\\r | \\r |=========================== | 38%\\r | \\r |=========================== | 39%\\r | \\r |============================ | 40%\\r | \\r |============================= | 41%\\r | \\r |============================= | 42%\\r | \\r |============================== | 43%\\r | \\r |=============================== | 44%\\r | \\r |================================ | 45%\\r | \\r |================================ | 46%\\r | \\r |================================= | 47%\\r | \\r |================================== | 48%\\r | \\r |================================== | 49%\\r | \\r |=================================== | 50%\\r | \\r |==================================== | 51%\\r | \\r |==================================== | 52%\\r | \\r |===================================== | 53%\\r | \\r |====================================== | 54%\\r | \\r |====================================== | 55%\\r | \\r |======================================= | 56%\\r | \\r |======================================== | 57%\\r | \\r |========================================= | 58%\\r | \\r |========================================= | 59%\\r | \\r |========================================== | 60%\\r | \\r |=========================================== | 61%\\r | \\r |=========================================== | 62%\\r | \\r |============================================ | 63%\\r | \\r |============================================= | 64%\\r | \\r |============================================== | 65%\\r | \\r |============================================== | 66%\\r | \\r |=============================================== | 67%\\r | \\r |================================================ | 68%\\r | \\r |================================================ | 69%\\r | \\r |================================================= | 70%\\r | \\r |================================================== | 71%\\r | \\r |================================================== | 72%\\r | \\r |=================================================== | 73%\\r | \\r |==================================================== | 74%\\r | \\r |==================================================== | 75%\\r | \\r |===================================================== | 76%\\r | \\r |====================================================== | 77%\\r | \\r |======================================================= | 78%\\r | \\r |======================================================= | 79%\\r | \\r |======================================================== | 80%\\r | \\r |========================================================= | 81%\\r | \\r |========================================================= | 82%\\r | \\r |========================================================== | 83%\\r | \\r |=========================================================== | 84%\\r | \\r |============================================================ | 85%\\r | \\r |============================================================ | 86%\\r | \\r |============================================================= | 87%\\r | \\r |============================================================== | 88%\\r | \\r |============================================================== | 89%\\r | \\r |=============================================================== | 90%\\r | \\r |================================================================ | 91%\\r | \\r |================================================================ | 92%\\r | \\r |================================================================= | 93%\\r | \\r |================================================================== | 94%\\r | \\r |================================================================== | 95%\\r | \\r |=================================================================== | 96%\\r | \\r |==================================================================== | 97%\\r | \\r |===================================================================== | 98%\\r | \\r |===================================================================== | 99%\\r | \\r |======================================================================| 100%\\n\"},{\"type\":1,\"output\":\"\\n\"},{\"type\":1,\"output\":\"Conversion complete!\\n\"},{\"type\":1,\"output\":\"Processing complete! Total bills processed: 100\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"** help\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"*** installing help indices\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"*** copying figures\\n\"},{\"type\":1,\"output\":\"** building package indices\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"** installing vignettes\\n\"},{\"type\":1,\"output\":\"** testing if installed package can be loaded from temporary location\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"** testing if installed package can be loaded from final location\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"** testing if installed package keeps a record of temporary installation path\\n\"},{\"type\":1,\"output\":\"* DONE (legisTaiwan)\\n\"},{\"type\":1,\"output\":\"\"}]" +build-last-outputs="[{\"type\":0,\"output\":\"==> R CMD INSTALL --preclean --no-multiarch --with-keep.source legisTaiwan\\n\\n\"},{\"type\":1,\"output\":\"* installing to library ‘/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library’\\n\"},{\"type\":1,\"output\":\"* installing *source* package ‘legisTaiwan’ ...\\n\"},{\"type\":1,\"output\":\"** using staged installation\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"** R\\n\"},{\"type\":1,\"output\":\"** data\\n\"},{\"type\":1,\"output\":\"*** moving datasets to lazyload DB\\n\"},{\"type\":1,\"output\":\"** inst\\n\"},{\"type\":1,\"output\":\"** byte-compile and prepare package for lazy loading\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":1,\"output\":\"Error in test_that(\\\"parameter validation works\\\", { : \\n\"},{\"type\":1,\"output\":\" could not find function \\\"test_that\\\"\\n\"},{\"type\":2,\"output\":\"Error: unable to load R code in package ‘legisTaiwan’\\n\"},{\"type\":1,\"output\":\"Execution halted\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":2,\"output\":\"ERROR: lazy loading failed for package ‘legisTaiwan’\\n\"},{\"type\":1,\"output\":\"* removing ‘/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/legisTaiwan’\\n\"},{\"type\":1,\"output\":\"* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/legisTaiwan’\\n\"},{\"type\":1,\"output\":\"\"},{\"type\":2,\"output\":\"\\nExited with status 1.\\n\\n\"}]" compile_pdf_state="{\"tab_visible\":false,\"running\":false,\"target_file\":\"\",\"output\":\"\",\"errors\":[]}" files.monitored-path="" find-in-files-state="{\"handle\":\"\",\"input\":\"\",\"path\":\"\",\"regex\":false,\"ignoreCase\":false,\"results\":{\"file\":[],\"line\":[],\"lineValue\":[],\"matchOn\":[],\"matchOff\":[],\"replaceMatchOn\":[],\"replaceMatchOff\":[]},\"running\":false,\"replace\":false,\"preview\":false,\"gitFlag\":false,\"replacePattern\":\"\"}" -imageDirtyState="0" -saveActionState="0" +imageDirtyState="1" +saveActionState="-1" diff --git a/.Rproj.user/763C8F27/sources/prop/55451CD2 b/.Rproj.user/763C8F27/sources/prop/55451CD2 index fffc8126..ffb394b9 100644 --- a/.Rproj.user/763C8F27/sources/prop/55451CD2 +++ b/.Rproj.user/763C8F27/sources/prop/55451CD2 @@ -1,6 +1,6 @@ { "source_window_id": "", "Source": "Source", - "cursorPosition": "29,0", - "scrollLine": "15" + "cursorPosition": "6,11", + "scrollLine": "0" } \ No newline at end of file diff --git a/.Rproj.user/763C8F27/sources/prop/70BF7A76 b/.Rproj.user/763C8F27/sources/prop/70BF7A76 index eb637a6c..7930d9ee 100644 --- a/.Rproj.user/763C8F27/sources/prop/70BF7A76 +++ b/.Rproj.user/763C8F27/sources/prop/70BF7A76 @@ -1,6 +1,6 @@ { "source_window_id": "", "Source": "Source", - "cursorPosition": "8,1", - "scrollLine": "0" + "cursorPosition": "42,3", + "scrollLine": "15" } \ No newline at end of file diff --git a/.Rproj.user/763C8F27/sources/prop/8DB96273 b/.Rproj.user/763C8F27/sources/prop/8DB96273 index 9fc5e938..27e87608 100644 --- a/.Rproj.user/763C8F27/sources/prop/8DB96273 +++ b/.Rproj.user/763C8F27/sources/prop/8DB96273 @@ -2,6 +2,6 @@ "tempName": "Untitled1", "source_window_id": "", "Source": "Source", - "cursorPosition": "0,0", + "cursorPosition": "18,47", "scrollLine": "0" } \ No newline at end of file diff --git a/.Rproj.user/763C8F27/sources/prop/A6FC25F9 b/.Rproj.user/763C8F27/sources/prop/A6FC25F9 index 01d89b95..386ecefa 100644 --- a/.Rproj.user/763C8F27/sources/prop/A6FC25F9 +++ b/.Rproj.user/763C8F27/sources/prop/A6FC25F9 @@ -1,6 +1,6 @@ { "source_window_id": "", "Source": "Source", - "cursorPosition": "27,10", - "scrollLine": "6" + "cursorPosition": "30,9", + "scrollLine": "18" } \ No newline at end of file diff --git a/.Rproj.user/763C8F27/sources/prop/INDEX b/.Rproj.user/763C8F27/sources/prop/INDEX index ee684a06..5e496a22 100644 --- a/.Rproj.user/763C8F27/sources/prop/INDEX +++ b/.Rproj.user/763C8F27/sources/prop/INDEX @@ -26,7 +26,9 @@ ~%2FDropbox%2FMy%20Packages%2FlegisTaiwan%2FR%2Fmeeting.R="89BA0F7B" ~%2FDropbox%2FMy%20Packages%2FlegisTaiwan%2FR%2Fparlquestions.R="9DFFCB24" ~%2FDropbox%2FMy%20Packages%2FlegisTaiwan%2FR%2Fstat_tool.R="C8BF0021" +~%2FDropbox%2FMy%20Packages%2FlegisTaiwan%2FR%2Ftest_get_ly_legislator_detail.R="6C2EF5CA" ~%2FDropbox%2FMy%20Packages%2FlegisTaiwan%2FR%2Ftest_get_ly_legislators_by_term.R="963916C8" +~%2FDropbox%2FMy%20Packages%2FlegisTaiwan%2FR%2Ftest_that.R="05D36D8A" ~%2FDropbox%2FMy%20Packages%2FlegisTaiwan%2FR%2Futils.R="6AB6A820" ~%2FDropbox%2FMy%20Packages%2FlegisTaiwan%2FR%2Fvis_tool.R="1585B4F2" ~%2FDropbox%2FMy%20Packages%2FlegisTaiwan%2FR%2Fzzz.R="70BF7A76" @@ -44,9 +46,11 @@ ~%2FDropbox%2FMy%20Packages%2FlegisTaiwan%2Ftests%2Ftestthat%2Fget_ly_legislator_cosign_bills.R="12F53D0F" ~%2FDropbox%2FMy%20Packages%2FlegisTaiwan%2Ftests%2Ftestthat%2Ftest_bills.R="F2EB84F7" ~%2FDropbox%2FMy%20Packages%2FlegisTaiwan%2Ftests%2Ftestthat%2Ftest_get_infos.R="0D1C8547" +~%2FDropbox%2FMy%20Packages%2FlegisTaiwan%2Ftests%2Ftestthat%2Ftest_get_ly_committees_type.R="D09B9C31" ~%2FDropbox%2FMy%20Packages%2FlegisTaiwan%2Ftests%2Ftestthat%2Ftest_get_ly_interpellations.R="05DA321E" ~%2FDropbox%2FMy%20Packages%2FlegisTaiwan%2Ftests%2Ftestthat%2Ftest_get_ly_ivod.R="5D8DCAD1" ~%2FDropbox%2FMy%20Packages%2FlegisTaiwan%2Ftests%2Ftestthat%2Ftest_get_ly_legislator_bills.R="8FFC86C0" +~%2FDropbox%2FMy%20Packages%2FlegisTaiwan%2Ftests%2Ftestthat%2Ftest_get_ly_legislator_detail.R="9F2F35AB" ~%2FDropbox%2FMy%20Packages%2FlegisTaiwan%2Ftests%2Ftestthat%2Ftest_get_ly_legislators_by_term.R="BD95594E" ~%2FDropbox%2FMy%20Packages%2FlegisTaiwan%2Ftests%2Ftestthat%2Ftest_legislators.R="464CF3FF" ~%2FDropbox%2FMy%20Packages%2FlegisTaiwan%2Ftests%2Ftestthat%2Ftest_meeting.R="2C24CF14" diff --git a/.Rproj.user/shared/notebooks/A0EE38F7-manual/1/s/chunks.json b/.Rproj.user/shared/notebooks/A0EE38F7-manual/1/s/chunks.json deleted file mode 100644 index d06c3328..00000000 --- a/.Rproj.user/shared/notebooks/A0EE38F7-manual/1/s/chunks.json +++ /dev/null @@ -1 +0,0 @@ -{"chunk_definitions":[],"doc_write_time":1736002479} \ No newline at end of file diff --git a/.Rproj.user/shared/notebooks/paths b/.Rproj.user/shared/notebooks/paths index e3a91e48..63c75801 100644 --- a/.Rproj.user/shared/notebooks/paths +++ b/.Rproj.user/shared/notebooks/paths @@ -24,6 +24,8 @@ /Users/yenchiehliao/Dropbox/My Packages/legisTaiwan/R/meeting.R="71127899" /Users/yenchiehliao/Dropbox/My Packages/legisTaiwan/R/parlquestions.R="13501FDC" /Users/yenchiehliao/Dropbox/My Packages/legisTaiwan/R/stat_tool.R="530A04F8" +/Users/yenchiehliao/Dropbox/My Packages/legisTaiwan/R/test_get_ly_legislator_detail.R="1E685BDC" +/Users/yenchiehliao/Dropbox/My Packages/legisTaiwan/R/test_that.R="7C88AFED" /Users/yenchiehliao/Dropbox/My Packages/legisTaiwan/R/utils.R="7BAFD3F6" /Users/yenchiehliao/Dropbox/My Packages/legisTaiwan/R/zzz.R="9DA89192" /Users/yenchiehliao/Dropbox/My Packages/legisTaiwan/README.Rmd="9551FBD9" @@ -35,9 +37,11 @@ /Users/yenchiehliao/Dropbox/My Packages/legisTaiwan/tests/testthat/get_ly_legislator_cosign_bills.R="C6AC0678" /Users/yenchiehliao/Dropbox/My Packages/legisTaiwan/tests/testthat/test_bills.R="2C532035" /Users/yenchiehliao/Dropbox/My Packages/legisTaiwan/tests/testthat/test_get_infos.R="DC03EE48" +/Users/yenchiehliao/Dropbox/My Packages/legisTaiwan/tests/testthat/test_get_ly_committees_type.R="32A85602" /Users/yenchiehliao/Dropbox/My Packages/legisTaiwan/tests/testthat/test_get_ly_interpellations.R="D26D9876" /Users/yenchiehliao/Dropbox/My Packages/legisTaiwan/tests/testthat/test_get_ly_ivod.R="DF77FEF8" /Users/yenchiehliao/Dropbox/My Packages/legisTaiwan/tests/testthat/test_get_ly_legislator_bills.R="5A9A4607" +/Users/yenchiehliao/Dropbox/My Packages/legisTaiwan/tests/testthat/test_get_ly_legislator_detail.R="7CF584FF" /Users/yenchiehliao/Dropbox/My Packages/legisTaiwan/tests/testthat/test_get_ly_legislators_by_term.R="FF7E8788" /Users/yenchiehliao/Dropbox/My Packages/legisTaiwan/tests/testthat/test_legislators.R="290647EE" /Users/yenchiehliao/Dropbox/My Packages/legisTaiwan/tests/testthat/test_meeting.R="35E091D2" diff --git a/DESCRIPTION b/DESCRIPTION index a3ee1ead..354591a1 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -8,8 +8,13 @@ Authors@R: c(person("Yen-Chieh", "Liao", email = "davidycliao@gmail.com", role = person("Taiwan National Science and Technology Council", role = "ctb"), person("Taiwan Science & Technology Policy Research and Information Center NARLabs", role = "ctb")) Description: The package is designed to make it quickly and easy to access Taiwan - Legislative Yuan API for downloading real-time data legislative and - historical archives. + Legislative Yuan API for downloading real-time data, legislative records and + historical archives. Features include access to committee meetings, + interpellations, bills, legislator information, parliamentary questions, + and executive responses. The API provides comprehensive coverage of + legislative activities including voting records, meeting minutes, and + policy discussions, enabling users to analyze Taiwan's legislative + processes and parliamentary operations efficiently. Maintainer: Yen-Chieh Liao Depends: R (>= 3.4.0) License: GPL-3 + file LICENSE @@ -24,8 +29,6 @@ Imports: rvest, withr, httr, - pillar, - vctrs, utils, readr, dplyr, diff --git a/NAMESPACE b/NAMESPACE index fc8a8493..0bee5c74 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -26,7 +26,6 @@ export(get_public_debates) export(get_speech_video) export(get_tly_stat) export(get_variable_info) -export(type_sum.accel) import(ggplot2) import(utils) importFrom(attempt,stop_if_all) diff --git a/R/zzz.R b/R/zzz.R index e79bab73..01c7db43 100644 --- a/R/zzz.R +++ b/R/zzz.R @@ -1,16 +1,4 @@ - -#' Register S3 methods and set up package -#' @keywords internal -.onLoad <- function(libname, pkgname) { - # 檢查並註冊 S3 方法 - if (requireNamespace("vctrs", quietly = TRUE)) { - vctrs::s3_register("pillar::type_sum", "accel") - } -} - - -#' On package attach, display a startup message -#' +#' Package startup message #' @keywords internal .onAttach <- function(...) { # ANSI color codes @@ -36,23 +24,21 @@ ) # Creating the messages - base_message1 <- paste0(dark_green, "legis", reset, rainbow_taiwan, " v0.2.1") + version <- utils::packageVersion("legisTaiwan") + base_message1 <- paste0(dark_green, "legis", reset, rainbow_taiwan, " v", version) message2 <- "## An R package connecting to the Taiwan Legislative API. ##" # Calculate padding to align message1 with message2 message2_width <- nchar(message2) - base_message1_width <- nchar(base_message1) - (6 * 9) # Subtract length of color codes (9 codes * 6 characters) - padding_needed <- message2_width - base_message1_width - 1 # -4 for the "## " and " ##" + base_message1_width <- nchar(base_message1) - (6 * 9) # Subtract length of color codes + padding_needed <- message2_width - base_message1_width - 1 # Create aligned message1 message1 <- paste0("## ", base_message1, paste(rep(" ", padding_needed), collapse = ""), " ##") - # Display messages - packageStartupMessage(message1) - packageStartupMessage(message2) -} - -#' @export -type_sum.accel <- function(x) { - "accel" + # Display messages if not disabled + if (!isFALSE(getOption("legisTaiwan.startup.message", TRUE))) { + packageStartupMessage(message1) + packageStartupMessage(message2) + } } diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index b5beba2a..771121be 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -3,7 +3,7 @@ pkgdown: 2.1.1 pkgdown_sha: ~ articles: quickstart: quickstart.html -last_built: 2025-01-05T00:41Z +last_built: 2025-01-05T00:44Z urls: reference: https://davidycliao.github.io/legisTaiwan/reference article: https://davidycliao.github.io/legisTaiwan/articles diff --git a/docs/reference/get_caucus_meetings.html b/docs/reference/get_caucus_meetings.html index 1ac6ed95..79d9a881 100644 --- a/docs/reference/get_caucus_meetings.html +++ b/docs/reference/get_caucus_meetings.html @@ -201,7 +201,7 @@

Examples#> [1] "the meeting records of cross-caucus session" #> #> $query_time -#> [1] "2025-01-05 00:41:40 GMT" +#> [1] "2025-01-05 00:44:23 GMT" #> #> $retrieved_number #> [1] 27 diff --git a/docs/reference/get_executive_response.html b/docs/reference/get_executive_response.html index 62ca445a..10295270 100644 --- a/docs/reference/get_executive_response.html +++ b/docs/reference/get_executive_response.html @@ -195,7 +195,7 @@

Examples#> [1] "Executive Response Records" #> #> $query_time -#> [1] "2025-01-05 00:42:06 GMT" +#> [1] "2025-01-05 00:45:14 GMT" #> #> $retrieved_number #> [1] 1065 diff --git a/docs/reference/get_legislators.html b/docs/reference/get_legislators.html index 94f4f7e1..277f1fb0 100644 --- a/docs/reference/get_legislators.html +++ b/docs/reference/get_legislators.html @@ -185,7 +185,7 @@

Examples#> [1] "Executive Response Records" #> #> $query_time -#> [1] "2025-01-05 00:33:23 GMT" +#> [1] "2025-01-05 00:45:35 GMT" #> #> $retrieved_number #> [1] 1065 diff --git a/docs/reference/get_meetings.html b/docs/reference/get_meetings.html index 5469c79a..f2d71c8b 100644 --- a/docs/reference/get_meetings.html +++ b/docs/reference/get_meetings.html @@ -194,7 +194,7 @@

Examples#> [1] "Meeting Records" #> #> $query_time -#> [1] "2025-01-05 00:33:33 GMT" +#> [1] "2025-01-05 00:45:44 GMT" #> #> $retrieved_number #> [1] 1 @@ -260,7 +260,7 @@

Examples#> [1] "Meeting Records" #> #> $query_time -#> [1] "2025-01-05 00:33:34 GMT" +#> [1] "2025-01-05 00:45:45 GMT" #> #> $retrieved_number #> [1] 104 diff --git a/docs/reference/get_parlquestions.html b/docs/reference/get_parlquestions.html index dc003672..f4ec8663 100644 --- a/docs/reference/get_parlquestions.html +++ b/docs/reference/get_parlquestions.html @@ -184,7 +184,7 @@

Examples#> [1] "Parliamentary Questions Records" #> #> $query_time -#> [1] "2025-01-05 00:33:45 GMT" +#> [1] "2025-01-05 00:45:55 GMT" #> #> $retrieved_number #> [1] 1584 @@ -248,7 +248,7 @@

Examples#> [1] "Parliamentary Questions Records" #> #> $query_time -#> [1] "2025-01-05 00:33:49 GMT" +#> [1] "2025-01-05 00:46:00 GMT" #> #> $retrieved_number #> [1] 330 diff --git a/docs/search.json b/docs/search.json index 2997ed62..171f3abe 100644 --- a/docs/search.json +++ b/docs/search.json @@ -1 +1 @@ -[{"path":"https://davidycliao.github.io/legisTaiwan/CONDUCT.html","id":null,"dir":"","previous_headings":"","what":"Contributor Code of Conduct","title":"Contributor Code of Conduct","text":"contributors maintainers project, pledge respect people contribute reporting issues, posting feature requests, updating documentation, submitting pull requests patches, activities. committed making participation project harassment-free experience everyone, regardless level experience, gender, gender identity expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, choice text editor. Examples unacceptable behavior participants include use sexual language imagery, derogatory comments personal attacks, trolling, public private harassment, insults, unprofessional conduct. Project maintainers right responsibility remove, edit, reject comments, commits, code, wiki edits, issues, contributions aligned Code Conduct. Project maintainers follow Code Conduct may removed project team. Instances abusive, harassing, otherwise unacceptable behavior may reported opening issue contacting one project maintainers. Code Conduct adapted Contributor Covenant (http:contributor-covenant.org), version 1.0.0, available http://contributor-covenant.org/version/1/0/0/","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/get_bills.html","id":"an-example-of-the-records-of-the-bills","dir":"Articles","previous_headings":"","what":"An Example of the Records of the Bills","title":"The Records of the Bills","text":"section demonstrates fetch analyze legislative bills data Taiwan’s parliament using legisTaiwan package. ’ll explore two different methods retrieving bill data using specific date ranges legislative terms. First, ’ll fetch bills within specific date range. Note dates use Republic China (ROC) calendar system: Start date: 106/01/20 (ROC calendar) End date: 111/03/10 (ROC calendar) get_bills() function returns comprehensive list containing metadata actual bill data: billdata list containing 12 elements: $title “records bill sponsor co-sponsor” $query_time: imestamp data retrieved $retrieved_number: Total number records retrieved $proposer: Filter condition bill proposers $start_date_ad end_date_ad: $url: source API URL data $variable_names: List column names dataset $manual_info: Link official documentation page $data: tibble [12,519 × 9] billdata$data returns tibble table containing relevent information. query_time: data retrieved retrieved_number: Number records fetched meeting_unit: Legislative unit information start_date_ad/end_date_ad: Dates Western calendar start_date/end_date: Dates ROC calendar url: Source URL variable_names: Column names dataset manual_info: Additional documentation data: actual bill records Alternatively, can fetch bills legislative term using get_bills_2(): retrieves bills specified legislative term (case, 11th term), providing convenient way analyze legislative activities within specific parliamentary periods. returned data includes detailed information bill, : Bill status progress Sponsoring legislators Committee referrals Dates various legislative actions Bill content explanatory notes","code":"library(legisTaiwan) #> Error in get(paste0(generic, \".\", class), envir = get_method_env()) : #> object 'type_sum.accel' not found #> ## legisTaiwan ## #> ## An R package connecting to the Taiwan Legislative API. ## billdata <- get_bills(start_date = 1030120,end_date = 1110310, verbose = TRUE) #> #> Input Format Information: #> ------------------------ #> Date format: YYYMMDD (ROC calendar) #> Example: 1090101 for 2020/01/01 #> ------------------------ #> #> Downloading data... #> | | | 0% | |=================== | 30% | |====================================== | 60% | |========================================================== | 90% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> Retrieved URL: #> https://www.ly.gov.tw/WebAPI/LegislativeBill.aspx?from=1030120&to=1110310&proposer=&mode=json #> Total Unique Proposers: 4585 #> Retrieved date between: 2014-01-20 and 2022-03-10 #> Retrieved Number: 12519 #> Total Unique Proposers: 4585 #> =================================== str(billdata, give.attr = FALSE) #> List of 12 #> $ title : chr \"the records of bill sponsor and co-sponsor\" #> $ query_time : POSIXct[1:1], format: \"2024-12-28 02:56:17\" #> $ retrieved_number: int 12519 #> $ proposer : NULL #> $ start_date_ad : Date[1:1], format: \"2014-01-20\" #> $ end_date_ad : Date[1:1], format: \"2022-03-10\" #> $ start_date : num 1030120 #> $ end_date : num 1110310 #> $ url : chr \"https://www.ly.gov.tw/WebAPI/LegislativeBill.aspx?from=1030120&to=1110310&proposer=&mode=json\" #> $ variable_names : chr [1:9] \"date\" \"term\" \"sessionPeriod\" \"sessionTimes\" ... #> $ manual_info : chr \"https://www.ly.gov.tw/Pages/List.aspx?nodeid=153\" #> $ data : tibble [12,519 × 9] (S3: tbl_df/tbl/data.frame) #> ..$ date : chr [1:12519] \"1110304\" \"1110304\" \"1110304\" \"1110304\" ... #> ..$ term : chr [1:12519] \"10\" \"10\" \"10\" \"10\" ... #> ..$ sessionPeriod : chr [1:12519] \"05\" \"05\" \"05\" \"05\" ... #> ..$ sessionTimes : chr [1:12519] \"02\" \"02\" \"02\" \"02\" ... #> ..$ billName : chr [1:12519] \"公民投票法第三十條及第三十二條條文修正草案\" \"財政收支劃分法第十六條之二、第三十七條之二及第三十八條之二條文修正草案\" \"勞工保險條例第六十六條及第六十九條條文修正草案\" \"中華民國憲法增修條文第九條之一、第十條及第十條之一條文修正草案\" ... #> ..$ billProposer : chr [1:12519] \"曾銘宗\" \"曾銘宗 ; 費鴻泰 ; 謝衣鳯\" \"曾銘宗 ; 費鴻泰 ; 謝衣鳯\" \"孔文吉\" ... #> ..$ billCosignatory: chr [1:12519] \"萬美玲 ; 鄭天財 ; 林為洲 ; 鄭麗文 ; 楊瓊瓔 ; 吳怡玎 ; 洪孟楷 ; 林德福 ; 溫玉霞 ; 孔文吉 ; 陳雪生 ; 李德維 ; 林\"| __truncated__ \"廖婉汝 ; 洪孟楷 ; 葉毓蘭 ; 陳玉珍 ; 徐志榮 ; 李貴敏 ; 林文瑞 ; 李德維 ; 溫玉霞 ; 萬美玲 ; 鄭正鈐 ; 鄭天財 ; 林\"| __truncated__ \"鄭正鈐 ; 洪孟楷 ; 李貴敏 ; 廖婉汝 ; 林思銘 ; 陳玉珍 ; 徐志榮 ; 葉毓蘭 ; 李德維 ; 溫玉霞 ; 萬美玲 ; 林文瑞 ; 吳\"| __truncated__ \"陳雪生 ; 洪孟楷 ; 林文瑞 ; 賴士葆 ; 廖國棟 ; 曾銘宗 ; 鄭正鈐 ; 陳椒華 ; 傅崐萁 ; 溫玉霞 ; 翁重鈞 ; 萬美玲 ; 賴\"| __truncated__ ... #> ..$ billStatus : chr [1:12519] \"\" \"\" \"\" \"\" ... #> ..$ date_ad : Date[1:12519], format: \"2022-03-04\" ... billdata$data #> # A tibble: 12,519 × 9 #> date term sessionPeriod sessionTimes billName billProposer #> #> 1 1110304 10 05 02 公民投票法第三十條及第三十二條條… 曾銘宗 #> 2 1110304 10 05 02 財政收支劃分法第十六條之二、第三… 曾銘宗 ; 費鴻泰 ;… #> 3 1110304 10 05 02 勞工保險條例第六十六條及第六十九… 曾銘宗 ; 費鴻泰 ;… #> 4 1110304 10 05 02 中華民國憲法增修條文第九條之一、… 孔文吉 #> 5 1110304 10 05 02 公平交易法第四十二條條文修正草案… 洪孟楷 #> 6 1110304 10 05 02 國民教育法第二條、第三條及第六條… 洪孟楷 #> 7 1110304 10 05 02 職業安全衛生法第一條、第六條及第… 洪孟楷 #> 8 1110304 10 05 02 耕地三七五減租條例第十九條及第三… 張育美 #> 9 1110304 10 05 02 建築法第七十七條之一及第九十一條… 張育美 #> 10 1110304 10 05 02 道路交通管理處罰條例第三十一條條… 張育美 #> # ℹ 12,509 more rows #> # ℹ 3 more variables: billCosignatory , billStatus , #> # date_ad full_term <- get_bills_2(term = 11) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10, 11) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading legislative bills data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> Retrieved URL: #> https://data.ly.gov.tw/odw/ID20Action.action?term=11&sessionPeriod=&sessionTimes=&meetingTimes=&billName=&billOrg=&billProposer=&billCosignatory=&fileType=json #> Retrieved Term: 11 #> Total Bills: 2880 #> Total Unique Proposers: 115 #> =================================== full_term #> $title #> [1] \"The records of the questions answered by the executives\" #> #> $query_time #> [1] \"2024-12-28 02:56:29 GMT\" #> #> $retrieved_number #> [1] 2880 #> #> $budget_bills #> [1] 18 #> #> $budget_percentage #> [1] 0.625 #> #> $retrieved_term #> [1] \"11\" #> #> $url #> [1] \"https://data.ly.gov.tw/odw/ID20Action.action?term=11&sessionPeriod=&sessionTimes=&meetingTimes=&billName=&billOrg=&billProposer=&billCosignatory=&fileType=json\" #> #> $variable_names #> [1] \"term\" \"sessionPeriod\" \"sessionTimes\" #> [4] \"meetingTimes\" \"billNo\" \"billName\" #> [7] \"billOrg\" \"billProposer\" \"billCosignatory\" #> [10] \"billStatus\" \"pdfUrl\" \"docUrl\" #> [13] \"selectTerm\" #> #> $manual_info #> [1] \"https://data.ly.gov.tw/getds.action?id=2\" #> #> $data #> # A tibble: 2,880 × 13 #> term sessionPeriod sessionTimes meetingTimes billNo billName billOrg #> #> 1 11 01 01 \"\" 2021100… 「立法委員互選… 本院委員羅智… #> 2 11 01 01 \"\" 2021100… 「再生醫療法草… 本院委員邱議… #> 3 11 01 01 \"\" 2021100… 「再生醫療製劑… 本院委員邱議… #> 4 11 01 01 \"\" 2021100… 「癌症防治法第… 本院委員邱議… #> 5 11 01 01 \"\" 2021100… 「不在籍投票法… 本院委員王鴻… #> 6 11 01 01 \"\" 2021100… 「預算法第八十… 本院委員王鴻… #> 7 11 01 01 \"\" 2021100… 「核子反應器設… 本院委員王鴻… #> 8 11 01 01 \"\" 2021100… 「立法院職權行… 本院台灣民眾… #> 9 11 01 01 \"\" 2021100… 「貪污治罪條例… 本院台灣民眾… #> 10 11 01 01 \"\" 2021100… 「立法委員互選… 本院台灣民眾… #> # ℹ 2,870 more rows #> # ℹ 6 more variables: billProposer , billCosignatory , #> # billStatus , pdfUrl , docUrl , selectTerm "},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/articles/get_caucus_meetings.html","id":"retrive-data","dir":"Articles","previous_headings":"Fetching Caucus Meeting Data","what":"Retrive Data","title":"An Example of Party Caucus Negotiation","text":"First, load package: Now, let’s retrieve caucus meeting records. Note special date format required: Important notes date formatting: Dates must ROC calendar format Format required: “YYY/MM/DD” (slashes) differs format used get_bills()","code":"library(legisTaiwan) #> Error in get(paste0(generic, \".\", class), envir = get_method_env()) : #> object 'type_sum.accel' not found #> ## legisTaiwan ## #> ## An R package connecting to the Taiwan Legislative API. ## caucus_df <- get_caucus_meetings( start_date = \"111/09/23\", end_date = \"112/01/19\", verbose = FALSE )"},{"path":"https://davidycliao.github.io/legisTaiwan/articles/get_caucus_meetings.html","id":"view-the-retrieved-data","dir":"Articles","previous_headings":"Fetching Caucus Meeting Data","what":"View the Retrieved data:","title":"An Example of Party Caucus Negotiation","text":"returned data includes comprehensive information caucus meetings, : Meeting dates times Participating party caucuses Meeting agendas topics Attendance records Meeting outcomes decisions","code":"caucus_df$data #> # A tibble: 43 × 15 #> comYear comVolume comBookId term sessionPeriod sessionTimes #> #> 1 103 43 \"四\" 08 05 12 #> 2 103 43 \"四\" 08 05 12 #> 3 111 101 \"下\" null null null #> 4 111 104 \"\" 10 06 08 #> 5 111 104 \"\" 10 06 08 #> 6 111 105 \"下\" null null null #> 7 111 107 \"\" null null null #> 8 111 114 \"下\" null null null #> 9 111 86 \"\" 10 06 01 #> 10 111 87 \"\" 10 06 02 #> # ℹ 33 more rows #> # ℹ 9 more variables: meetingTimes , meetingDate , #> # meetingName , subject , pageStart , pageEnd , #> # docUrl , htmlUrl , selectTerm "},{"path":"https://davidycliao.github.io/legisTaiwan/articles/get_caucus_meetings.html","id":"access-original-legislative-documents","dir":"Articles","previous_headings":"Fetching Caucus Meeting Data","what":"Access Original Legislative Documents","title":"An Example of Party Caucus Negotiation","text":"docUrl field provides direct access original caucus meeting minutes documentation. URL links official Legislative Yuan’s repository researchers public can view detailed records caucus deliberations.","code":"caucus_df$data[c(\"subject\", \"docUrl\")] #> # A tibble: 43 × 2 #> subject docUrl #> #> 1 (一)行政院函請審議「運動彩券發行條例部分條文修正草案」;(二)委員蔣乃辛等29人擬具「運動彩券發行條例第十三條及第二十三條條… https… #> 2 行政院函請審議「植物防疫檢疫法部分條文修正草案」案 https… #> 3 一、本院社會福利及衛生環境委員會報告併案審查行政院函請審議「精神衛生法修正草案」、委員王婉諭等17人擬具「精神衛生法修正草案」… https… #> 4 一、本院社會福利及衛生環境委員會報告併案審查行政院函請審議「精神衛生法修正草案」、委員王婉諭等17人擬具「精神衛生法修正草案」… https… #> 5 一、併案協商(一)司法及法制委員會併案審查(1)行政院、司法院函請審議「中華民國刑法部分條文修正草案」(2)委員李貴敏等19人… https… #> 6 行政院函請審議、本院台灣民眾黨黨團、時代力量黨團、委員曾銘宗等16人、委員楊瓊瓔等21人、委員謝衣鳯等16人、委員陳亭妃等21… https… #> 7 一、本院社會福利及衛生環境委員會報告併案審查行政院函請審議「精神衛生法修正草案」、委員王婉諭等17人擬具「精神衛生法修正草案」… https… #> 8 研商「公務人員個人專戶制退休資遣撫卹法草案」等5案相關事宜(「公務人員退休資遣撫卹法第九十三條及第九十五條條文修正草案」、「公… https… #> 9 一、本院內政委員會報告併案審查行政院函請審議、委員王美惠等20人、委員蔣萬安等19人、委員賴惠員等19人、委員張宏陸等20人、… https… #> 10 本院內政委員會報告併案審查民眾黨黨團、委員曾銘宗等18人、民眾黨黨團、時代力量黨團及委員吳玉琴等19人分別擬具「租賃住宅市場發… https… #> # ℹ 33 more rows"},{"path":"https://davidycliao.github.io/legisTaiwan/articles/get_legislators.html","id":"using-get_legislators-as-an-example-to-fetch-legislator-data","dir":"Articles","previous_headings":"","what":"Using get_legislators() as an Example to Fetch Legislator Data","title":"Legislator's Demographic Data","text":"get_legislators() function provides straightforward way access Taiwan’s legislator data official parliamentary database. ’s step--step demonstration: First, load legisTaiwan package contains tools accessing Taiwan’s legislative data. , call get_legislators() store results info. verbose = FALSE parameter suppresses progress bar data fetching. makes function run quietly without displaying download progress. command displays retrieved data includes comprehensive information legislators. returned data frame contains various fields legislator, : Personal information (name, gender, birth date) Electoral district details Party affiliation Committee ! row represents unique legislator, making easy analyze extract specific information Taiwan’s parliamentary representatives.","code":"library(legisTaiwan) #> Error in get(paste0(generic, \".\", class), envir = get_method_env()) : #> object 'type_sum.accel' not found #> ## legisTaiwan ## #> ## An R package connecting to the Taiwan Legislative API. ## info <- get_legislators(verbose = FALSE) #> #> Term is not defined... #> Requesting full data from the API. Please ensure stable connectivity. info$data #> # A tibble: 1,649 × 15 #> term name ename sex party partyGroup areaName committee onboardDate #> #> 1 00 \"\" \"\" \"\" \"\" 00 全國不分區…… \"\" \"\" #> 2 10 \"王定宇… \"Wan… \"男\" \"民主進… 民主進步黨 臺南市第6選舉… \"第10屆第1會… \"2020/02/0… #> 3 10 \"孔文吉… \"Kun… \"男\" \"中國國… 中國國民黨 山地原住民選舉… \"第10屆第1會… \"2020/02/0… #> 4 10 \"王美惠… \"Wan… \"女\" \"民主進… 民主進步黨 嘉義市選舉區…… \"第10屆第1會… \"2020/02/0… #> 5 10 \"王婉諭… \"Wan… \"女\" \"時代力… 時代力量 全國不分區及僑… \"第10屆第1會… \"2020/02/0… #> 6 10 \"伍麗華… \"WuL… \"女\" \"民主進… 民主進步黨 山地原住民選舉… \"第10屆第1會… \"2020/02/0… #> 7 10 \"江永昌… \"Chi… \"男\" \"民主進… 民主進步黨 新北市第8選舉… \"第10屆第1會… \"2020/02/0… #> 8 10 \"江啟臣… \"Chi… \"男\" \"中國國… 中國國民黨 臺中市第8選舉… \"第10屆第1會… \"2020/02/0… #> 9 10 \"何志偉… \"Ho … \"男\" \"民主進… 民主進步黨 臺北市第2選舉… \"第10屆第1會… \"2020/02/0… #> 10 10 \"何欣純… \"Ho … \"女\" \"民主進… 民主進步黨 臺中市第7選舉… \"第10屆第1會… \"2020/02/0… #> # ℹ 1,639 more rows #> # ℹ 6 more variables: degree , experience , picUrl , #> # leaveFlag , leaveDate , leaveReason "},{"path":"https://davidycliao.github.io/legisTaiwan/articles/get_parlquestions.html","id":"accessing-parliamentary-questions","dir":"Articles","previous_headings":"","what":"Accessing Parliamentary Questions","title":"Fetching Parliarmentary Questions","text":"tutorial demonstrates use legisTaiwan package access parliamentary questions executive responses Taiwan’s Legislative Yuan. package provides convenient functions fetch publicly available data.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/get_parlquestions.html","id":"loading-the-package","dir":"Articles","previous_headings":"Accessing Parliamentary Questions","what":"Loading the Package","title":"Fetching Parliarmentary Questions","text":"First, install load legisTaiwan package:","code":"library(legisTaiwan)"},{"path":"https://davidycliao.github.io/legisTaiwan/articles/get_parlquestions.html","id":"fetching-parliamentary-questions","dir":"Articles","previous_headings":"Accessing Parliamentary Questions","what":"Fetching Parliamentary Questions","title":"Fetching Parliarmentary Questions","text":"Use get_parlquestions() function retrieve parliamentary questions legislators: Function parameters: term: Legislative term (must numeric, e.g., 11) session_period: Session period (optional) verbose = TRUE: Display download progress information returned data contains: title: Data title query_time: Query timestamp _retrieved_number: Number records retrieved term: Legislative term sessionPeriod: Session period sessionTimes: Session count item: Question items","code":"# Fetch questions from the 11th term pa_term10 <- get_parlquestions(term = 11, verbose = TRUE) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading parliamentary questions data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> URL: #> https://data.ly.gov.tw/odw/ID6Action.action?term=11&sessionPeriod=&sessionTimes=&item=&fileType=json #> Term: 11 #> Total Questions: 105 #> #> Session Distribution: #> Session 01: 74 #> Session 02: 31 #> =================================== # Examine the data structure str(pa_term10) #> List of 8 #> $ title : chr \"Parliamentary Questions Records\" #> $ query_time : POSIXct[1:1], format: \"2024-12-28 02:56:46\" #> $ retrieved_number: int 105 #> $ retrieved_term : chr \"11\" #> $ url : chr \"https://data.ly.gov.tw/odw/ID6Action.action?term=11&sessionPeriod=&sessionTimes=&item=&fileType=json\" #> $ variable_names : chr [1:5] \"term\" \"sessionPeriod\" \"sessionTimes\" \"item\" ... #> $ manual_info : chr \"https://data.ly.gov.tw/getds.action?id=6\" #> $ data : tibble [105 × 5] (S3: tbl_df/tbl/data.frame) #> ..$ term : chr [1:105] \"11\" \"11\" \"11\" \"11\" ... #> ..$ sessionPeriod: chr [1:105] \"01\" \"01\" \"01\" \"01\" ... #> ..$ sessionTimes : chr [1:105] \"01\" \"01\" \"05\" \"05\" ... #> ..$ item : chr [1:105] \"乙、本院委員質詢部分\" \"一、本院羅委員智強,就文化部發放文化成年禮金政策屢傳遭濫用\" \"乙、本院委員質詢部分\" \"一、本院謝委員龍介,鑑於我國主要消費市場位處北臺灣,常需大型車輛南來北往載運暢貨,串聯產業供應鏈。惟民眾反映,\"| __truncated__ ... #> ..$ selectTerm : chr [1:105] \"all\" \"all\" \"all\" \"all\" ..."},{"path":"https://davidycliao.github.io/legisTaiwan/articles/get_parlquestions.html","id":"retrieving-executive-responses","dir":"Articles","previous_headings":"Accessing Parliamentary Questions","what":"Retrieving Executive Responses","title":"Fetching Parliarmentary Questions","text":"Use get_executive_response() function fetch responses Executive Yuan: Function parameters: term: Legislative term session_period: Session period verbose = TRUE: Display download progress information returned data includes: title: Data title query_time: Query timestamp retrieved_number: Number records retrieved data: dataframe containing response information","code":"# Fetch executive responses from the 10th term, 2nd session exec_response <- get_executive_response(term = 10, session_period = 2, verbose = TRUE) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10, 11) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading executive response data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> URL: #> https://data.ly.gov.tw/odw/ID2Action.action?term=10&sessionPeriod=02&sessionTimes=&item=&fileType=json #> Term: 10 #> Session Period: 2 #> Total Responses: 1083 #> #> Session Distribution: #> Session 02: 1083 #> =================================== # Examine the data structure head(exec_response$data) #> # A tibble: 6 × 10 #> term sessionPeriod sessionTimes meetingTimes eyNumber lyNumber subject #> #> 1 10 02 01 null (行政院函 中華… (立法院函 編… (一)行政院… #> 2 10 02 01 null (行政院函 中華… (立法院函 編… (二)行政院… #> 3 10 02 01 null (行政院函 中華… (立法院函 編… (三)行政院… #> 4 10 02 01 null (行政院函 中華… (立法院函 編… (四)行政院… #> 5 10 02 01 null (行政院函 中華… (立法院函 編… (五)行政院… #> 6 10 02 01 null (行政院函 中華… (立法院函 編… (六)行政院… #> # ℹ 3 more variables: content , docUrl , selectTerm "},{"path":"https://davidycliao.github.io/legisTaiwan/articles/manual.html","id":"statistical-information","dir":"Articles","previous_headings":"","what":"Statistical Information","title":"Manual","text":"get_tly_stat(): Fetch Parse Legislative Yuan Statistics","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/manual.html","id":"legislators","dir":"Articles","previous_headings":"","what":"Legislators","title":"Manual","text":"get_ly_legislator_detail(): Retrieve Complete Historical Records Legislators get_ly_legislators_by_term(): Get Legislators Legislative Term get_ly_legislator_cosign_bills(): Retrieve Legislator’s Co-sponsored Bills get_ly_legislator_bills(): Get Bills Proposed Legislator","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/manual.html","id":"bill","dir":"Articles","previous_headings":"","what":"Bill","title":"Manual","text":"get_ly_bills(): Fetch Parse Legislative Yuan Bills","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/manual.html","id":"committees","dir":"Articles","previous_headings":"","what":"Committees","title":"Manual","text":"get_ly_committee_meets(): Fetch Legislative Yuan Committee Meetings get_ly_committees_type(): Fetch Parse Legislative Yuan Committee Details, Jurisdiction Codes","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/manual.html","id":"interpellation","dir":"Articles","previous_headings":"","what":"Interpellation","title":"Manual","text":"get_ly_interpellations(): Get Legislative Yuan Interpellation Records","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/manual.html","id":"ivod","dir":"Articles","previous_headings":"","what":"IVOD","title":"Manual","text":"get_ly_ivod(): Get Legislative Yuan IVOD Records","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/manual.html","id":"old-api-endpoint","dir":"Articles","previous_headings":"","what":"Old API Endpoint","title":"Manual","text":"provide comprehensive guides documentation help migrate new API endpoints. get_parlquestions(): parliamentary questions asked legislators 提供議事日程本院委員之質詢事項資訊 (自第8屆) get_meetings(): spoken meeting records 委員發言 get_caucus_meetings(): meeting records cross-caucus session 提供公報之黨團協商資訊 (自第8屆) get_executive_response(): questions answered executives提供公報質詢事項行政院答復資訊 (自第8屆) get_public_debates(): public debates 提供公報之國是論壇資訊,並包含書面意見自 (自第8屆) get_speech_video(): full video information meetings committees 提供立法院院會及委員會之委員發言片段相關影片資訊 (自第9屆) get_committee_record(): records reviewed items committees 提供委員會會議審查之議案項目 (自第8屆) get_bills(): records bills 法律提案 (能取得最早日不詳,待檢查) get_bills_2(): records legislators government bill proposals 提供委員及政府之議案提案資訊 (自第8屆) passed_legislation(): legislation information passed third reading 提供公報院會紀錄之三讀通過議案資訊。(自第8屆第1會期起) coming soon get_variable_info(): API’s endpoint user manuals 使用說明文件 review_session_info(): session period year formatted Minguo (ROC) calendar. 屆期年對照表 get_legislators(): legislator demographics 提供委員基本資料","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/quickstart.html","id":"get-started-with-using-remotes","dir":"Articles","previous_headings":"","what":"Get Started with Using remotes:","title":"Quick Start","text":"legisTaiwan R package accessing Taiwan Legislative Yuan API. goal legisTaiwan make quickly instantly download Taiwan’s legislative data, digitized textual video records research project analyze public policies.","code":"install.packages(\"remotes\") remotes::install_github(\"davidycliao/legisTaiwan\", force = TRUE) library(legisTaiwan) #> Error in get(paste0(generic, \".\", class), envir = get_method_env()) : #> object 'type_sum.accel' not found #> ## legisTaiwan v0.2.1 ## #> ## An R package connecting to the Taiwan Legislative API. ##"},{"path":"https://davidycliao.github.io/legisTaiwan/articles/quickstart.html","id":"taiwan-legislative-yuan-api-v2","dir":"Articles","previous_headings":"","what":"Taiwan Legislative Yuan API (v2)","title":"Quick Start","text":"Legislative Yuan API transitioning https://ly.govapi.tw https://v2.ly.govapi.tw. maintaining support functions use legacy API, please note old API endpoint eventually deprecated. recommend users gradually transition newer API versions become available. Legacy API (ly.govapi.tw) - Still functional receive updates New API (v2.ly.govapi.tw) - Current active development maintenance","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/quickstart.html","id":"statistical-information","dir":"Articles","previous_headings":"Taiwan Legislative Yuan API (v2)","what":"Statistical Information","title":"Quick Start","text":"get_tly_stat(): Fetch Parse Legislative Yuan Statistics","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/quickstart.html","id":"legislators","dir":"Articles","previous_headings":"Taiwan Legislative Yuan API (v2)","what":"Legislators","title":"Quick Start","text":"get_ly_legislator_detail(): Retrieve Complete Historical Records Legislators get_ly_legislators_by_term(): Get Legislators Legislative Term get_ly_legislator_cosign_bills(): Retrieve Legislator’s Co-sponsored Bills get_ly_legislator_bills(): Get Bills Proposed Legislator","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/quickstart.html","id":"bill","dir":"Articles","previous_headings":"Taiwan Legislative Yuan API (v2)","what":"Bill","title":"Quick Start","text":"get_ly_bills(): Fetch Parse Legislative Yuan Bills","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/quickstart.html","id":"committees","dir":"Articles","previous_headings":"Taiwan Legislative Yuan API (v2)","what":"Committees","title":"Quick Start","text":"get_ly_committee_meets(): Fetch Legislative Yuan Committee Meetings get_ly_committees_type(): Fetch Parse Legislative Yuan Committee Details, Jurisdiction Codes","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/quickstart.html","id":"interpellation","dir":"Articles","previous_headings":"Taiwan Legislative Yuan API (v2)","what":"Interpellation","title":"Quick Start","text":"get_ly_interpellations(): Get Legislative Yuan Interpellation Records","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/quickstart.html","id":"ivod","dir":"Articles","previous_headings":"Taiwan Legislative Yuan API (v2)","what":"IVOD","title":"Quick Start","text":"get_ly_ivod(): Get Legislative Yuan IVOD Records","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/quickstart.html","id":"taiwan-legislative-yuan-api-v1","dir":"Articles","previous_headings":"","what":"Taiwan Legislative Yuan API (v1)","title":"Quick Start","text":"provide comprehensive guides documentation help migrate new API endpoints. get_parlquestions(): parliamentary questions asked legislators 提供議事日程本院委員之質詢事項資訊 (自第8屆) get_meetings(): spoken meeting records 委員發言 get_caucus_meetings(): meeting records cross-caucus session 提供公報之黨團協商資訊 (自第8屆) get_executive_response(): questions answered executives提供公報質詢事項行政院答復資訊 (自第8屆) get_public_debates(): public debates 提供公報之國是論壇資訊,並包含書面意見自 (自第8屆) get_speech_video(): full video information meetings committees 提供立法院院會及委員會之委員發言片段相關影片資訊 (自第9屆) get_committee_record(): records reviewed items committees 提供委員會會議審查之議案項目 (自第8屆) get_bills(): records bills 法律提案 (能取得最早日不詳,待檢查) get_bills_2(): records legislators government bill proposals 提供委員及政府之議案提案資訊 (自第8屆) passed_legislation(): legislation information passed third reading 提供公報院會紀錄之三讀通過議案資訊。(自第8屆第1會期起) coming soon get_variable_info(): API’s endpoint user manuals 使用說明文件 review_session_info(): session period year formatted Minguo (ROC) calendar. 屆期年對照表 get_legislators(): legislator demographics 提供委員基本資料","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/quickstart.html","id":"how-to-contribute","dir":"Articles","previous_headings":"","what":"How to Contribute","title":"Quick Start","text":"Contributions form comments, code suggestions, tutorial examples welcome. Please note LeigsTaiwan released Contributor Code Conduct. contributing project, agree abide terms.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Yen-Chieh Liao. Author, maintainer. Li Tang. Contributor, author. . Copyright holder, funder. Taiwan National Science Technology Council. Contributor. Taiwan Science & Technology Policy Research Information Center NARLabs. Contributor.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Liao Y, Tang L (2025). legisTaiwan: Interface Access Taiwan Legislative API R. R package version 0.2.1, https://davidycliao.github.io/legisTaiwan/.","code":"@Manual{, title = {legisTaiwan: An Interface to Access Taiwan Legislative API in R}, author = {Yen-Chieh Liao and Li Tang}, year = {2025}, note = {R package version 0.2.1}, url = {https://davidycliao.github.io/legisTaiwan/}, }"},{"path":"https://davidycliao.github.io/legisTaiwan/index.html","id":"real-time-and-archives-of-taiwan-legislative-data-in-r-","dir":"","previous_headings":"","what":"Real-time and Archives of Taiwan Legislative Data in R","title":"Accessing Real-time and Archives of Taiwan Legislative Data in R","text":"legisTaiwan designed streamline access real-time archives Taiwan’s legislative data, drawing inspiration UK’s TheyWorkForYou API. providing straightforward access Taiwan Legislative Yuan API R, package aims enhance legislative accountability public transparency also serves powerful tool academic research. Scholars can easily retrieve analyze legislative data including voting records, parliamentary questions, bill proposals, facilitating quantitative research empirical analysis. package interfaces directly Legislative Yuan API endpoints, stable internet connection required. Users welcome contact author API implementation assistance. legisTaiwan 套件旨在簡化台灣立法院資料的即時存取,其設計理念來自於英國的 TheyWorkForYou API。透過在 R 環境中提供直接連接立法院開放資料 API 的便捷管道,本套件不僅致力於提升立法問責制和公共透明度,更為學術研究者提供了系統化分析立法數據的工具。研究人員可以輕鬆獲取並分析立法委員的表決紀錄、問政質詢、法案提案等資料,有助於量化研究和實證分析。由於套件需要直接與立法院 API 介接,使用時請確保網路連線穩定。如有任何 API 使用上的問題,歡迎與套件作者聯繫。","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/index.html","id":"get-started-with-using-remotes","dir":"","previous_headings":"Real-time and Archives of Taiwan Legislative Data in R","what":"Get Started with Using remotes:","title":"Accessing Real-time and Archives of Taiwan Legislative Data in R","text":"","code":"install.packages(\"remotes\") remotes::install_github(\"davidycliao/legisTaiwan\", force = TRUE) library(legisTaiwan) #> ## legisTaiwan ## #> ## An R package connecting to the Taiwan Legislative API. ##"},{"path":"https://davidycliao.github.io/legisTaiwan/index.html","id":"summary-descriptive-of-taiwan-legilative-yuan-api","dir":"","previous_headings":"Real-time and Archives of Taiwan Legislative Data in R","what":"Summary Descriptive of Taiwan Legilative Yuan API","title":"Accessing Real-time and Archives of Taiwan Legislative Data in R","text":"Legislative Bills Statistics Legislative Meeting Statistics Legislative Video (IVOD) Statistics","code":"analyze_bills(stats) #> #> === Bill Statistics Summary === #> Total Bills: 131762 #> Last Updated: 2025-01-04 22:18:58 #> #> First Five Terms Bill Count: #> term count percentage cumulative #> 1 11 8270 6.28 8270 #> 2 10 43018 32.65 51288 #> 3 9 30792 23.37 82080 #> 4 8 26284 19.95 108364 #> 5 7 15726 11.94 124090 analyze_meetings(stats) #> #> === Meeting Statistics Summary === #> Total Meetings: 7111 #> #> Meeting Records Statistics by Term: #> term count max_meeting_date meetdata_count 議事錄_count minutes_ratio #> 1 11 635 2025-01-09 00:00:00 610 417 65.67 #> 2 10 2267 2024-05-17 01:00:00 2146 1602 70.67 #> 3 9 2390 2020-01-22 00:00:00 2237 1614 67.53 #> 4 8 1818 2015-12-18 00:00:00 1434 1468 80.75 #> 5 6 1 0 1 100.00 #> last_meeting_date #> 1 2025-01-09 #> 2 2024-05-17 #> 3 2020-01-22 #> 4 2015-12-18 #> 5 analyze_ivod(stats) #> #> === Video Statistics Summary === #> Total Videos: 88986 #> Data Period: 2005-03-14 to 2025-01-03 #> #> Video Statistics by Term: #> term count start_date end_date start_date_fmt #> 1 11 9961 2024-02-05 07:00:00 2025-01-03 01:00:00 2024-02-05 #> 2 10 33852 2020-02-14 06:00:00 2024-01-09 01:00:00 2020-02-14 #> 3 9 34167 2016-02-19 01:00:00 2020-01-20 01:00:00 2016-02-19 #> 4 8 9608 2012-02-24 01:00:00 2015-12-18 01:00:00 2012-02-24 #> 5 7 1364 2008-02-29 01:00:00 2011-12-14 01:00:00 2008-02-29 #> end_date_fmt period_days avg_daily_videos #> 1 2025-01-03 332.750 29.94 #> 2 2024-01-09 1424.792 23.76 #> 3 2020-01-20 1431.000 23.88 #> 4 2015-12-18 1393.000 6.90 #> 5 2011-12-14 1384.000 0.99"},{"path":"https://davidycliao.github.io/legisTaiwan/index.html","id":"important-notice-api-migration","dir":"","previous_headings":"Real-time and Archives of Taiwan Legislative Data in R","what":"Important Notice: API Migration","title":"Accessing Real-time and Archives of Taiwan Legislative Data in R","text":"Legislative Yuan API transitioned https://ly.govapi.tw https://v2.ly.govapi.tw. maintaining support functions use legacy API, please note old API endpoint eventually deprecated. recommend users gradually transition newer API versions become available.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_bills.html","id":null,"dir":"Reference","previous_headings":"","what":"Analyze Legislative Bills Statistics — analyze_bills","title":"Analyze Legislative Bills Statistics — analyze_bills","text":"Analyzes visualizes bill statistics Legislative Yuan, including bill counts term, percentages, trends. Creates visualization provides summary statistics.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_bills.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Analyze Legislative Bills Statistics — analyze_bills","text":"","code":"analyze_bills(stats)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_bills.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Analyze Legislative Bills Statistics — analyze_bills","text":"stats list containing Legislative Yuan statistics following structure: bill list containing: total Total number bills max_update_time Last update timestamp terms Data frame columns: term Legislative term number count Number bills term","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_bills.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Analyze Legislative Bills Statistics — analyze_bills","text":"list containing: plot ggplot object showing bill count trends summary data frame bill statistics including: term Term number count Bill count percentage Percentage total cumulative Cumulative count","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_bills.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Analyze Legislative Bills Statistics — analyze_bills","text":"","code":"if (FALSE) { # \\dontrun{ stats <- get_ly_stat() bill_analysis <- analyze_bills(stats) # View the plot print(bill_analysis$plot) # View the summary statistics print(bill_analysis$summary) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_ivod.html","id":null,"dir":"Reference","previous_headings":"","what":"Analyze Legislative Video (IVOD) Statistics — analyze_ivod","title":"Analyze Legislative Video (IVOD) Statistics — analyze_ivod","text":"Analyzes visualizes video records (IVOD - Internet Video Demand) statistics Legislative Yuan, including video counts term, daily averages, time period coverage.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_ivod.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Analyze Legislative Video (IVOD) Statistics — analyze_ivod","text":"","code":"analyze_ivod(stats)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_ivod.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Analyze Legislative Video (IVOD) Statistics — analyze_ivod","text":"stats list containing Legislative Yuan statistics following structure: ivod list containing: total Total number video records date_range list containing: start Start date video archive end End date video archive terms Data frame columns: term Legislative term number count Number videos term start_date Start date term end_date End date term","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_ivod.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Analyze Legislative Video (IVOD) Statistics — analyze_ivod","text":"list containing: plot ggplot object showing video count distribution term summary data frame video statistics including: term Term number count Video count start_date_fmt Formatted start date end_date_fmt Formatted end date period_days Duration days avg_daily_videos Average videos per day","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_ivod.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Analyze Legislative Video (IVOD) Statistics — analyze_ivod","text":"","code":"if (FALSE) { # \\dontrun{ # Get statistics and analyze videos stats <- get_ly_stat() video_analysis <- analyze_ivod(stats) # View the plot print(video_analysis$plot) # View video statistics print(video_analysis$summary) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_meetings.html","id":null,"dir":"Reference","previous_headings":"","what":"Analyze Legislative Meeting Statistics — analyze_meetings","title":"Analyze Legislative Meeting Statistics — analyze_meetings","text":"Analyzes visualizes meeting statistics Legislative Yuan, including meeting counts term, minutes completion rates, produces comparison visualization total meetings available meeting minutes.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_meetings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Analyze Legislative Meeting Statistics — analyze_meetings","text":"","code":"analyze_meetings(stats)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_meetings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Analyze Legislative Meeting Statistics — analyze_meetings","text":"stats list containing Legislative Yuan statistics following structure: meet list containing: total Total number meetings terms Data frame columns: term Legislative term number count Number meetings term max_meeting_date Last meeting date term meetdata_count Number meetings data 議事錄_count Number meetings minutes","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_meetings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Analyze Legislative Meeting Statistics — analyze_meetings","text":"list containing: plot ggplot object showing meeting statistics comparison summary data frame meeting statistics including: term Term number count Total meetings minutes_ratio Percentage meetings minutes last_meeting_date Formatted date last meeting","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_meetings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Analyze Legislative Meeting Statistics — analyze_meetings","text":"","code":"if (FALSE) { # \\dontrun{ # Get statistics and analyze meetings stats <- get_ly_stat() meeting_analysis <- analyze_meetings(stats) # View the plot print(meeting_analysis$plot) # View meeting statistics print(meeting_analysis$summary) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/api_check.html","id":null,"dir":"Reference","previous_headings":"","what":"A General Check for Taiwan Legislative Yuan API — api_check","title":"A General Check for Taiwan Legislative Yuan API — api_check","text":"General Check Taiwan Legislative Yuan API","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/api_check.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"A General Check for Taiwan Legislative Yuan API — api_check","text":"","code":"api_check(start_date = start_date, end_date = end_date)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/api_check.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"A General Check for Taiwan Legislative Yuan API — api_check","text":"start_date start_date inherited global env. end_date end_date inherited global env.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/calculate_bill_trends.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate Legislative Bill Trends and Metrics — calculate_bill_trends","title":"Calculate Legislative Bill Trends and Metrics — calculate_bill_trends","text":"Calculates various trend metrics legislative bills, including bills per meeting bills per day, joining bill meeting statistics across terms.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/calculate_bill_trends.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate Legislative Bill Trends and Metrics — calculate_bill_trends","text":"","code":"calculate_bill_trends(stats)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/calculate_bill_trends.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate Legislative Bill Trends and Metrics — calculate_bill_trends","text":"stats list containing Legislative Yuan statistics following structure: bill$terms Data frame containing bill information: term Legislative term number count Number bills term meet$terms Data frame containing meeting information: term Legislative term number count Number meetings term max_meeting_date Last meeting date term","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/calculate_bill_trends.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Calculate Legislative Bill Trends and Metrics — calculate_bill_trends","text":"data frame containing following columns: term Legislative term number bills Total number bills term meetings Total number meetings term bills_per_meeting Average number bills per meeting bills_per_day Average number bills per day","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/calculate_bill_trends.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate Legislative Bill Trends and Metrics — calculate_bill_trends","text":"","code":"if (FALSE) { # \\dontrun{ # Get statistics and calculate trends stats <- get_ly_stat() trends <- calculate_bill_trends(stats) # View trend analysis print(\"Bill processing trends:\") print(trends) # Analyze specific metrics print(\"Average bills per meeting by term:\") print(trends[c(\"term\", \"bills_per_meeting\")]) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_date.html","id":null,"dir":"Reference","previous_headings":"","what":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar III — check_date","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar III — check_date","text":"transformed_date_meeting() transforms Minguo (Taiwan) Calendar .D. format POSIXct get_bill(), e.g. \"1050531\" \"2016-05-31\".","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_date.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar III — check_date","text":"","code":"check_date(roc_date)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_date.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar III — check_date","text":"roc_date date format Minguo (Taiwan) Calendar (e.g., \"1050531\") character vector","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_date.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar III — check_date","text":"date POSIXct","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_date2.html","id":null,"dir":"Reference","previous_headings":"","what":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar IIII — check_date2","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar IIII — check_date2","text":"transformed_date_meeting() transforms Minguo (Taiwan) Calendar .D. format POSIXct get_bill(), e.g. \"1050531\" \"2016-05-31\".","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_date2.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar IIII — check_date2","text":"","code":"check_date2(roc_date)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_date2.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar IIII — check_date2","text":"roc_date Date format Minguo (Taiwan) calendar (e.g., \"105/05/31\") string vector","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_date2.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar IIII — check_date2","text":"date POSIXct","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_date2.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar IIII — check_date2","text":"check_date transforms ROC date date POSIXct, e.g. \"105/05/31\" \"2016-05-31\".","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_date2.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar IIII — check_date2","text":"","code":"if (FALSE) { # \\dontrun{ check_date2(\"105/05/31\") } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_internet.html","id":null,"dir":"Reference","previous_headings":"","what":"A Check for Internet Connectivity. — check_internet","title":"A Check for Internet Connectivity. — check_internet","text":"Check Internet Connectivity.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_internet.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"A Check for Internet Connectivity. — check_internet","text":"","code":"check_internet(x = curl::has_internet())"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_internet.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"A Check for Internet Connectivity. — check_internet","text":"x default value curl::has_internet(), activate internet connectivity check.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/create_interactive_plot.html","id":null,"dir":"Reference","previous_headings":"","what":"Create Interactive Plot of Legislative Bill Trends — create_interactive_plot","title":"Create Interactive Plot of Legislative Bill Trends — create_interactive_plot","text":"Creates interactive plotly visualization showing trend bill counts across different legislative terms. plot includes hover information interactive features.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/create_interactive_plot.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create Interactive Plot of Legislative Bill Trends — create_interactive_plot","text":"","code":"create_interactive_plot(stats)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/create_interactive_plot.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create Interactive Plot of Legislative Bill Trends — create_interactive_plot","text":"stats list containing Legislative Yuan statistics following structure: bill$terms data frame containing: term Legislative term number count Number bills term","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/create_interactive_plot.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create Interactive Plot of Legislative Bill Trends — create_interactive_plot","text":"plotly object following features: Plot Type Interactive line plot markers Hover Info Dynamic text showing term bill count Layout Title Bill count trends chart X-axis Term labels Y-axis Bill count scale","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/create_interactive_plot.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create Interactive Plot of Legislative Bill Trends — create_interactive_plot","text":"","code":"if (FALSE) { # \\dontrun{ # Create basic interactive plot stats <- get_ly_stat() p <- create_interactive_plot(stats) p # Display the plot # Create plot with custom title p <- create_interactive_plot(stats) %>% layout(title = \"Legislative Bill Trends Analysis\") p } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/dot-clean_names.html","id":null,"dir":"Reference","previous_headings":"","what":"Clean legislator Names — .clean_names","title":"Clean legislator Names — .clean_names","text":"Clean legislator Names","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/dot-clean_names.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Clean legislator Names — .clean_names","text":"","code":".clean_names(x)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/dot-onAttach.html","id":null,"dir":"Reference","previous_headings":"","what":"On package attach, display a startup message — .onAttach","title":"On package attach, display a startup message — .onAttach","text":"package attach, display startup message","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/dot-onAttach.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"On package attach, display a startup message — .onAttach","text":"","code":".onAttach(...)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/generate_report.html","id":null,"dir":"Reference","previous_headings":"","what":"Generate Legislative Yuan Summary Statistics Report — generate_report","title":"Generate Legislative Yuan Summary Statistics Report — generate_report","text":"Generates comprehensive summary report Legislative Yuan statistics, including legislator counts, gazette information, video records data. Presents information formatted text output.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/generate_report.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Generate Legislative Yuan Summary Statistics Report — generate_report","text":"","code":"generate_report(stats)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/generate_report.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Generate Legislative Yuan Summary Statistics Report — generate_report","text":"stats list containing Legislative Yuan statistics following structure: legislator list containing legislator information: total Total historical number legislators terms Data frame legislator counts term gazette list containing gazette information: total Total number gazettes agenda_total Total number agendas last_meeting Date last meeting ivod list containing video information: total Total number video records date_range List containing start end dates video archives","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/generate_report.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Generate Legislative Yuan Summary Statistics Report — generate_report","text":"formatted report containing following sections: Bill Statistics Total Bills Total number bills Last Update recent bill update date Legislator Statistics Total Count Historical total legislators Term Distribution Legislator counts term Gazette Statistics Total Counts Numbers gazettes agendas Latest Activity recent meeting date Video Statistics Total Videos Number video records Coverage Period Time span video archives","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/generate_report.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Generate Legislative Yuan Summary Statistics Report — generate_report","text":"","code":"if (FALSE) { # \\dontrun{ # Generate full statistics report stats <- get_ly_stat() generate_report(stats) # View specific sections stats <- get_ly_stat() cat(\"\\nBill Statistics:\\n\") cat(sprintf(\"Total Bills: %d\\n\", stats$bill$total)) cat(\"\\nLegislator Statistics:\\n\") cat(sprintf(\"Total Legislators: %d\\n\", stats$legislator$total)) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills.html","id":null,"dir":"Reference","previous_headings":"","what":"The Records of the Bills: 法律提案 — get_bills","title":"The Records of the Bills: 法律提案 — get_bills","text":"Records Bills: 法律提案","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Records of the Bills: 法律提案 — get_bills","text":"","code":"get_bills(start_date = NULL, end_date = NULL, proposer = NULL, verbose = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Records of the Bills: 法律提案 — get_bills","text":"start_date numeric. Must formatted ROC Taiwan calendar, e.g., 1090101. end_date numeric. Must formatted ROC Taiwan calendar, e.g., 1090102. proposer default value NULL, indicating bills proposed legislators included start end dates. verbose logical. Specifies whether get_bills print detailed output retrieving data. default value TRUE.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The Records of the Bills: 法律提案 — get_bills","text":"list, contains: title Records cross-caucus sessions query_time Query timestamp retrieved_number Number observations retrieved meeting_unit Meeting unit start_date_ad Start date POSIXct format end_date_ad End date POSIXct format start_date Start date ROC Taiwan calendar url URL retrieved JSON data variable_names Variable names tibble dataframe manual_info Official manual. See https://www.ly.gov.tw/Pages/List.aspx?nodeid=153 use get_variable_info(\"get_bills\") data tibble dataframe following variables: sessionPeriod Session period sessionTimes Session count meetingTimes Proposal date billName Bill name billProposer Primary proposer billCosignatory Co-signatories bill billStatus Status bill date_ad Date Gregorian calendar","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"The Records of the Bills: 法律提案 — get_bills","text":"get_bills function returns list contains query_time, retrieved_number, meeting_unit, start_date_ad, end_date_ad, start_date, end_date, url, variable_names, manual_info, data.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"The Records of the Bills: 法律提案 — get_bills","text":"retrieve user manual details data frame, use get_variable_info(\"get_bills\"). checks required user manual seems inconsistent actual data.","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Records of the Bills: 法律提案 — get_bills","text":"David Liao (davidycliao@gmail.com)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Records of the Bills: 法律提案 — get_bills","text":"","code":"if (FALSE) { # \\dontrun{ ## Query bill records by a date range in the Taiwan ROC calendar format get_bills(start_date = 1060120, end_date = 1070310, verbose = TRUE) ## Query bill records by a date range and a specific legislator get_bills(start_date = 1060120, end_date = 1070310, proposer = \"孔文吉\") ## Query bill records by a date range and multiple legislators get_bills(start_date = 1060120, end_date = 1060510, proposer = \"孔文吉&鄭天財\") } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills_2.html","id":null,"dir":"Reference","previous_headings":"","what":"The Records of Legislation and the Executives Proposals: 委員及政府議案提案資訊 — get_bills_2","title":"The Records of Legislation and the Executives Proposals: 委員及政府議案提案資訊 — get_bills_2","text":"Records Legislation Executives Proposals: 委員及政府議案提案資訊","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills_2.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Records of Legislation and the Executives Proposals: 委員及政府議案提案資訊 — get_bills_2","text":"","code":"get_bills_2(term = 8, session_period = NULL, verbose = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills_2.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Records of Legislation and the Executives Proposals: 委員及政府議案提案資訊 — get_bills_2","text":"term numeric NULL value. Data available 8th term onwards. Default set 8. 參數必須為數值。資料從第8屆開始,預設值為8。 session_period integer, numeric, NULL. Valid options session : 1, 2, 3, 4, 5, 6, 7, 8. Default set NULL. 參數必須為數值。 review_session_info() provides available session periods based Minguo (Taiwan) calendar. verbose Default value TRUE. Displays details retrieved data, including number, URL, computing time.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills_2.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The Records of Legislation and the Executives Proposals: 委員及政府議案提案資訊 — get_bills_2","text":"list containing: title Records questions answered executives query_time Query time retrieved_number Number observations retrieved_term Retrieved term url Retrieved JSON URL variable_names Variables tibble dataframe manual_info Official manual: https://data.ly.gov.tw/getds.action?id=20 use get_variable_info(\"get_bills_2\") data tibble dataframe variables : term 屆別 sessionPeriod 會期 sessionTimes 會次 meetingTimes 臨時會會次 billNo 議案編號 billName 提案名稱 billOrg 提案單位/委員 billProposer 主提案人 billCosignatory 連署提案 billStatus 議案狀態 pdfUrl PDF download link related documents docUrl DOC download link related documents selectTerm Filtering criteria based term","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills_2.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"The Records of Legislation and the Executives Proposals: 委員及政府議案提案資訊 — get_bills_2","text":"get_bills_2 function produces list, includes query_time, retrieved_number, retrieved_term, url, variable_names, manual_info, data. user manual information dataframe, use get_variable_info(\"get_bills_2\").","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills_2.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"The Records of Legislation and the Executives Proposals: 委員及政府議案提案資訊 — get_bills_2","text":"details dataframe's variables, use get_variable_info(\"get_bills_2\") visit API manual https://data.ly.gov.tw/getds.action?id=20. 議事類: 提供委員及政府之議案提案資訊 (從第8屆第1會期開始)。","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills_2.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Records of Legislation and the Executives Proposals: 委員及政府議案提案資訊 — get_bills_2","text":"David Liao (davidycliao@gmail.com)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills_2.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Records of Legislation and the Executives Proposals: 委員及政府議案提案資訊 — get_bills_2","text":"","code":"if (FALSE) { # \\dontrun{ ## Query the executives' responses by term and session period. ## 輸入「立委屆期」與「會期」以下載「質詢事項 (行政院答復部分)」 get_bills_2(term = 8, session_period = 1) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_caucus_meetings.html","id":null,"dir":"Reference","previous_headings":"","what":"The Meeting Records of Cross-caucus Session 黨團協商資訊 — get_caucus_meetings","title":"The Meeting Records of Cross-caucus Session 黨團協商資訊 — get_caucus_meetings","text":"Meeting Records Cross-caucus Session 黨團協商資訊","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_caucus_meetings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Meeting Records of Cross-caucus Session 黨團協商資訊 — get_caucus_meetings","text":"","code":"get_caucus_meetings(start_date = NULL, end_date = NULL, verbose = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_caucus_meetings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Meeting Records of Cross-caucus Session 黨團協商資訊 — get_caucus_meetings","text":"start_date character Must formatted Minguo (ROC) calendar three forward slashes year, month day, e.g. \"106/10/20\". end_date character Must formatted Minguo (ROC) calendar three forward slashes year, month day, e.g. \"109/01/10\". verbose logical, indicates whether get_caucus_meetings print detailed output retrieving data.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_caucus_meetings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The Meeting Records of Cross-caucus Session 黨團協商資訊 — get_caucus_meetings","text":"list, contains: title meeting records cross-caucus session query_time query time retrieved_number number observation meeting_unit meeting unit start_date_ad start date POSIXct end_date_ad end date POSIXct start_date start date ROC Taiwan calendar url retrieved json url variable_names variables tibble dataframe manual_info official manual, https://data.ly.gov.tw/getds.action?id=8; use get_variable_info(\"get_caucus_meetings\") data tibble dataframe, whose variables include: comVolume 期 comBookId 冊別 term 屆別 sessionPeriod 會期 meetingTimes 臨時會會次 meetingDate 會議日期(民國年) meetingName 會議名稱 subject 案由 pageStart 起始頁 pageEnd 結束頁 docUrl 檔案下載位置 htmlUrl html網址 selectTerm 屆別期別篩選條件","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_caucus_meetings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"The Meeting Records of Cross-caucus Session 黨團協商資訊 — get_caucus_meetings","text":"get_caucus_meetings produces list, contains title, query_time, retrieved_number, meeting_unit, start_date_ad, end_date_ad, start_date, end_date, url, variable_names, manual_info data.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_caucus_meetings.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"The Meeting Records of Cross-caucus Session 黨團協商資訊 — get_caucus_meetings","text":"retrieve user manual information variable data frame, please use get_variable_info(\"get_caucus_meetings\") visit API manual https://data.ly.gov.tw/getds.action?id=8. 議事類:提供公報之黨團協商資訊 (自第8屆第1會期起)","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_caucus_meetings.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Meeting Records of Cross-caucus Session 黨團協商資訊 — get_caucus_meetings","text":"David Liao (davidycliao@gmail.com)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_caucus_meetings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Meeting Records of Cross-caucus Session 黨團協商資訊 — get_caucus_meetings","text":"","code":"## query the meeting records of cross-caucus session using a period of ## the dates in Taiwan ROC calender format with forward slash (/). ## 輸入「中華民國民年」下載「黨團協商」,輸入時間請依照該格式 \"106/10/20\", ## 需有「正斜線」做隔開。 get_caucus_meetings(start_date = \"106/10/20\", end_date = \"107/03/10\") #> Downloading caucus meetings data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> URL: #> https://data.ly.gov.tw/odw/ID8Action.action?comYear=&comVolume=&comBookId=&term=&sessionPeriod=&sessionTimes=&meetingTimes=&meetingDateS=106/10/20&meetingDateE=107/03/10&fileType=json #> Date Range: 2017-10-20 to 2018-03-10 #> Total Meetings: 27 #> =================================== #> $title #> [1] \"the meeting records of cross-caucus session\" #> #> $query_time #> [1] \"2025-01-05 00:32:33 GMT\" #> #> $retrieved_number #> [1] 27 #> #> $start_date_ad #> [1] \"2017-10-20\" #> #> $end_date_ad #> [1] \"2018-03-10\" #> #> $start_date #> [1] \"106/10/20\" #> #> $end_date #> [1] \"107/03/10\" #> #> $url #> [1] \"https://data.ly.gov.tw/odw/ID8Action.action?comYear=&comVolume=&comBookId=&term=&sessionPeriod=&sessionTimes=&meetingTimes=&meetingDateS=106/10/20&meetingDateE=107/03/10&fileType=json\" #> #> $variable_names #> [1] \"comYear\" \"comVolume\" \"comBookId\" \"term\" #> [5] \"sessionPeriod\" \"sessionTimes\" \"meetingTimes\" \"meetingDate\" #> [9] \"meetingName\" \"subject\" \"pageStart\" \"pageEnd\" #> [13] \"docUrl\" \"htmlUrl\" \"selectTerm\" #> #> $manual_info #> [1] \"https://data.ly.gov.tw/getds.action?id=8\" #> #> $data #> # A tibble: 27 × 15 #> comYear comVolume comBookId term sessionPeriod sessionTimes #> #> 1 103 43 \"四\" 08 05 12 #> 2 103 43 \"四\" 08 05 12 #> 3 106 103 \"下\" null null null #> 4 106 108 \"\" 09 04 10 #> 5 106 108 \"\" 09 04 10 #> 6 106 113 \"下\" null null null #> 7 106 113 \"下\" null null null #> 8 106 116 \"下\" 09 04 12 #> 9 106 87 \"下\" 09 04 06 #> 10 106 87 \"下\" 09 04 null #> # ℹ 17 more rows #> # ℹ 9 more variables: meetingTimes , meetingDate , #> # meetingName , subject , pageStart , pageEnd , #> # docUrl , htmlUrl , selectTerm #>"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_committee_record.html","id":null,"dir":"Reference","previous_headings":"","what":"The Records of Reviewed Items in the Committees 委員會會議審查之議案項目 — get_committee_record","title":"The Records of Reviewed Items in the Committees 委員會會議審查之議案項目 — get_committee_record","text":"Records Reviewed Items Committees 委員會會議審查之議案項目","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_committee_record.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Records of Reviewed Items in the Committees 委員會會議審查之議案項目 — get_committee_record","text":"","code":"get_committee_record(term = 10, session_period = NULL, verbose = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_committee_record.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Records of Reviewed Items in the Committees 委員會會議審查之議案項目 — get_committee_record","text":"term numeric null. Data available 8th term. default set 10. 參數必須為數值。提供委員會會議審查之議案項目。(自第10屆第1會期起) session_period integer, numeric NULL. review_session_info() provides session period's available options based Minguo (Taiwan) calendar. verbose logical. indicates whether get_executive_response print detailed output data retrieval. Default TRUE.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_committee_record.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The Records of Reviewed Items in the Committees 委員會會議審查之議案項目 — get_committee_record","text":"list containing: title Records questions answered executives query_time Time query retrieved_number Total number observations retrieved_term Queried term url Retrieved JSON URL variable_names Variables tibble dataframe manual_info Official manual, https://data.ly.gov.tw/getds.action?id=46; use get_variable_info(\"get_committee_record\") data tibble dataframe variables: term Term number sessionPeriod Session meetingNo Meeting number billNo Bill number selectTerm Term selection filter list containing: title Records questions answered executives query_time Time query retrieved_number Total number observations retrieved_term Queried term url Retrieved JSON URL variable_names Variables tibble dataframe manual_info Official manual, https://data.ly.gov.tw/getds.action?id=46; use get_variable_info(\"get_committee_record\") data tibble dataframe variables: term Term number sessionPeriod Session meetingNo Meeting number billNo Bill number selectTerm Term selection filter","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_committee_record.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"The Records of Reviewed Items in the Committees 委員會會議審查之議案項目 — get_committee_record","text":"get_committee_record provides list includes title, query_time, retrieved_number, retrieved_term, url, variable_names, manual_info, data. get_committee_record provides list includes title, query_time, retrieved_number, retrieved_term, url, variable_names, manual_info, data.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_committee_record.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"The Records of Reviewed Items in the Committees 委員會會議審查之議案項目 — get_committee_record","text":"access user manual information data frame's variables, please refer get_variable_info(\"get_committee_record\") check API manual https://data.ly.gov.tw/getds.action?id=46. provides agenda items reviewed committee meetings (10th term, 1st session onwards). access user manual information data frame's variables, please refer get_variable_info(\"get_committee_record\") check API manual https://data.ly.gov.tw/getds.action?id=46. provides agenda items reviewed committee meetings (10th term, 1st session onwards).","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_committee_record.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Records of Reviewed Items in the Committees 委員會會議審查之議案項目 — get_committee_record","text":"David Yen-Chieh Liao","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_committee_record.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Records of Reviewed Items in the Committees 委員會會議審查之議案項目 — get_committee_record","text":"","code":"## Query the committee record by term and session period. ## 輸入「立委屆期」與「會期」下載「委員會審議之議案」 get_committee_record(term = 10, session_period = 1) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading committee records data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% #> #> Error: The query is unavailable. ## Query the committee record by term and session period. ## 輸入「立委屆期」與「會期」下載「委員會審議之議案」 get_committee_record(term = 10, session_period = 1) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading committee records data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% #> #> Error: The query is unavailable."},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_executive_response.html","id":null,"dir":"Reference","previous_headings":"","what":"The Records of Response to the Questions by the Executives 公報質詢事項行政院答復資訊 — get_executive_response","title":"The Records of Response to the Questions by the Executives 公報質詢事項行政院答復資訊 — get_executive_response","text":"Records Response Questions Executives 公報質詢事項行政院答復資訊","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_executive_response.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Records of Response to the Questions by the Executives 公報質詢事項行政院答復資訊 — get_executive_response","text":"","code":"get_executive_response(term = NULL, session_period = NULL, verbose = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_executive_response.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Records of Response to the Questions by the Executives 公報質詢事項行政院答復資訊 — get_executive_response","text":"term integer, numeric NULL. default NULL. data available 8th term. 參數必須為數值。資料從自第8屆起,預設值為8。 session_period integer, numeric NULL. Available options session : 1, 2, 3, 4, 5, 6, 7, 8. default set NULL. 參數必須為數值。 review_session_info() generates session period available option period Minguo (Taiwan) calendar. verbose logical, indicates whether get_executive_response print detailed output retrieving data. default set TRUE","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_executive_response.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The Records of Response to the Questions by the Executives 公報質詢事項行政院答復資訊 — get_executive_response","text":"list contains: title records questions answered executives query_time queried time retrieved_number total number observations retrieved_term queried term url retrieved json url variable_names variables tibble dataframe manual_info offical manual data tibble dataframe, whose variables include: sessionPeriod 會期 sessionTimes 會次 meetingTimes 臨時會會次 eyNumber 行政院函公文編號 lyNumber 立法院函編號 subject 案由 content 內容 docUrl 案由 item 檔案下載位置 item 檔案下載位置 selectTerm 屆別期別篩選條件","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_executive_response.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"The Records of Response to the Questions by the Executives 公報質詢事項行政院答復資訊 — get_executive_response","text":"get_executive_response produces list, contains title, query_time, retrieved_number, retrieved_term, url, variable_names, manual_info data. retrieve user manual information, please use get_variable_info(\"get_executive_response\"). #'@note retrieve user manual information variable data frame, please use get_variable_info(\"get_executive_response\") visit API manual https://data.ly.gov.tw/getds.action?id=2. 質詢類: 提供公報質詢事項行政院答復資訊 (自第8屆第1會期起)。","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_executive_response.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Records of Response to the Questions by the Executives 公報質詢事項行政院答復資訊 — get_executive_response","text":"David Liao (davidycliao@gmail.com)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_executive_response.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Records of Response to the Questions by the Executives 公報質詢事項行政院答復資訊 — get_executive_response","text":"","code":"## query the Executives' answered response by term and the session period. ## 輸入「立委屆期」與「會期」下載「行政院答復」 get_executive_response(term = 8, session_period = 1) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10, 11) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading executive response data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> URL: #> https://data.ly.gov.tw/odw/ID2Action.action?term=08&sessionPeriod=01&sessionTimes=&item=&fileType=json #> Term: 08 #> Session Period: 1 #> Total Responses: 1065 #> #> Session Distribution: #> Session 01: 1065 #> =================================== #> $title #> [1] \"Executive Response Records\" #> #> $query_time #> [1] \"2025-01-05 00:32:59 GMT\" #> #> $retrieved_number #> [1] 1065 #> #> $retrieved_term #> [1] \"08\" #> #> $url #> [1] \"https://data.ly.gov.tw/odw/ID2Action.action?term=08&sessionPeriod=01&sessionTimes=&item=&fileType=json\" #> #> $variable_names #> [1] \"term\" \"sessionPeriod\" \"sessionTimes\" \"meetingTimes\" #> [5] \"eyNumber\" \"lyNumber\" \"subject\" \"content\" #> [9] \"docUrl\" \"selectTerm\" #> #> $manual_info #> [1] \"https://data.ly.gov.tw/getds.action?id=2\" #> #> $data #> # A tibble: 1,065 × 10 #> term sessionPeriod sessionTimes meetingTimes eyNumber lyNumber subject #> #> 1 08 01 01 null (行政院函 中… (立法院函 編… (一八一)行… #> 2 08 01 01 null (行政院函 中… (立法院函 編… (一八二)行… #> 3 08 01 01 null (行政院函 中… (立法院函 編… (一八三)行… #> 4 08 01 01 null (行政院函 中… (立法院函 編… (一八四)行… #> 5 08 01 01 null (行政院函 中… (立法院函 編… (一八五)行… #> 6 08 01 01 null (行政院函 中… (立法院函 編… (一八六)行… #> 7 08 01 01 null (行政院函 中… (立法院函 編… (一八七)行… #> 8 08 01 01 null (行政院函 中… (立法院函 編… (一八八)行… #> 9 08 01 01 null (行政院函 中… (立法院函 編… (一八九)行… #> 10 08 01 01 null (行政院函 中… (立法院函 編… (一九○)行… #> # ℹ 1,055 more rows #> # ℹ 3 more variables: content , docUrl , selectTerm #>"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_legislators.html","id":null,"dir":"Reference","previous_headings":"","what":"The Legislator' Demographic Information and Background 提供委員基本資料 — get_legislators","title":"The Legislator' Demographic Information and Background 提供委員基本資料 — get_legislators","text":"Legislator' Demographic Information Background 提供委員基本資料","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_legislators.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Legislator' Demographic Information and Background 提供委員基本資料 — get_legislators","text":"","code":"get_legislators(term = NULL, verbose = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_legislators.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Legislator' Demographic Information and Background 提供委員基本資料 — get_legislators","text":"term numeric NULL data available 2nd term. verbose logical, indicates whether get_meetings print detailed output retrieving data. default set TRUE.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_legislators.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The Legislator' Demographic Information and Background 提供委員基本資料 — get_legislators","text":"list contains: query_time queried time queried_term queried term url retrieved json url variable_names variables tibble dataframe manual_info official manual https://data.ly.gov.tw/getds.action?id=16, use legisTaiwan::get_variable_info(\"get_legislators\") data tibble dataframe, whose variables include: name 委員姓名 ename 委員姓名 sex 性別 party 黨籍 partyGroup 黨團 committee 委員會 onboardDate 到職日(西元年) degree 學歷 experience 經歷 picPath 照片位址 leaveFlag 離職日期(西元年) leaveReason 離職原因","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_legislators.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"The Legislator' Demographic Information and Background 提供委員基本資料 — get_legislators","text":"get_legislators produces list, contains query_time, queried_term, url, variable_names, manual_info data.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_legislators.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"The Legislator' Demographic Information and Background 提供委員基本資料 — get_legislators","text":"retrieve user manual information variable data frame, please use get_variable_info(\"get_legislators\") visit API manual https://data.ly.gov.tw/getds.action?id=16. 提供委員基本資料,最早資料可追溯至第2屆。","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_legislators.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Legislator' Demographic Information and Background 提供委員基本資料 — get_legislators","text":"David Liao (davidycliao@gmail.com)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_legislators.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Legislator' Demographic Information and Background 提供委員基本資料 — get_legislators","text":"","code":"## query the Executives' answered response by term and the session period. ## 輸入「立委屆期」與「會期」下載「行政院答復」 get_executive_response(term = 8, session_period = 1) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10, 11) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading executive response data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> URL: #> https://data.ly.gov.tw/odw/ID2Action.action?term=08&sessionPeriod=01&sessionTimes=&item=&fileType=json #> Term: 08 #> Session Period: 1 #> Total Responses: 1065 #> #> Session Distribution: #> Session 01: 1065 #> =================================== #> $title #> [1] \"Executive Response Records\" #> #> $query_time #> [1] \"2025-01-05 00:33:23 GMT\" #> #> $retrieved_number #> [1] 1065 #> #> $retrieved_term #> [1] \"08\" #> #> $url #> [1] \"https://data.ly.gov.tw/odw/ID2Action.action?term=08&sessionPeriod=01&sessionTimes=&item=&fileType=json\" #> #> $variable_names #> [1] \"term\" \"sessionPeriod\" \"sessionTimes\" \"meetingTimes\" #> [5] \"eyNumber\" \"lyNumber\" \"subject\" \"content\" #> [9] \"docUrl\" \"selectTerm\" #> #> $manual_info #> [1] \"https://data.ly.gov.tw/getds.action?id=2\" #> #> $data #> # A tibble: 1,065 × 10 #> term sessionPeriod sessionTimes meetingTimes eyNumber lyNumber subject #> #> 1 08 01 01 null (行政院函 中… (立法院函 編… (一八一)行… #> 2 08 01 01 null (行政院函 中… (立法院函 編… (一八二)行… #> 3 08 01 01 null (行政院函 中… (立法院函 編… (一八三)行… #> 4 08 01 01 null (行政院函 中… (立法院函 編… (一八四)行… #> 5 08 01 01 null (行政院函 中… (立法院函 編… (一八五)行… #> 6 08 01 01 null (行政院函 中… (立法院函 編… (一八六)行… #> 7 08 01 01 null (行政院函 中… (立法院函 編… (一八七)行… #> 8 08 01 01 null (行政院函 中… (立法院函 編… (一八八)行… #> 9 08 01 01 null (行政院函 中… (立法院函 編… (一八九)行… #> 10 08 01 01 null (行政院函 中… (立法院函 編… (一九○)行… #> # ℹ 1,055 more rows #> # ℹ 3 more variables: content , docUrl , selectTerm #>"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_bills.html","id":null,"dir":"Reference","previous_headings":"","what":"Fetch and Parse Legislative Yuan Bills — get_ly_bills","title":"Fetch and Parse Legislative Yuan Bills — get_ly_bills","text":"Retrieves bill information Legislative Yuan API comprehensive filter options. Supports filtering term, session, bill type, status, attributes. Returns metadata detailed bill information.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_bills.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fetch and Parse Legislative Yuan Bills — get_ly_bills","text":"","code":"get_ly_bills( page = 1, per_page = 20, term = NULL, session = NULL, bill_type = NULL, current_status = NULL, process_status = NULL, proposer = NULL, cosigner = NULL, source = NULL, bill_id = NULL, law_id = NULL, meeting_code = NULL, show_progress = TRUE )"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_bills.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Fetch and Parse Legislative Yuan Bills — get_ly_bills","text":"page integer. Page number pagination (default: 1) per_page integer. Number items per page (default: 20) term integer. Legislative term, e.g., 11 session integer. Legislative session period, e.g., 2 bill_type string. Type bill: \"法律案\" (Law Bill) \"中央政府總預算案\" (Central Government Budget Bill) \"預(決) 算決議案\" (Budget/Final Account Resolution) \"定期報告\" (Regular Report) \"行政命令(層級)\" (Administrative Order) \"院內單位來文\" (Internal Document) current_status string. Current bill status, e.g., \"排入院會\" process_status string. Status process flow, e.g., \"排入院會 (交內政委員會)\" proposer string. Bill proposer name cosigner string. Bill cosigner name source string. Source bill, e.g., \"委員提案\" bill_id string. Bill ID number law_id string. Related law ID number meeting_code string. Meeting code, e.g., \"院會-11-2-3\" show_progress logical. Whether display progress bar (default: TRUE)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_bills.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fetch and Parse Legislative Yuan Bills — get_ly_bills","text":"list containing: metadata - List pagination info applied filters bills - Data frame bill details","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_bills.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Fetch and Parse Legislative Yuan Bills — get_ly_bills","text":"","code":"# Get law bills bills <- get_ly_bills( term = 11, bill_type = \"法律案\", show_progress = TRUE ) #> Fetching data... #> Data received successfully, processing... #> Found 100 bills, converting... #> | | | 0% | |= | 1% | |= | 2% | |== | 3% | |=== | 4% | |=== | 5% | |==== | 6% | |==== | 7% | |===== | 8% | |====== | 9% | |====== | 10% | |======= | 11% | |======== | 12% | |======== | 13% | |========= | 14% | |========== | 15% | |========== | 16% | |=========== | 17% | |============ | 18% | |============ | 19% | |============= | 20% | |============= | 21% | |============== | 22% | |=============== | 23% | |=============== | 24% | |================ | 25% | |================= | 26% | |================= | 27% | |================== | 28% | |=================== | 29% | |=================== | 30% | |==================== | 31% | |==================== | 32% | |===================== | 33% | |====================== | 34% | |====================== | 35% | |======================= | 36% | |======================== | 37% | |======================== | 38% | |========================= | 39% | |========================== | 40% | |========================== | 41% | |=========================== | 42% | |============================ | 43% | |============================ | 44% | |============================= | 45% | |============================= | 46% | |============================== | 47% | |=============================== | 48% | |=============================== | 49% | |================================ | 50% | |================================= | 51% | |================================= | 52% | |================================== | 53% | |=================================== | 54% | |=================================== | 55% | |==================================== | 56% | |==================================== | 57% | |===================================== | 58% | |====================================== | 59% | |====================================== | 60% | |======================================= | 61% | |======================================== | 62% | |======================================== | 63% | |========================================= | 64% | |========================================== | 65% | |========================================== | 66% | |=========================================== | 67% | |============================================ | 68% | |============================================ | 69% | |============================================= | 70% | |============================================= | 71% | |============================================== | 72% | |=============================================== | 73% | |=============================================== | 74% | |================================================ | 75% | |================================================= | 76% | |================================================= | 77% | |================================================== | 78% | |=================================================== | 79% | |=================================================== | 80% | |==================================================== | 81% | |==================================================== | 82% | |===================================================== | 83% | |====================================================== | 84% | |====================================================== | 85% | |======================================================= | 86% | |======================================================== | 87% | |======================================================== | 88% | |========================================================= | 89% | |========================================================== | 90% | |========================================================== | 91% | |=========================================================== | 92% | |============================================================ | 93% | |============================================================ | 94% | |============================================================= | 95% | |============================================================= | 96% | |============================================================== | 97% | |=============================================================== | 98% | |=============================================================== | 99% | |================================================================| 100% #> #> Conversion complete! #> Processing complete! Total bills processed: 100 # Get budget bills bills <- get_ly_bills( term = 11, bill_type = \"中央政府總預算案\", show_progress = TRUE ) #> Fetching data... #> Data received successfully, processing... #> Found 37 bills, converting... #> | | | 0% | |== | 3% | |=== | 5% | |===== | 8% | |======= | 11% | |========= | 14% | |========== | 16% | |============ | 19% | |============== | 22% | |================ | 24% | |================= | 27% | |=================== | 30% | |===================== | 32% | |====================== | 35% | |======================== | 38% | |========================== | 41% | |============================ | 43% | |============================= | 46% | |=============================== | 49% | |================================= | 51% | |=================================== | 54% | |==================================== | 57% | |====================================== | 59% | |======================================== | 62% | |========================================== | 65% | |=========================================== | 68% | |============================================= | 70% | |=============================================== | 73% | |================================================ | 76% | |================================================== | 78% | |==================================================== | 81% | |====================================================== | 84% | |======================================================= | 86% | |========================================================= | 89% | |=========================================================== | 92% | |============================================================= | 95% | |============================================================== | 97% | |================================================================| 100% #> #> Conversion complete! #> Processing complete! Total bills processed: 37 # Get administrative orders bills <- get_ly_bills( term = 11, bill_type = \"行政命令(層級)\", show_progress = TRUE ) #> Fetching data... #> Data received successfully, processing... #> Found 100 bills, converting... #> | | | 0% | |= | 1% | |= | 2% | |== | 3% | |=== | 4% | |=== | 5% | |==== | 6% | |==== | 7% | |===== | 8% | |====== | 9% | |====== | 10% | |======= | 11% | |======== | 12% | |======== | 13% | |========= | 14% | |========== | 15% | |========== | 16% | |=========== | 17% | |============ | 18% | |============ | 19% | |============= | 20% | |============= | 21% | |============== | 22% | |=============== | 23% | |=============== | 24% | |================ | 25% | |================= | 26% | |================= | 27% | |================== | 28% | |=================== | 29% | |=================== | 30% | |==================== | 31% | |==================== | 32% | |===================== | 33% | |====================== | 34% | |====================== | 35% | |======================= | 36% | |======================== | 37% | |======================== | 38% | |========================= | 39% | |========================== | 40% | |========================== | 41% | |=========================== | 42% | |============================ | 43% | |============================ | 44% | |============================= | 45% | |============================= | 46% | |============================== | 47% | |=============================== | 48% | |=============================== | 49% | |================================ | 50% | |================================= | 51% | |================================= | 52% | |================================== | 53% | |=================================== | 54% | |=================================== | 55% | |==================================== | 56% | |==================================== | 57% | |===================================== | 58% | |====================================== | 59% | |====================================== | 60% | |======================================= | 61% | |======================================== | 62% | |======================================== | 63% | |========================================= | 64% | |========================================== | 65% | |========================================== | 66% | |=========================================== | 67% | |============================================ | 68% | |============================================ | 69% | |============================================= | 70% | |============================================= | 71% | |============================================== | 72% | |=============================================== | 73% | |=============================================== | 74% | |================================================ | 75% | |================================================= | 76% | |================================================= | 77% | |================================================== | 78% | |=================================================== | 79% | |=================================================== | 80% | |==================================================== | 81% | |==================================================== | 82% | |===================================================== | 83% | |====================================================== | 84% | |====================================================== | 85% | |======================================================= | 86% | |======================================================== | 87% | |======================================================== | 88% | |========================================================= | 89% | |========================================================== | 90% | |========================================================== | 91% | |=========================================================== | 92% | |============================================================ | 93% | |============================================================ | 94% | |============================================================= | 95% | |============================================================= | 96% | |============================================================== | 97% | |=============================================================== | 98% | |=============================================================== | 99% | |================================================================| 100% #> #> Conversion complete! #> Processing complete! Total bills processed: 100"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_committee_meets.html","id":null,"dir":"Reference","previous_headings":"","what":"Fetch Legislative Yuan Committee Meetings — get_ly_committee_meets","title":"Fetch Legislative Yuan Committee Meetings — get_ly_committee_meets","text":"Retrieves processes committee meeting information Legislative Yuan API.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_committee_meets.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fetch Legislative Yuan Committee Meetings — get_ly_committee_meets","text":"","code":"get_ly_committee_meets( committee_id, page = 1, per_page = 20, term = NULL, session = NULL, meeting_code = NULL, meeting_type = NULL, attending_member = NULL, date = NULL, meeting_number = NULL, bill_id = NULL, show_progress = TRUE )"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_committee_meets.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Fetch Legislative Yuan Committee Meetings — get_ly_committee_meets","text":"committee_id integer. Required. ID committee page integer. Page number pagination (default: 1) per_page integer. Number items per page (default: 20) term integer. Legislative term number session integer. Session number meeting_code string. Meeting code meeting_type string. Type meeting attending_member string. Name attending member date string. Meeting date YYYY-MM-DD format meeting_number string. Meeting number bill_id string. Bill ID show_progress logical. Whether display progress bar (default: TRUE)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_committee_meets.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fetch Legislative Yuan Committee Meetings — get_ly_committee_meets","text":"list containing metadata meetings data frame","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_committees_type.html","id":null,"dir":"Reference","previous_headings":"","what":"Fetch and Parse Legislative Yuan Committee Details, Jurisdiction and Codes — get_ly_committees_type","title":"Fetch and Parse Legislative Yuan Committee Details, Jurisdiction and Codes — get_ly_committees_type","text":"Retrieves detailed information Legislative Yuan committees, including jurisdictions, responsibilities assigned codes.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_committees_type.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fetch and Parse Legislative Yuan Committee Details, Jurisdiction and Codes — get_ly_committees_type","text":"","code":"get_ly_committees_type( page = 1, per_page = 20, type = NULL, code = NULL, show_progress = TRUE )"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_committees_type.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Fetch and Parse Legislative Yuan Committee Details, Jurisdiction and Codes — get_ly_committees_type","text":"page integer. Page number pagination (default: 1) per_page integer. Number items per page (default: 20) type string. Committee type: \"常設委員會\" (Standing Committee) \"特種委員會\" (Special Committee) \"國會改革前舊委員會名稱\" (Former Committee Names Reform) code integer. Committee code number show_progress logical. Whether display progress bar (default: TRUE)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_committees_type.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fetch and Parse Legislative Yuan Committee Details, Jurisdiction and Codes — get_ly_committees_type","text":"list containing: metadata - List pagination info applied filters committees - Data frame committee details including code, name, duties type","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_committees_type.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Fetch and Parse Legislative Yuan Committee Details, Jurisdiction and Codes — get_ly_committees_type","text":"function fetches comprehensive committee information Legislative Yuan API, providing committee codes, names, duties, jurisdictions organizational structure.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_interpellations.html","id":null,"dir":"Reference","previous_headings":"","what":"Get Legislative Yuan Interpellation Records — get_ly_interpellations","title":"Get Legislative Yuan Interpellation Records — get_ly_interpellations","text":"Fetches parses interpellation records Legislative Yuan API. Supports filtering legislator, term, session keyword search. Returns structured data including metadata detailed interpellation records.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_interpellations.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get Legislative Yuan Interpellation Records — get_ly_interpellations","text":"","code":"get_ly_interpellations( page = 1, limit = 20, legislator = NULL, term = NULL, session_period = NULL, session_times = NULL, meet_id = NULL, query = NULL, show_progress = TRUE )"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_interpellations.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get Legislative Yuan Interpellation Records — get_ly_interpellations","text":"page integer specifying page number (default: 1) limit integer specifying number records per page (default: 20) legislator string specifying legislator's name term integer specifying legislative term number session_period integer specifying session period session_times integer specifying session times meet_id string specifying meeting ID (e.g., \"院會-9-2-1\") query string search interpellation reasons content show_progress logical value indicating whether show progress bar (default: TRUE)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_interpellations.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get Legislative Yuan Interpellation Records — get_ly_interpellations","text":"list two components: metadata list containing pagination filter information: total Total number records found total_page Total number pages current_page Current page number per_page Number records per page filters_used List filters applied interpellations data frame containing interpellation records: id Interpellation ID printed_at Date printed reason Interpellation reason description Detailed content legislators Comma-separated list legislators meet_id Meeting ID term Legislative term sessionPeriod Session period sessionTimes Session times ppg_url URL parliamentary record","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_interpellations.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get Legislative Yuan Interpellation Records — get_ly_interpellations","text":"","code":"if (FALSE) { # \\dontrun{ # Get interpellations by legislator zhao_records <- get_ly_interpellations( legislator = \"趙天麟\", limit = 5 ) # Get interpellations for specific term and session session_records <- get_ly_interpellations( term = 9, session_period = 2, session_times = 1 ) # Search interpellations by keyword search_results <- get_ly_interpellations( query = \"氫能\", page = 1, limit = 20 ) # View results print(paste(\"Total records:\", search_results$metadata$total)) head(search_results$interpellations) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_ivod.html","id":null,"dir":"Reference","previous_headings":"","what":"Fetch Legislative Yuan IVOD (Video) Records — get_ly_ivod","title":"Fetch Legislative Yuan IVOD (Video) Records — get_ly_ivod","text":"Retrieves IVOD (Internet Video Demand) records Legislative Yuan API. Returns video records sorted date descending order.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_ivod.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fetch Legislative Yuan IVOD (Video) Records — get_ly_ivod","text":"","code":"get_ly_ivod( page = 1, limit = 20, term = NULL, session_period = NULL, show_progress = TRUE )"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_ivod.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Fetch Legislative Yuan IVOD (Video) Records — get_ly_ivod","text":"page integer. Page number pagination (default: 1) limit integer. Number records per page (default: 20) term integer. Legislative term (e.g. 9) session_period integer. Session period show_progress logical. Whether display progress bar (default: TRUE)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_ivod.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fetch Legislative Yuan IVOD (Video) Records — get_ly_ivod","text":"list containing two components: metadata list containing pagination filter information: total Total number records found total_page Total number available pages current_page Current page number per_page Number records per page filters_used List filters applied query ivods data frame containing: id IVOD record ID url URL view video IVOD website video_url Direct streaming URL video meeting_time Original meeting date time meeting_name Name legislative meeting type Type video record date Meeting date YYYY-MM-DD format start_time Video start timestamp end_time Video end timestamp duration Video duration seconds video_length Formatted video length (HH:MM:SS)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_ivod.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Fetch Legislative Yuan IVOD (Video) Records — get_ly_ivod","text":"Get Legislative Yuan IVOD Records","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_ivod.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Fetch Legislative Yuan IVOD (Video) Records — get_ly_ivod","text":"","code":"if (FALSE) { # \\dontrun{ # Get videos from term 9 videos <- get_ly_ivod( term = 9, limit = 5 ) # Get videos from specific session session_videos <- get_ly_ivod( term = 9, session_period = 1, page = 1, limit = 20 ) # Access the results print(paste(\"Total videos:\", videos$metadata$total)) print(\"First video details:\") print(videos$ivods[1, c(\"meeting_name\", \"date\", \"video_length\")]) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_bills.html","id":null,"dir":"Reference","previous_headings":"","what":"Get Bill by legislator — get_ly_legislator_bills","title":"Get Bill by legislator — get_ly_legislator_bills","text":"Retrieves comprehensive information specific legislator Legislative Yuan API. includes personal details, committee assignments, educational background, work experience.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_bills.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get Bill by legislator — get_ly_legislator_bills","text":"","code":"get_ly_legislator_bills(term, name, page = 1, limit = 20, show_progress = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_bills.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get Bill by legislator — get_ly_legislator_bills","text":"term integer. Required. legislative term number (e.g., 9) name string. Required. legislator's name Chinese (e.g., \"王金平\") page integer. Page number pagination (default: 1) limit integer. Number records per page (default: 20) show_progress logical. Whether display progress information (default: TRUE)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_bills.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get Bill by legislator — get_ly_legislator_bills","text":"list containing two components: metadata list containing pagination information: total Total number bills total_page Total number pages current_page Current page number per_page Number records per page bills data frame containing bill information: billNo Bill number 議案名稱 Bill name 提案單位 Proposing unit/legislator 議案狀態 Bill status 議案類別 Bill type 提案來源 Bill source meet_id Meeting ID 會期 Session number 字號 Reference number 提案編號 Proposal number 屆期 Legislative term mtime Last modified time","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_bills.html","id":"api-details","dir":"Reference","previous_headings":"","what":"API Details","title":"Get Bill by legislator — get_ly_legislator_bills","text":"function accesses Legislative Yuan's open data API. API endpoint format : https://ly.govapi.tw/legislator/{term}/{name}/propose_bill","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_bills.html","id":"data-usage","dir":"Reference","previous_headings":"","what":"Data Usage","title":"Get Bill by legislator — get_ly_legislator_bills","text":"returned data can used : Analysis Analyzing legislator's bill proposal patterns Tracking Tracking bill status progress Research Studying legislative priorities Policy Conducting policy research","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_bills.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get Bill by legislator — get_ly_legislator_bills","text":"","code":"if (FALSE) { # \\dontrun{ # Get bills for a specific legislator bills <- get_ly_legislator_bills( term = 9, name = \"王金平\", limit = 10 ) # Get second page of bills bills_page2 <- get_ly_legislator_bills( term = 9, name = \"王金平\", page = 2, limit = 20 ) # Display summary statistics cat(sprintf( \"Total Bills: %d\\nCurrent Page: %d\\nBills per page: %d\\n\", bills$metadata$total, bills$metadata$current_page, bills$metadata$per_page )) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_cosign_bills.html","id":null,"dir":"Reference","previous_headings":"","what":"Fetch Bills Cosigned by a Legislator — get_ly_legislator_cosign_bills","title":"Fetch Bills Cosigned by a Legislator — get_ly_legislator_cosign_bills","text":"Retrieves bills cosigned specific legislator term name Legislative Yuan API.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_cosign_bills.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fetch Bills Cosigned by a Legislator — get_ly_legislator_cosign_bills","text":"","code":"get_ly_legislator_cosign_bills( term, name, page = 1, limit = 20, show_progress = TRUE )"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_cosign_bills.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Fetch Bills Cosigned by a Legislator — get_ly_legislator_cosign_bills","text":"term required integer. Legislative term number (e.g. 9) name required string. Legislator name (e.g. \"王金平\") page integer. Page number pagination (default: 1) limit integer. Number records per page (default: 20) show_progress logical. Whether display progress info (default: TRUE)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_cosign_bills.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fetch Bills Cosigned by a Legislator — get_ly_legislator_cosign_bills","text":"list containing two components: metadata list containing pagination information: total Total number cosigned bills total_page Total number pages current_page Current page number per_page Number records per page bills data frame containing bill information: billNo Bill number 議案名稱 Bill name 提案單位 Proposing unit/legislator 議案狀態 Bill status 議案類別 Bill type 提案來源 Source meet_id Meeting ID 會期 Session period 字號 Case number 提案編號 Proposal number 屆期 Term mtime Last modified time","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_cosign_bills.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Fetch Bills Cosigned by a Legislator — get_ly_legislator_cosign_bills","text":"Get Legislator's Cosigned Bills","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_cosign_bills.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Fetch Bills Cosigned by a Legislator — get_ly_legislator_cosign_bills","text":"","code":"if (FALSE) { # \\dontrun{ # Get cosigned bills bills <- get_ly_legislator_cosign_bills( term = 9, name = \"王金平\", limit = 5 ) # Print results print(paste(\"Total cosigned bills:\", bills$metadata$total)) print(\"Latest cosigned bill:\") print(bills$bills[1, c(\"議案名稱\", \"議案狀態\")]) # Get second page of results bills_page2 <- get_ly_legislator_cosign_bills( term = 9, name = \"王金平\", page = 2, limit = 20 ) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_detail.html","id":null,"dir":"Reference","previous_headings":"","what":"Fetch Legislator Detail Information — get_ly_legislator_detail","title":"Fetch Legislator Detail Information — get_ly_legislator_detail","text":"Retrieves detailed information specific legislator term name Legislative Yuan API.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_detail.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fetch Legislator Detail Information — get_ly_legislator_detail","text":"","code":"get_ly_legislator_detail(term, name, show_progress = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_detail.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Fetch Legislator Detail Information — get_ly_legislator_detail","text":"term required integer. Legislative term number (e.g. 9) name required string. Legislator name (e.g. \"王金平\") show_progress logical. Whether display progress info (default: TRUE)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_detail.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fetch Legislator Detail Information — get_ly_legislator_detail","text":"list containing legislator details: term Legislative term number name Legislator's name Chinese ename Legislator's name English sex Gender party Political party affiliation partyGroup Legislative party group areaName Represented area committee Committee assignments session onboardDate Date took office degree Education background experience Work experience picUrl URL legislator's photo leaveFlag Whether left office leaveDate Date left office applicable leaveReason Reason leaving applicable bioId Biography ID","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_detail.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Fetch Legislator Detail Information — get_ly_legislator_detail","text":"Get Legislative Yuan Legislator Detail","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_detail.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Fetch Legislator Detail Information — get_ly_legislator_detail","text":"","code":"if (FALSE) { # \\dontrun{ # Get legislator detail detail <- get_ly_legislator_detail( term = 9, name = \"王金平\" ) # Print basic info cat(sprintf( \"Name: %s (%s)\\nParty: %s\\nArea: %s\\n\", detail$name, detail$ename, detail$party, detail$areaName )) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislators_by_term.html","id":null,"dir":"Reference","previous_headings":"","what":"Fetch Legislators List for a Specific Term — get_ly_legislators_by_term","title":"Fetch Legislators List for a Specific Term — get_ly_legislators_by_term","text":"Retrieves paginated list legislators specific Legislative Yuan term. function provides detailed information legislators including names, parties, represented areas. also includes metadata total number legislators pagination information.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislators_by_term.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fetch Legislators List for a Specific Term — get_ly_legislators_by_term","text":"","code":"get_ly_legislators_by_term(term, page = 1, limit = 20, show_progress = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislators_by_term.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Fetch Legislators List for a Specific Term — get_ly_legislators_by_term","text":"term required integer. Legislative term number (e.g., 9) page integer. Page number pagination (default: 1) limit integer. Number records per page (default: 20) show_progress logical. Whether display progress bar summary statistics (default: TRUE)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislators_by_term.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fetch Legislators List for a Specific Term — get_ly_legislators_by_term","text":"list two components: metadata list containing: total Total number legislators total_page Total number pages current_page Current page number per_page Number records per page legislators data frame containing legislator information: term Legislative term name Legislator's name party Political party affiliation areaName Represented area (available) columns Additional columns provided API","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislators_by_term.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Fetch Legislators List for a Specific Term — get_ly_legislators_by_term","text":"Get Legislative Yuan Legislators Term function includes progress bar detailed summary statistics show_progress TRUE. summary includes: Total Statistics Total number legislators Pagination Current page total pages Page Size Records per page Distribution Party area distribution (available)","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislators_by_term.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Fetch Legislators List for a Specific Term — get_ly_legislators_by_term","text":"","code":"if (FALSE) { # \\dontrun{ # Get first page of legislators for term 9 result <- get_ly_legislators_by_term(term = 9) # Get second page with 30 records per page result <- get_ly_legislators_by_term( term = 9, page = 2, limit = 30 ) # Access the results metadata <- result$metadata legislators_df <- result$legislators # Display total number of legislators cat(\"Total legislators:\", metadata$total, \"\\n\") # Show first few rows of legislator data head(legislators_df) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_meetings.html","id":null,"dir":"Reference","previous_headings":"","what":"The Spoken Meeting Records 委員發言 — get_meetings","title":"The Spoken Meeting Records 委員發言 — get_meetings","text":"Spoken Meeting Records 委員發言","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_meetings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Spoken Meeting Records 委員發言 — get_meetings","text":"","code":"get_meetings( start_date = NULL, end_date = NULL, meeting_unit = NULL, verbose = TRUE )"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_meetings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Spoken Meeting Records 委員發言 — get_meetings","text":"start_date numeric Must formatted Minguo (Taiwan) calendar, e.g. 1090101. end_date numeric Must formatted Minguo (Taiwan) calendar, e.g. 1090102. meeting_unit NULL default NULL, includes meeting types starting date ending date. verbose logical, indicates whether get_meetings print detailed output retrieving data.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_meetings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The Spoken Meeting Records 委員發言 — get_meetings","text":"list, contains: title spoken meeting records query_time query time retrieved_number number observation meeting_unit meeting unit start_date_ad start date POSIXct end_date_ad end date POSIXct start_date start date ROC Taiwan calendar url retrieved json url variable_names variables tibble dataframe manual_info offical manual, https://www.ly.gov.tw/Pages/List.aspx?nodeid=154; use get_variable_info(\"get_meetings\") data tibble dataframe, whose variables include: meeting_status 會議狀態 meeting_name 會議名稱 meeting_content 會議事由 speechers 委員發言名單 meeting_unit 主辦單位 date_ad 西元年","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_meetings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"The Spoken Meeting Records 委員發言 — get_meetings","text":"get_meetings produces list, contains title, query_time, retrieved_number, meeting_unit, start_date_ad, end_date_ad, start_date, end_date, url, variable_names, manual_info data.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_meetings.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"The Spoken Meeting Records 委員發言 — get_meetings","text":"retrieve user manual information variable data frame, please use get_variable_info(\"get_meetings\") visit API manual https://www.ly.gov.tw/Pages/List.aspx?nodeid=154. 資料似乎不一致,待確認。委員發言(取得最早時間不詳,待檢查。)","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_meetings.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Spoken Meeting Records 委員發言 — get_meetings","text":"David Liao (davidycliao@gmail.com)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_meetings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Spoken Meeting Records 委員發言 — get_meetings","text":"","code":"## query meeting records by a period of the dates in Minguo (Taiwan) calendar ## 輸入「中華民國民年」下載「委員發言」 get_meetings(start_date = \"1050120\", end_date = \"1050210\") #> #> Input Format Information: #> ------------------------ #> Date Format: YYYMMDD (ROC calendar) #> Example: 1090101 for 2020/01/01 #> ------------------------ #> #> Downloading meeting records data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> URL: #> https://www.ly.gov.tw/WebAPI/LegislativeSpeech.aspx?from=1050120&to=1050210&meeting_unit=&mode=json #> Date Range: 2016-01-20 to 2016-02-10 #> Total Records: 1 #> =================================== #> $title #> [1] \"Meeting Records\" #> #> $query_time #> [1] \"2025-01-05 00:33:33 GMT\" #> #> $retrieved_number #> [1] 1 #> #> $meeting_unit #> NULL #> #> $start_date_ad #> [1] \"2016-01-20\" #> #> $end_date_ad #> [1] \"2016-02-10\" #> #> $start_date #> [1] \"1050120\" #> #> $end_date #> [1] \"1050210\" #> #> $url #> [1] \"https://www.ly.gov.tw/WebAPI/LegislativeSpeech.aspx?from=1050120&to=1050210&meeting_unit=&mode=json\" #> #> $variable_names #> [1] \"smeeting_date\" \"meeting_status\" \"meeting_name\" #> [4] \"meeting_content\" \"speechers\" \"meeting_unit\" #> [7] \"date_ad\" #> #> $manual_info #> [1] \"https://www.ly.gov.tw/Pages/List.aspx?nodeid=154\" #> #> $data #> # A tibble: 1 × 7 #> smeeting_date meeting_status meeting_name meeting_content speechers #> #> 1 105/02/01 散會(15:55) 第9屆立法院預備會議…… 第9屆立法委員報到、就職宣誓… NA #> # ℹ 2 more variables: meeting_unit , date_ad #> ## query meeting records by a period of the dates in Minguo (Taiwan) calendar format ## and a meeting ## 輸入「中華民國民年」與「審查會議或委員會名稱」下載會議審查資訊 get_meetings(start_date = 1060120, end_date = 1070310, meeting_unit = \"內政委員會\") #> #> Input Format Information: #> ------------------------ #> Date Format: YYYMMDD (ROC calendar) #> Example: 1090101 for 2020/01/01 #> ------------------------ #> #> Downloading meeting records data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> URL: #> https://www.ly.gov.tw/WebAPI/LegislativeSpeech.aspx?from=1060120&to=1070310&meeting_unit=內政委員會&mode=json #> Meeting Unit: 內政委員會 #> Date Range: 2017-01-20 to 2018-03-10 #> Total Records: 104 #> =================================== #> $title #> [1] \"Meeting Records\" #> #> $query_time #> [1] \"2025-01-05 00:33:34 GMT\" #> #> $retrieved_number #> [1] 104 #> #> $meeting_unit #> [1] \"內政委員會\" #> #> $start_date_ad #> [1] \"2017-01-20\" #> #> $end_date_ad #> [1] \"2018-03-10\" #> #> $start_date #> [1] 1060120 #> #> $end_date #> [1] 1070310 #> #> $url #> [1] \"https://www.ly.gov.tw/WebAPI/LegislativeSpeech.aspx?from=1060120&to=1070310&meeting_unit=內政委員會&mode=json\" #> #> $variable_names #> [1] \"smeeting_date\" \"meeting_status\" \"meeting_name\" #> [4] \"meeting_content\" \"speechers\" \"meeting_unit\" #> [7] \"date_ad\" #> #> $manual_info #> [1] \"https://www.ly.gov.tw/Pages/List.aspx?nodeid=154\" #> #> $data #> # A tibble: 104 × 7 #> smeeting_date meeting_status meeting_name meeting_content speechers #> #> 1 107/03/08 散會(10:58) 立法院第9屆第5會期內政委員會… \"選舉本會召集委員\"…… NA #> 2 106/12/28 散會(17:05) 立法院第9屆第4會期內政委員會… \"一、繼續審查原住民族委員會… NA #> 3 106/12/27 散會(17:36) 立法院第9屆第4會期內政委員會… \"一、繼續審查委員王榮璋等1… NA #> 4 106/12/25 散會(12:50) 立法院第9屆第4會期內政委員會… \"一、都市更新條例:(一)審… \" 0001 曾… #> 5 106/12/25 散會(16:56) 立法院第9屆第4會期內政委員會… \" \" NA #> 6 106/12/22 會議結束 立法院朝野黨團協商…… \"本院內政委員會報告併案審查… NA #> 7 106/12/21 散會(16:46) 立法院第9屆第4會期內政委員會… \"一、審查「國籍法」:\\r\\… \" 0001 曾… #> 8 106/12/20 休息 立法院第9屆第4會期內政委員會… \"一、繼續審查「原住民身分法… \" 0001 黃… #> 9 106/12/18 散會(16:15) 立法院第9屆第4會期內政委員會… \"一、繼續審查107年度中央… NA #> 10 106/12/14 散會(14:30) 立法院第9屆第4會期內政委員會… \"一、審查委員洪宗熠等18人… \" 0001 曾… #> # ℹ 94 more rows #> # ℹ 2 more variables: meeting_unit , date_ad #>"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_parlquestions.html","id":null,"dir":"Reference","previous_headings":"","what":"The Records of Parliamentary Questions 委員質詢事項資訊 — get_parlquestions","title":"The Records of Parliamentary Questions 委員質詢事項資訊 — get_parlquestions","text":"Records Parliamentary Questions 委員質詢事項資訊","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_parlquestions.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Records of Parliamentary Questions 委員質詢事項資訊 — get_parlquestions","text":"","code":"get_parlquestions(term = NULL, session_period = NULL, verbose = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_parlquestions.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Records of Parliamentary Questions 委員質詢事項資訊 — get_parlquestions","text":"term numeric NULL. default set NULL. 參數必須為數值。 session_period integer, numeric NULL. Available options session : 1, 2, 3, 4, 5, 6, 7, 8. default set 8 參數必須為數值。 review_session_info() generates session period available option period Minguo (Taiwan) calendar. verbose logical, indicates whether get_parlquestions print detailed output retrieving data. default TRUE.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_parlquestions.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The Records of Parliamentary Questions 委員質詢事項資訊 — get_parlquestions","text":"list containing: title records parliamentary questions query_time queried time retrieved_number total number observations retrieved_term queried term url retrieved json url variable_names variables tibble dataframe manual_info offical manual https://data.ly.gov.tw/getds.action?id=6, use get_variable_info(\"get_parlquestions\") data tibble dataframe, whose variables include: term 屆別 sessionPeriod 會期 sessionTimes 會次 item 項目 selectTerm 屆別期別篩選條件","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_parlquestions.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"The Records of Parliamentary Questions 委員質詢事項資訊 — get_parlquestions","text":"get_parlquestions produces list, contains title, query_time, retrieved_number, retrieved_term, url, variable_names, manual_info, data.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_parlquestions.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"The Records of Parliamentary Questions 委員質詢事項資訊 — get_parlquestions","text":"retrieve user manual information variable data frame, please use get_variable_info(\"get_parlquestions\") visit API manual https://data.ly.gov.tw/getds.action?id=6. 質詢類: 提供議事日程本院委員之質詢事項資訊(自第8屆第1會期起)。","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_parlquestions.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Records of Parliamentary Questions 委員質詢事項資訊 — get_parlquestions","text":"David Liao (davidycliao@gmail.com)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_parlquestions.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Records of Parliamentary Questions 委員質詢事項資訊 — get_parlquestions","text":"","code":"## Query parliamentary questions by term. ## 輸入「立委會期」下載立委質詢資料 get_parlquestions(term = 10) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading parliamentary questions data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> URL: #> https://data.ly.gov.tw/odw/ID6Action.action?term=10&sessionPeriod=&sessionTimes=&item=&fileType=json #> Term: 10 #> Total Questions: 1584 #> #> Session Distribution: #> Session 01: 784 #> Session 02: 330 #> Session 03: 120 #> Session 04: 103 #> Session 05: 85 #> Session 06: 80 #> Session 07: 50 #> Session 08: 32 #> =================================== #> $title #> [1] \"Parliamentary Questions Records\" #> #> $query_time #> [1] \"2025-01-05 00:33:45 GMT\" #> #> $retrieved_number #> [1] 1584 #> #> $retrieved_term #> [1] \"10\" #> #> $url #> [1] \"https://data.ly.gov.tw/odw/ID6Action.action?term=10&sessionPeriod=&sessionTimes=&item=&fileType=json\" #> #> $variable_names #> [1] \"term\" \"sessionPeriod\" \"sessionTimes\" \"item\" #> [5] \"selectTerm\" #> #> $manual_info #> [1] \"https://data.ly.gov.tw/getds.action?id=6\" #> #> $data #> # A tibble: 1,584 × 5 #> term sessionPeriod sessionTimes item selectTerm #> #> 1 10 01 01 乙、本院委員質詢部分 all #> 2 10 01 01 一、本院李委員德維,針就大陸武漢肺炎疫情持續擴散,雖… all #> 3 10 01 01 二、本院李委員德維,針就台灣邁向高齡化、少子化社會,… all #> 4 10 01 01 三、本院許委員淑華,鑑於新型冠狀肺炎疫情在中國大陸爆… all #> 5 10 01 01 四、本院許委員淑華,鑑於政府和民眾都為武漢肺炎肆虐而… all #> 6 10 01 01 五、本院許委員淑華,鑑於2020年被喻為亞洲之虎的越… all #> 7 10 01 01 六、本院許委員淑華,鑑於台灣地區呈現低所得和高房價的… all #> 8 10 01 01 七、本院許委員淑華,鑑於蔡英文總統連任成功後,還有很… all #> 9 10 01 01 八、本院許委員淑華,鑑於新型冠狀病毒疫情未來發展似不… all #> 10 10 01 01 九、本院許委員淑華,鑑於武漢肺炎疫情侵襲,不能沒有危… all #> # ℹ 1,574 more rows #> ## Query parliamentary questions by term and session period. ## 輸入「立委屆期」與「會期」下載立委質詢資料 get_parlquestions(term = 10, session_period = 2) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading parliamentary questions data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> URL: #> https://data.ly.gov.tw/odw/ID6Action.action?term=10&sessionPeriod=02&sessionTimes=&item=&fileType=json #> Term: 10 #> Session Period: 2 #> Total Questions: 330 #> #> Session Distribution: #> Session 02: 330 #> =================================== #> $title #> [1] \"Parliamentary Questions Records\" #> #> $query_time #> [1] \"2025-01-05 00:33:49 GMT\" #> #> $retrieved_number #> [1] 330 #> #> $retrieved_term #> [1] \"10\" #> #> $url #> [1] \"https://data.ly.gov.tw/odw/ID6Action.action?term=10&sessionPeriod=02&sessionTimes=&item=&fileType=json\" #> #> $variable_names #> [1] \"term\" \"sessionPeriod\" \"sessionTimes\" \"item\" #> [5] \"selectTerm\" #> #> $manual_info #> [1] \"https://data.ly.gov.tw/getds.action?id=6\" #> #> $data #> # A tibble: 330 × 5 #> term sessionPeriod sessionTimes item selectTerm #> #> 1 10 02 01 乙、本院委員質詢部分 all #> 2 10 02 01 一、本院賴委員香伶,有鑑於近年由於中央政策推動以及法… all #> 3 10 02 01 二、本院賴委員香伶,鑑於我刑事案件數量與日俱增,地方… all #> 4 10 02 01 三、本院楊委員瓊瓔,對於行政院長親上火線說明振興券使… all #> 5 10 02 01 四、本院楊委員瓊瓔,鑑於台灣新冠疫情穩定,各項備戰禁… all #> 6 10 02 01 五、本院楊委員瓊瓔,鑑於雨季、汛期來了,路樹倒伏、毀… all #> 7 10 02 01 六、本院楊委員瓊瓔,鑑於製毒方法不斷更新,加上交通運… all #> 8 10 02 01 七、本院楊委員瓊瓔,鑑於新冠肺炎的爆發深遠的改變人類… all #> 9 10 02 01 八、本院何委員欣純,鑑於世界各國受到嚴重特殊傳染性肺… all #> 10 10 02 01 九、本院楊委員瓊瓔,鑑於台鐵嘉義殺警案因主嫌罹患思覺… all #> # ℹ 320 more rows #>"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_public_debates.html","id":null,"dir":"Reference","previous_headings":"","what":"The Records of National Public Debates 國是論壇 — get_public_debates","title":"The Records of National Public Debates 國是論壇 — get_public_debates","text":"Records National Public Debates 國是論壇","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_public_debates.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Records of National Public Debates 國是論壇 — get_public_debates","text":"","code":"get_public_debates(term = NULL, session_period = NULL, verbose = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_public_debates.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Records of National Public Debates 國是論壇 — get_public_debates","text":"term numeric NULL. default set 10. Legislative term number (e.g., 10). Data officially available 8th term onwards, testing shows data starts 10th term. session_period numeric NULL. Session period number (1-8). Default NULL. Use review_session_info() see available session periods ROC calendar. verbose logical. Whether display download progress detailed information. Default TRUE.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_public_debates.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The Records of National Public Debates 國是論壇 — get_public_debates","text":"list containing: title public debates records query_time query timestamp retrieved_number number records retrieved retrieved_term queried legislative term url retrieved API URL variable_names variables tibble dataframe manual_info official manual URL use get_variable_info(\"get_public_debates\") data tibble dataframe containing: term 屆別 sessionPeriod 會期 sessionTimes 會次 meetingTimes 臨時會會次 dateTimeDesc 日期時間說明 meetingRoom 會議地點 chairman 主持人 legislatorName 委員姓名 speakType 發言類型(paper:書面發言,speak:發言) content 內容 selectTerm 屆別期別篩選條件","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_public_debates.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"The Records of National Public Debates 國是論壇 — get_public_debates","text":"function retrieves records National Public Debates (國是論壇), including spoken written opinions. officially available 8th legislative term, testing indicates data available 10th term onwards.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_public_debates.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"The Records of National Public Debates 國是論壇 — get_public_debates","text":"details data variables API information, use get_variable_info(\"get_public_debates\") visit API manual https://data.ly.gov.tw/getds.action?id=7. 議事類: 提供公報之國是論壇資訊,並包含書面意見。 自第8屆第1會期起,但實測資料從第10屆。","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_public_debates.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Records of National Public Debates 國是論壇 — get_public_debates","text":"","code":"# Query public debates for term 10, session period 2 debates <- get_public_debates(term = 10, session_period = 2) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading public debates data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> Retrieved URL: #> https://data.ly.gov.tw/odw/ID7Action.action?term=10&sessionPeriod=02&sessionTimes=&meetingTimes=&legislatorName=&speakType=&fileType=json #> Term: 10 #> Session Period: 2 #> Total Records: 39 #> Unique Legislators: 9 #> =================================== # Query without specifying session period debates <- get_public_debates(term = 10) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading public debates data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> Retrieved URL: #> https://data.ly.gov.tw/odw/ID7Action.action?term=10&sessionPeriod=&sessionTimes=&meetingTimes=&legislatorName=&speakType=&fileType=json #> Term: 10 #> Total Records: 555 #> Unique Legislators: 30 #> ==================================="},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_speech_video.html","id":null,"dir":"Reference","previous_headings":"","what":"The Video Information of Meetings and Committees 院會及委員會之委員發言片段相關影片資訊 — get_speech_video","title":"The Video Information of Meetings and Committees 院會及委員會之委員發言片段相關影片資訊 — get_speech_video","text":"Retrieves video records information legislative meetings committee sessions, including speech segments, meeting details, video URLs. Data available JSON CSV formats 9th legislative term onwards.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_speech_video.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Video Information of Meetings and Committees 院會及委員會之委員發言片段相關影片資訊 — get_speech_video","text":"","code":"get_speech_video( term = NULL, session_period = NULL, start_date = NULL, end_date = NULL, verbose = TRUE, format = \"json\" )"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_speech_video.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Video Information of Meetings and Committees 院會及委員會之委員發言片段相關影片資訊 — get_speech_video","text":"term numeric NULL. Legislative term number (e.g., 10). Data available 9th term onwards. Default NULL. session_period numeric NULL. Session period number (1-8). Default NULL. start_date character. Must formatted ROC calendar forward slashes year, month day, e.g., \"110/10/01\". end_date character. Must formatted ROC calendar forward slashes year, month day, e.g., \"110/10/30\". verbose logical. Whether display download progress detailed information. Default TRUE. format character. Data format retrieve, either \"json\" \"csv\". Default \"json\".","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_speech_video.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The Video Information of Meetings and Committees 院會及委員會之委員發言片段相關影片資訊 — get_speech_video","text":"list containing: title speech video records query_time query timestamp retrieved_number number videos retrieved term queried legislative term session_period queried session period start_date start date ROC calendar end_date end date ROC calendar format data format (\"json\" \"csv\") url retrieved API URL variable_names variables tibble dataframe manual_info official manual URL data tibble dataframe containing: term 屆別 sessionPeriod 會期 meetingDate 會議日期(西元年) meetingTime 會議時間 meetingTypeName 主辦單位 meetingName 會議名稱 meetingContent 會議事由 legislatorName 委員姓名 areaName 選區名稱 speechStartTime 委員發言時間起 speechEndTime 委員發言時間迄 speechRecordUrl 發言紀錄網址 videoLength 影片長度 videoUrl 影片網址 selectTerm 屆別期別篩選條件","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_speech_video.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"The Video Information of Meetings and Committees 院會及委員會之委員發言片段相關影片資訊 — get_speech_video","text":"Video Information Legislative Meetings Committees function retrieves video information legislative meetings committee sessions. Data available 9th legislative term onwards (2016/民國105年). date parameters must use ROC calendar format forward slashes. Data can retrieved either JSON CSV format.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_speech_video.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"The Video Information of Meetings and Committees 院會及委員會之委員發言片段相關影片資訊 — get_speech_video","text":"details data variables API information, use get_variable_info(\"get_speech_video\") visit: https://data.ly.gov.tw/getds.action?id=148 會議類:提供立法院院會及委員會之委員發言片段相關影片資訊 (自第9屆第1會期起)。","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_speech_video.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Video Information of Meetings and Committees 院會及委員會之委員發言片段相關影片資訊 — get_speech_video","text":"","code":"if (FALSE) { # \\dontrun{ # Query video information in JSON format videos <- get_speech_video( term = 10, session_period = 4, start_date = \"110/10/01\", end_date = \"110/10/30\" ) # Query in CSV format videos_csv <- get_speech_video( term = 10, session_period = 4, start_date = \"110/10/01\", end_date = \"110/10/30\", format = \"csv\" ) # Query without specifying term/session videos <- get_speech_video( start_date = \"110/10/01\", end_date = \"110/10/30\" ) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_tly_stat.html","id":null,"dir":"Reference","previous_headings":"","what":"Fetch and Parse Legislative Yuan Statistics — get_tly_stat","title":"Fetch and Parse Legislative Yuan Statistics — get_tly_stat","text":"Retrieves statistical data Legislative Yuan API parses structured format. function fetches data bills, legislators, gazettes, meetings, IVOD records.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_tly_stat.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fetch and Parse Legislative Yuan Statistics — get_tly_stat","text":"","code":"get_tly_stat()"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_tly_stat.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fetch and Parse Legislative Yuan Statistics — get_tly_stat","text":"list containing five main components: bill - Statistics legislative bills, including total count term-wise breakdown legislator - Information legislators across different terms gazette - Statistics legislative gazettes agendas meet - Meeting statistics including counts dates ivod - Video recording statistics date ranges","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_tly_stat.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Fetch and Parse Legislative Yuan Statistics — get_tly_stat","text":"","code":"if (FALSE) { # \\dontrun{ stats <- get_tly_stat() # View total number of bills print(stats$bill$total) # View legislator counts by term print(stats$legislator$terms) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_variable_info.html","id":null,"dir":"Reference","previous_headings":"","what":"Check Each Function's Manual — get_variable_info","title":"Check Each Function's Manual — get_variable_info","text":"get_variable_info generate API's endpoint manual returned website Taiwan Legislative Yuan. avalaible options : get_bills, get_bills_2, get_meetings, get_caucus_meetings, get_speech_video , get_public_debates, get_parlquestions, get_executive_response get_committee_record.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_variable_info.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Check Each Function's Manual — get_variable_info","text":"","code":"get_variable_info(param_)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_variable_info.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Check Each Function's Manual — get_variable_info","text":"param_ characters. Must one options : get_bills get_bills: records bills, see https://data.ly.gov.tw/getds.action?id=6 get_bills_2 records legislators government proposals, see https://data.ly.gov.tw/getds.action?id=6 get_meetings spoken meeting records, see https://www.ly.gov.tw/Pages/List.aspx?nodeid=154 get_caucus_meetings meeting records cross-caucus session, see https://data.ly.gov.tw/getds.action?id=8 get_speech_video full video information meetings committees, see https://data.ly.gov.tw/getds.action?id=148 get_public_debates records national public debates, see https://data.ly.gov.tw/getds.action?id=7 get_parlquestions records parliamentary questions, see https://data.ly.gov.tw/getds.action?id=6 get_executive_response records questions answered executives, see https://data.ly.gov.tw/getds.action?id=2","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_variable_info.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Check Each Function's Manual — get_variable_info","text":"list page_info information end point reference_url url page","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_variable_info.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Check Each Function's Manual — get_variable_info","text":"get_variable_info produces list, contains page_info reference_url.","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_variable_info.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Check Each Function's Manual — get_variable_info","text":"David Liao (davidycliao@gmail.com)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_variable_info.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Check Each Function's Manual — get_variable_info","text":"","code":"if (FALSE) { # \\dontrun{ get_variable_info(\"get_bills\") } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/legis_keywords.html","id":null,"dir":"Reference","previous_headings":"","what":"Legislative Keywords for Text Analysis — legis_keywords","title":"Legislative Keywords for Text Analysis — legis_keywords","text":"dataset containing common keywords used Taiwan's legislative text analysis. keywords carefully selected cover major policy domains including disaster management, social welfare, housing policy, regional development.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/legis_keywords.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Legislative Keywords for Text Analysis — legis_keywords","text":"","code":"legis_keywords data(\"legis_keywords\")"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/legis_keywords.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Legislative Keywords for Text Analysis — legis_keywords","text":"character vector containing 10 keywords: 災害管理 八二三砲戰, 九二一大地震, 地震 社會福利 托育, 日間托老, 長照 住宅政策 眷村改建, 遷村 區域發展 偏鄉 金融政策 金融卡","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/legis_keywords.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Legislative Keywords for Text Analysis — legis_keywords","text":"Keywords compiled based common policy discussions Taiwan Legislative Yuan","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/legis_keywords.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Legislative Keywords for Text Analysis — legis_keywords","text":"Taiwan Legislative Keywords Text Analysis keywords can used quanteda text analysis packages analyze legislative documents. particularly useful : Creating document-term matrices Analyzing policy focus legislative texts Tracking policy discussions time Identifying key themes parliamentary questions texts","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/legis_keywords.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"Legislative Keywords for Text Analysis — legis_keywords","text":"Legislative Yuan, Taiwan. https://www.ly.gov.tw/","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/legis_keywords.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Legislative Keywords for Text Analysis — legis_keywords","text":"","code":"# Load the keywords data(legis_keywords)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/review_session_info.html","id":null,"dir":"Reference","previous_headings":"","what":"Check Session Periods in Each Year (Minguo Calendar) — review_session_info","title":"Check Session Periods in Each Year (Minguo Calendar) — review_session_info","text":"Check Session Periods Year (Minguo Calendar)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/review_session_info.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Check Session Periods in Each Year (Minguo Calendar) — review_session_info","text":"","code":"review_session_info(term)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/review_session_info.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Check Session Periods in Each Year (Minguo Calendar) — review_session_info","text":"term numeric","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/review_session_info.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Check Session Periods in Each Year (Minguo Calendar) — review_session_info","text":"dataframe","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/review_session_info.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Check Session Periods in Each Year (Minguo Calendar) — review_session_info","text":"review_session_info produces dataframe, displaying session period year formatted Minguo (Taiwan) calendar.","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/review_session_info.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Check Session Periods in Each Year (Minguo Calendar) — review_session_info","text":"David Liao (davidycliao@gmail.com)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/review_session_info.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Check Session Periods in Each Year (Minguo Calendar) — review_session_info","text":"","code":"if (FALSE) { # \\dontrun{ review_session_info(7) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_bill.html","id":null,"dir":"Reference","previous_headings":"","what":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar II — transformed_date_bill","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar II — transformed_date_bill","text":"transformed_date_meeting() transforms Minguo (Taiwan) Calendar .D. format POSIXct get_bill(), e.g. \"1050531\" \"2016-05-31\".","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_bill.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar II — transformed_date_bill","text":"","code":"transformed_date_bill(roc_date)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_bill.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar II — transformed_date_bill","text":"roc_date date format Taiwan ROC calendar (e.g., \"1050531\") character vector","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_bill.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar II — transformed_date_bill","text":"date POSIXct","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_bill.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar II — transformed_date_bill","text":"","code":"if (FALSE) { # \\dontrun{ transformed_date_bill(\"1050531\") } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_meeting.html","id":null,"dir":"Reference","previous_headings":"","what":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar I — transformed_date_meeting","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar I — transformed_date_meeting","text":"transformed_date_meeting() transforms Minguo (Taiwan) Calendar .D. calendar POSIXct get_meetings(), get_caucus_meetings(), get_speech_video(),","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_meeting.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar I — transformed_date_meeting","text":"","code":"transformed_date_meeting(roc_date)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_meeting.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar I — transformed_date_meeting","text":"roc_date Date format Minguo (Taiwan) calendar (e.g., \"105/05/31\") string vector","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_meeting.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar I — transformed_date_meeting","text":"date POSIXct","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_meeting.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar I — transformed_date_meeting","text":"check_date transforms ROC date date POSIXct, e.g. \"105/05/31\" \"2016-05-31\".","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_meeting.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar I — transformed_date_meeting","text":"","code":"if (FALSE) { # \\dontrun{ transformed_date_meeting(\"105/05/31\") } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/validate_dates_format.html","id":null,"dir":"Reference","previous_headings":"","what":"Validate Date Formats — validate_dates_format","title":"Validate Date Formats — validate_dates_format","text":"function checks provided start end dates correct numeric format.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/validate_dates_format.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Validate Date Formats — validate_dates_format","text":"","code":"validate_dates_format(start_date, end_date)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/validate_dates_format.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Validate Date Formats — validate_dates_format","text":"start_date string representing start date. Expected format numeric, e.g., \"1090101\". end_date string representing end date. Expected format numeric, e.g., \"1090101\".","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/validate_dates_format.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Validate Date Formats — validate_dates_format","text":"NULL. dates expected format, error thrown.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/validate_dates_format.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Validate Date Formats — validate_dates_format","text":"","code":"# This should throw an error: if (FALSE) { # \\dontrun{ validate_dates_format(\"10901\", \"1100101\") } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/website_availability.html","id":null,"dir":"Reference","previous_headings":"","what":"Check for the Website Availability I — website_availability","title":"Check for the Website Availability I — website_availability","text":"function checks availability specified website trying read first line site's content.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/website_availability.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Check for the Website Availability I — website_availability","text":"","code":"website_availability(site = \"https://data.ly.gov.tw/index.action\")"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/website_availability.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Check for the Website Availability I — website_availability","text":"site website URL check. Default \"https://data.ly.gov.tw/index.action\".","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/website_availability2.html","id":null,"dir":"Reference","previous_headings":"","what":"Check for the Website Availability II — website_availability2","title":"Check for the Website Availability II — website_availability2","text":"function checks availability specified website trying read first line site's content.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/website_availability2.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Check for the Website Availability II — website_availability2","text":"","code":"website_availability2( site = \"https://npl.ly.gov.tw/do/www/appDate?status=0&expire=02&startYear=0\" )"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/website_availability2.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Check for the Website Availability II — website_availability2","text":"site website URL check. Default \"https://npl.ly.gov.tw//www/appDate?status=0&expire=02&startYear=0\".","code":""},{"path":[]},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/news/index.html","id":"major-changes-0-2-1","dir":"Changelog","previous_headings":"","what":"Major Changes","title":"legisTaiwan 0.2.1","text":"Updated API endpoint ly.govapi.tw v2.ly.govapi.tw Maintained backward compatibility legacy API functions Enhanced documentation better clarity","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/news/index.html","id":"api-migration-notice-0-2-1","dir":"Changelog","previous_headings":"","what":"API Migration Notice","title":"legisTaiwan 0.2.1","text":"Legislative Yuan API transitioning https://ly.govapi.tw https://v2.ly.govapi.tw. functions using legacy API continue work now, recommend starting migrate code use new API endpoint.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/news/index.html","id":"legistaiwan-017","dir":"Changelog","previous_headings":"","what":"legisTaiwan 0.1.7","title":"legisTaiwan 0.1.7","text":"Enhanced user experience implementing progress bars time-intensive operations. Progress bars now displayed verbose = TRUE. Performed comprehensive spelling typographical corrections throughout package documentation function names.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/news/index.html","id":"legistaiwan-016","dir":"Changelog","previous_headings":"","what":"legisTaiwan 0.1.6","title":"legisTaiwan 0.1.6","text":"Corrected spelling errors standardized terminology across function documentation.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/news/index.html","id":"legistaiwan-014-development-version","dir":"Changelog","previous_headings":"","what":"legisTaiwan 0.1.4 (development version)","title":"legisTaiwan 0.1.4 (development version)","text":"re-documentation inserting handlers. formatting website documentation: get_executive_response(), get_bills_2(), get_debates() get_speech_video(). get_bills() get_meeting()’s starting date clear. get_public_debates() manual information inconsistent actual data. ~~Two API endpoints,質詢事項(本院委員質詢部分) 國是論壇, temporarily . Therefore, data retrieved get_parlquestions() get_public_debates() may correct. [UPDATE: Feb 5 2023]~~ get_public_debates() . [UPDATE: Feb 7 2023]","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/news/index.html","id":"legistaiwan-013-development-version","dir":"Changelog","previous_headings":"","what":"legisTaiwan 0.1.3 (development version)","title":"legisTaiwan 0.1.3 (development version)","text":"Fix typo function name: get_variabel_infos() get_variable_info(). get_committee_record() added access records reviewed items committees 提供委員會會議審查之議案項目. Add funder copyright holder NAMESPACE: 國科會 立法院 Re-documentation inserting handlers","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/news/index.html","id":"legistaiwan-011-development-version","dir":"Changelog","previous_headings":"","what":"legisTaiwan 0.1.1 (development version)","title":"legisTaiwan 0.1.1 (development version)","text":"get_executive_response(), get_bills_2(), get_debates() get_speech_video() added. package created get_meetings(), get_bills(), get_legislators(), get_parlquestions()","code":""}] +[{"path":"https://davidycliao.github.io/legisTaiwan/CONDUCT.html","id":null,"dir":"","previous_headings":"","what":"Contributor Code of Conduct","title":"Contributor Code of Conduct","text":"contributors maintainers project, pledge respect people contribute reporting issues, posting feature requests, updating documentation, submitting pull requests patches, activities. committed making participation project harassment-free experience everyone, regardless level experience, gender, gender identity expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, choice text editor. Examples unacceptable behavior participants include use sexual language imagery, derogatory comments personal attacks, trolling, public private harassment, insults, unprofessional conduct. Project maintainers right responsibility remove, edit, reject comments, commits, code, wiki edits, issues, contributions aligned Code Conduct. Project maintainers follow Code Conduct may removed project team. Instances abusive, harassing, otherwise unacceptable behavior may reported opening issue contacting one project maintainers. Code Conduct adapted Contributor Covenant (http:contributor-covenant.org), version 1.0.0, available http://contributor-covenant.org/version/1/0/0/","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/get_bills.html","id":"an-example-of-the-records-of-the-bills","dir":"Articles","previous_headings":"","what":"An Example of the Records of the Bills","title":"The Records of the Bills","text":"section demonstrates fetch analyze legislative bills data Taiwan’s parliament using legisTaiwan package. ’ll explore two different methods retrieving bill data using specific date ranges legislative terms. First, ’ll fetch bills within specific date range. Note dates use Republic China (ROC) calendar system: Start date: 106/01/20 (ROC calendar) End date: 111/03/10 (ROC calendar) get_bills() function returns comprehensive list containing metadata actual bill data: billdata list containing 12 elements: $title “records bill sponsor co-sponsor” $query_time: imestamp data retrieved $retrieved_number: Total number records retrieved $proposer: Filter condition bill proposers $start_date_ad end_date_ad: $url: source API URL data $variable_names: List column names dataset $manual_info: Link official documentation page $data: tibble [12,519 × 9] billdata$data returns tibble table containing relevent information. query_time: data retrieved retrieved_number: Number records fetched meeting_unit: Legislative unit information start_date_ad/end_date_ad: Dates Western calendar start_date/end_date: Dates ROC calendar url: Source URL variable_names: Column names dataset manual_info: Additional documentation data: actual bill records Alternatively, can fetch bills legislative term using get_bills_2(): retrieves bills specified legislative term (case, 11th term), providing convenient way analyze legislative activities within specific parliamentary periods. returned data includes detailed information bill, : Bill status progress Sponsoring legislators Committee referrals Dates various legislative actions Bill content explanatory notes","code":"library(legisTaiwan) #> Error in get(paste0(generic, \".\", class), envir = get_method_env()) : #> object 'type_sum.accel' not found #> ## legisTaiwan ## #> ## An R package connecting to the Taiwan Legislative API. ## billdata <- get_bills(start_date = 1030120,end_date = 1110310, verbose = TRUE) #> #> Input Format Information: #> ------------------------ #> Date format: YYYMMDD (ROC calendar) #> Example: 1090101 for 2020/01/01 #> ------------------------ #> #> Downloading data... #> | | | 0% | |=================== | 30% | |====================================== | 60% | |========================================================== | 90% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> Retrieved URL: #> https://www.ly.gov.tw/WebAPI/LegislativeBill.aspx?from=1030120&to=1110310&proposer=&mode=json #> Total Unique Proposers: 4585 #> Retrieved date between: 2014-01-20 and 2022-03-10 #> Retrieved Number: 12519 #> Total Unique Proposers: 4585 #> =================================== str(billdata, give.attr = FALSE) #> List of 12 #> $ title : chr \"the records of bill sponsor and co-sponsor\" #> $ query_time : POSIXct[1:1], format: \"2024-12-28 02:56:17\" #> $ retrieved_number: int 12519 #> $ proposer : NULL #> $ start_date_ad : Date[1:1], format: \"2014-01-20\" #> $ end_date_ad : Date[1:1], format: \"2022-03-10\" #> $ start_date : num 1030120 #> $ end_date : num 1110310 #> $ url : chr \"https://www.ly.gov.tw/WebAPI/LegislativeBill.aspx?from=1030120&to=1110310&proposer=&mode=json\" #> $ variable_names : chr [1:9] \"date\" \"term\" \"sessionPeriod\" \"sessionTimes\" ... #> $ manual_info : chr \"https://www.ly.gov.tw/Pages/List.aspx?nodeid=153\" #> $ data : tibble [12,519 × 9] (S3: tbl_df/tbl/data.frame) #> ..$ date : chr [1:12519] \"1110304\" \"1110304\" \"1110304\" \"1110304\" ... #> ..$ term : chr [1:12519] \"10\" \"10\" \"10\" \"10\" ... #> ..$ sessionPeriod : chr [1:12519] \"05\" \"05\" \"05\" \"05\" ... #> ..$ sessionTimes : chr [1:12519] \"02\" \"02\" \"02\" \"02\" ... #> ..$ billName : chr [1:12519] \"公民投票法第三十條及第三十二條條文修正草案\" \"財政收支劃分法第十六條之二、第三十七條之二及第三十八條之二條文修正草案\" \"勞工保險條例第六十六條及第六十九條條文修正草案\" \"中華民國憲法增修條文第九條之一、第十條及第十條之一條文修正草案\" ... #> ..$ billProposer : chr [1:12519] \"曾銘宗\" \"曾銘宗 ; 費鴻泰 ; 謝衣鳯\" \"曾銘宗 ; 費鴻泰 ; 謝衣鳯\" \"孔文吉\" ... #> ..$ billCosignatory: chr [1:12519] \"萬美玲 ; 鄭天財 ; 林為洲 ; 鄭麗文 ; 楊瓊瓔 ; 吳怡玎 ; 洪孟楷 ; 林德福 ; 溫玉霞 ; 孔文吉 ; 陳雪生 ; 李德維 ; 林\"| __truncated__ \"廖婉汝 ; 洪孟楷 ; 葉毓蘭 ; 陳玉珍 ; 徐志榮 ; 李貴敏 ; 林文瑞 ; 李德維 ; 溫玉霞 ; 萬美玲 ; 鄭正鈐 ; 鄭天財 ; 林\"| __truncated__ \"鄭正鈐 ; 洪孟楷 ; 李貴敏 ; 廖婉汝 ; 林思銘 ; 陳玉珍 ; 徐志榮 ; 葉毓蘭 ; 李德維 ; 溫玉霞 ; 萬美玲 ; 林文瑞 ; 吳\"| __truncated__ \"陳雪生 ; 洪孟楷 ; 林文瑞 ; 賴士葆 ; 廖國棟 ; 曾銘宗 ; 鄭正鈐 ; 陳椒華 ; 傅崐萁 ; 溫玉霞 ; 翁重鈞 ; 萬美玲 ; 賴\"| __truncated__ ... #> ..$ billStatus : chr [1:12519] \"\" \"\" \"\" \"\" ... #> ..$ date_ad : Date[1:12519], format: \"2022-03-04\" ... billdata$data #> # A tibble: 12,519 × 9 #> date term sessionPeriod sessionTimes billName billProposer #> #> 1 1110304 10 05 02 公民投票法第三十條及第三十二條條… 曾銘宗 #> 2 1110304 10 05 02 財政收支劃分法第十六條之二、第三… 曾銘宗 ; 費鴻泰 ;… #> 3 1110304 10 05 02 勞工保險條例第六十六條及第六十九… 曾銘宗 ; 費鴻泰 ;… #> 4 1110304 10 05 02 中華民國憲法增修條文第九條之一、… 孔文吉 #> 5 1110304 10 05 02 公平交易法第四十二條條文修正草案… 洪孟楷 #> 6 1110304 10 05 02 國民教育法第二條、第三條及第六條… 洪孟楷 #> 7 1110304 10 05 02 職業安全衛生法第一條、第六條及第… 洪孟楷 #> 8 1110304 10 05 02 耕地三七五減租條例第十九條及第三… 張育美 #> 9 1110304 10 05 02 建築法第七十七條之一及第九十一條… 張育美 #> 10 1110304 10 05 02 道路交通管理處罰條例第三十一條條… 張育美 #> # ℹ 12,509 more rows #> # ℹ 3 more variables: billCosignatory , billStatus , #> # date_ad full_term <- get_bills_2(term = 11) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10, 11) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading legislative bills data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> Retrieved URL: #> https://data.ly.gov.tw/odw/ID20Action.action?term=11&sessionPeriod=&sessionTimes=&meetingTimes=&billName=&billOrg=&billProposer=&billCosignatory=&fileType=json #> Retrieved Term: 11 #> Total Bills: 2880 #> Total Unique Proposers: 115 #> =================================== full_term #> $title #> [1] \"The records of the questions answered by the executives\" #> #> $query_time #> [1] \"2024-12-28 02:56:29 GMT\" #> #> $retrieved_number #> [1] 2880 #> #> $budget_bills #> [1] 18 #> #> $budget_percentage #> [1] 0.625 #> #> $retrieved_term #> [1] \"11\" #> #> $url #> [1] \"https://data.ly.gov.tw/odw/ID20Action.action?term=11&sessionPeriod=&sessionTimes=&meetingTimes=&billName=&billOrg=&billProposer=&billCosignatory=&fileType=json\" #> #> $variable_names #> [1] \"term\" \"sessionPeriod\" \"sessionTimes\" #> [4] \"meetingTimes\" \"billNo\" \"billName\" #> [7] \"billOrg\" \"billProposer\" \"billCosignatory\" #> [10] \"billStatus\" \"pdfUrl\" \"docUrl\" #> [13] \"selectTerm\" #> #> $manual_info #> [1] \"https://data.ly.gov.tw/getds.action?id=2\" #> #> $data #> # A tibble: 2,880 × 13 #> term sessionPeriod sessionTimes meetingTimes billNo billName billOrg #> #> 1 11 01 01 \"\" 2021100… 「立法委員互選… 本院委員羅智… #> 2 11 01 01 \"\" 2021100… 「再生醫療法草… 本院委員邱議… #> 3 11 01 01 \"\" 2021100… 「再生醫療製劑… 本院委員邱議… #> 4 11 01 01 \"\" 2021100… 「癌症防治法第… 本院委員邱議… #> 5 11 01 01 \"\" 2021100… 「不在籍投票法… 本院委員王鴻… #> 6 11 01 01 \"\" 2021100… 「預算法第八十… 本院委員王鴻… #> 7 11 01 01 \"\" 2021100… 「核子反應器設… 本院委員王鴻… #> 8 11 01 01 \"\" 2021100… 「立法院職權行… 本院台灣民眾… #> 9 11 01 01 \"\" 2021100… 「貪污治罪條例… 本院台灣民眾… #> 10 11 01 01 \"\" 2021100… 「立法委員互選… 本院台灣民眾… #> # ℹ 2,870 more rows #> # ℹ 6 more variables: billProposer , billCosignatory , #> # billStatus , pdfUrl , docUrl , selectTerm "},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/articles/get_caucus_meetings.html","id":"retrive-data","dir":"Articles","previous_headings":"Fetching Caucus Meeting Data","what":"Retrive Data","title":"An Example of Party Caucus Negotiation","text":"First, load package: Now, let’s retrieve caucus meeting records. Note special date format required: Important notes date formatting: Dates must ROC calendar format Format required: “YYY/MM/DD” (slashes) differs format used get_bills()","code":"library(legisTaiwan) #> Error in get(paste0(generic, \".\", class), envir = get_method_env()) : #> object 'type_sum.accel' not found #> ## legisTaiwan ## #> ## An R package connecting to the Taiwan Legislative API. ## caucus_df <- get_caucus_meetings( start_date = \"111/09/23\", end_date = \"112/01/19\", verbose = FALSE )"},{"path":"https://davidycliao.github.io/legisTaiwan/articles/get_caucus_meetings.html","id":"view-the-retrieved-data","dir":"Articles","previous_headings":"Fetching Caucus Meeting Data","what":"View the Retrieved data:","title":"An Example of Party Caucus Negotiation","text":"returned data includes comprehensive information caucus meetings, : Meeting dates times Participating party caucuses Meeting agendas topics Attendance records Meeting outcomes decisions","code":"caucus_df$data #> # A tibble: 43 × 15 #> comYear comVolume comBookId term sessionPeriod sessionTimes #> #> 1 103 43 \"四\" 08 05 12 #> 2 103 43 \"四\" 08 05 12 #> 3 111 101 \"下\" null null null #> 4 111 104 \"\" 10 06 08 #> 5 111 104 \"\" 10 06 08 #> 6 111 105 \"下\" null null null #> 7 111 107 \"\" null null null #> 8 111 114 \"下\" null null null #> 9 111 86 \"\" 10 06 01 #> 10 111 87 \"\" 10 06 02 #> # ℹ 33 more rows #> # ℹ 9 more variables: meetingTimes , meetingDate , #> # meetingName , subject , pageStart , pageEnd , #> # docUrl , htmlUrl , selectTerm "},{"path":"https://davidycliao.github.io/legisTaiwan/articles/get_caucus_meetings.html","id":"access-original-legislative-documents","dir":"Articles","previous_headings":"Fetching Caucus Meeting Data","what":"Access Original Legislative Documents","title":"An Example of Party Caucus Negotiation","text":"docUrl field provides direct access original caucus meeting minutes documentation. URL links official Legislative Yuan’s repository researchers public can view detailed records caucus deliberations.","code":"caucus_df$data[c(\"subject\", \"docUrl\")] #> # A tibble: 43 × 2 #> subject docUrl #> #> 1 (一)行政院函請審議「運動彩券發行條例部分條文修正草案」;(二)委員蔣乃辛等29人擬具「運動彩券發行條例第十三條及第二十三條條… https… #> 2 行政院函請審議「植物防疫檢疫法部分條文修正草案」案 https… #> 3 一、本院社會福利及衛生環境委員會報告併案審查行政院函請審議「精神衛生法修正草案」、委員王婉諭等17人擬具「精神衛生法修正草案」… https… #> 4 一、本院社會福利及衛生環境委員會報告併案審查行政院函請審議「精神衛生法修正草案」、委員王婉諭等17人擬具「精神衛生法修正草案」… https… #> 5 一、併案協商(一)司法及法制委員會併案審查(1)行政院、司法院函請審議「中華民國刑法部分條文修正草案」(2)委員李貴敏等19人… https… #> 6 行政院函請審議、本院台灣民眾黨黨團、時代力量黨團、委員曾銘宗等16人、委員楊瓊瓔等21人、委員謝衣鳯等16人、委員陳亭妃等21… https… #> 7 一、本院社會福利及衛生環境委員會報告併案審查行政院函請審議「精神衛生法修正草案」、委員王婉諭等17人擬具「精神衛生法修正草案」… https… #> 8 研商「公務人員個人專戶制退休資遣撫卹法草案」等5案相關事宜(「公務人員退休資遣撫卹法第九十三條及第九十五條條文修正草案」、「公… https… #> 9 一、本院內政委員會報告併案審查行政院函請審議、委員王美惠等20人、委員蔣萬安等19人、委員賴惠員等19人、委員張宏陸等20人、… https… #> 10 本院內政委員會報告併案審查民眾黨黨團、委員曾銘宗等18人、民眾黨黨團、時代力量黨團及委員吳玉琴等19人分別擬具「租賃住宅市場發… https… #> # ℹ 33 more rows"},{"path":"https://davidycliao.github.io/legisTaiwan/articles/get_legislators.html","id":"using-get_legislators-as-an-example-to-fetch-legislator-data","dir":"Articles","previous_headings":"","what":"Using get_legislators() as an Example to Fetch Legislator Data","title":"Legislator's Demographic Data","text":"get_legislators() function provides straightforward way access Taiwan’s legislator data official parliamentary database. ’s step--step demonstration: First, load legisTaiwan package contains tools accessing Taiwan’s legislative data. , call get_legislators() store results info. verbose = FALSE parameter suppresses progress bar data fetching. makes function run quietly without displaying download progress. command displays retrieved data includes comprehensive information legislators. returned data frame contains various fields legislator, : Personal information (name, gender, birth date) Electoral district details Party affiliation Committee ! row represents unique legislator, making easy analyze extract specific information Taiwan’s parliamentary representatives.","code":"library(legisTaiwan) #> Error in get(paste0(generic, \".\", class), envir = get_method_env()) : #> object 'type_sum.accel' not found #> ## legisTaiwan ## #> ## An R package connecting to the Taiwan Legislative API. ## info <- get_legislators(verbose = FALSE) #> #> Term is not defined... #> Requesting full data from the API. Please ensure stable connectivity. info$data #> # A tibble: 1,649 × 15 #> term name ename sex party partyGroup areaName committee onboardDate #> #> 1 00 \"\" \"\" \"\" \"\" 00 全國不分區…… \"\" \"\" #> 2 10 \"王定宇… \"Wan… \"男\" \"民主進… 民主進步黨 臺南市第6選舉… \"第10屆第1會… \"2020/02/0… #> 3 10 \"孔文吉… \"Kun… \"男\" \"中國國… 中國國民黨 山地原住民選舉… \"第10屆第1會… \"2020/02/0… #> 4 10 \"王美惠… \"Wan… \"女\" \"民主進… 民主進步黨 嘉義市選舉區…… \"第10屆第1會… \"2020/02/0… #> 5 10 \"王婉諭… \"Wan… \"女\" \"時代力… 時代力量 全國不分區及僑… \"第10屆第1會… \"2020/02/0… #> 6 10 \"伍麗華… \"WuL… \"女\" \"民主進… 民主進步黨 山地原住民選舉… \"第10屆第1會… \"2020/02/0… #> 7 10 \"江永昌… \"Chi… \"男\" \"民主進… 民主進步黨 新北市第8選舉… \"第10屆第1會… \"2020/02/0… #> 8 10 \"江啟臣… \"Chi… \"男\" \"中國國… 中國國民黨 臺中市第8選舉… \"第10屆第1會… \"2020/02/0… #> 9 10 \"何志偉… \"Ho … \"男\" \"民主進… 民主進步黨 臺北市第2選舉… \"第10屆第1會… \"2020/02/0… #> 10 10 \"何欣純… \"Ho … \"女\" \"民主進… 民主進步黨 臺中市第7選舉… \"第10屆第1會… \"2020/02/0… #> # ℹ 1,639 more rows #> # ℹ 6 more variables: degree , experience , picUrl , #> # leaveFlag , leaveDate , leaveReason "},{"path":"https://davidycliao.github.io/legisTaiwan/articles/get_parlquestions.html","id":"accessing-parliamentary-questions","dir":"Articles","previous_headings":"","what":"Accessing Parliamentary Questions","title":"Fetching Parliarmentary Questions","text":"tutorial demonstrates use legisTaiwan package access parliamentary questions executive responses Taiwan’s Legislative Yuan. package provides convenient functions fetch publicly available data.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/get_parlquestions.html","id":"loading-the-package","dir":"Articles","previous_headings":"Accessing Parliamentary Questions","what":"Loading the Package","title":"Fetching Parliarmentary Questions","text":"First, install load legisTaiwan package:","code":"library(legisTaiwan)"},{"path":"https://davidycliao.github.io/legisTaiwan/articles/get_parlquestions.html","id":"fetching-parliamentary-questions","dir":"Articles","previous_headings":"Accessing Parliamentary Questions","what":"Fetching Parliamentary Questions","title":"Fetching Parliarmentary Questions","text":"Use get_parlquestions() function retrieve parliamentary questions legislators: Function parameters: term: Legislative term (must numeric, e.g., 11) session_period: Session period (optional) verbose = TRUE: Display download progress information returned data contains: title: Data title query_time: Query timestamp _retrieved_number: Number records retrieved term: Legislative term sessionPeriod: Session period sessionTimes: Session count item: Question items","code":"# Fetch questions from the 11th term pa_term10 <- get_parlquestions(term = 11, verbose = TRUE) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading parliamentary questions data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> URL: #> https://data.ly.gov.tw/odw/ID6Action.action?term=11&sessionPeriod=&sessionTimes=&item=&fileType=json #> Term: 11 #> Total Questions: 105 #> #> Session Distribution: #> Session 01: 74 #> Session 02: 31 #> =================================== # Examine the data structure str(pa_term10) #> List of 8 #> $ title : chr \"Parliamentary Questions Records\" #> $ query_time : POSIXct[1:1], format: \"2024-12-28 02:56:46\" #> $ retrieved_number: int 105 #> $ retrieved_term : chr \"11\" #> $ url : chr \"https://data.ly.gov.tw/odw/ID6Action.action?term=11&sessionPeriod=&sessionTimes=&item=&fileType=json\" #> $ variable_names : chr [1:5] \"term\" \"sessionPeriod\" \"sessionTimes\" \"item\" ... #> $ manual_info : chr \"https://data.ly.gov.tw/getds.action?id=6\" #> $ data : tibble [105 × 5] (S3: tbl_df/tbl/data.frame) #> ..$ term : chr [1:105] \"11\" \"11\" \"11\" \"11\" ... #> ..$ sessionPeriod: chr [1:105] \"01\" \"01\" \"01\" \"01\" ... #> ..$ sessionTimes : chr [1:105] \"01\" \"01\" \"05\" \"05\" ... #> ..$ item : chr [1:105] \"乙、本院委員質詢部分\" \"一、本院羅委員智強,就文化部發放文化成年禮金政策屢傳遭濫用\" \"乙、本院委員質詢部分\" \"一、本院謝委員龍介,鑑於我國主要消費市場位處北臺灣,常需大型車輛南來北往載運暢貨,串聯產業供應鏈。惟民眾反映,\"| __truncated__ ... #> ..$ selectTerm : chr [1:105] \"all\" \"all\" \"all\" \"all\" ..."},{"path":"https://davidycliao.github.io/legisTaiwan/articles/get_parlquestions.html","id":"retrieving-executive-responses","dir":"Articles","previous_headings":"Accessing Parliamentary Questions","what":"Retrieving Executive Responses","title":"Fetching Parliarmentary Questions","text":"Use get_executive_response() function fetch responses Executive Yuan: Function parameters: term: Legislative term session_period: Session period verbose = TRUE: Display download progress information returned data includes: title: Data title query_time: Query timestamp retrieved_number: Number records retrieved data: dataframe containing response information","code":"# Fetch executive responses from the 10th term, 2nd session exec_response <- get_executive_response(term = 10, session_period = 2, verbose = TRUE) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10, 11) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading executive response data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> URL: #> https://data.ly.gov.tw/odw/ID2Action.action?term=10&sessionPeriod=02&sessionTimes=&item=&fileType=json #> Term: 10 #> Session Period: 2 #> Total Responses: 1083 #> #> Session Distribution: #> Session 02: 1083 #> =================================== # Examine the data structure head(exec_response$data) #> # A tibble: 6 × 10 #> term sessionPeriod sessionTimes meetingTimes eyNumber lyNumber subject #> #> 1 10 02 01 null (行政院函 中華… (立法院函 編… (一)行政院… #> 2 10 02 01 null (行政院函 中華… (立法院函 編… (二)行政院… #> 3 10 02 01 null (行政院函 中華… (立法院函 編… (三)行政院… #> 4 10 02 01 null (行政院函 中華… (立法院函 編… (四)行政院… #> 5 10 02 01 null (行政院函 中華… (立法院函 編… (五)行政院… #> 6 10 02 01 null (行政院函 中華… (立法院函 編… (六)行政院… #> # ℹ 3 more variables: content , docUrl , selectTerm "},{"path":"https://davidycliao.github.io/legisTaiwan/articles/manual.html","id":"statistical-information","dir":"Articles","previous_headings":"","what":"Statistical Information","title":"Manual","text":"get_tly_stat(): Fetch Parse Legislative Yuan Statistics","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/manual.html","id":"legislators","dir":"Articles","previous_headings":"","what":"Legislators","title":"Manual","text":"get_ly_legislator_detail(): Retrieve Complete Historical Records Legislators get_ly_legislators_by_term(): Get Legislators Legislative Term get_ly_legislator_cosign_bills(): Retrieve Legislator’s Co-sponsored Bills get_ly_legislator_bills(): Get Bills Proposed Legislator","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/manual.html","id":"bill","dir":"Articles","previous_headings":"","what":"Bill","title":"Manual","text":"get_ly_bills(): Fetch Parse Legislative Yuan Bills","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/manual.html","id":"committees","dir":"Articles","previous_headings":"","what":"Committees","title":"Manual","text":"get_ly_committee_meets(): Fetch Legislative Yuan Committee Meetings get_ly_committees_type(): Fetch Parse Legislative Yuan Committee Details, Jurisdiction Codes","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/manual.html","id":"interpellation","dir":"Articles","previous_headings":"","what":"Interpellation","title":"Manual","text":"get_ly_interpellations(): Get Legislative Yuan Interpellation Records","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/manual.html","id":"ivod","dir":"Articles","previous_headings":"","what":"IVOD","title":"Manual","text":"get_ly_ivod(): Get Legislative Yuan IVOD Records","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/manual.html","id":"old-api-endpoint","dir":"Articles","previous_headings":"","what":"Old API Endpoint","title":"Manual","text":"provide comprehensive guides documentation help migrate new API endpoints. get_parlquestions(): parliamentary questions asked legislators 提供議事日程本院委員之質詢事項資訊 (自第8屆) get_meetings(): spoken meeting records 委員發言 get_caucus_meetings(): meeting records cross-caucus session 提供公報之黨團協商資訊 (自第8屆) get_executive_response(): questions answered executives提供公報質詢事項行政院答復資訊 (自第8屆) get_public_debates(): public debates 提供公報之國是論壇資訊,並包含書面意見自 (自第8屆) get_speech_video(): full video information meetings committees 提供立法院院會及委員會之委員發言片段相關影片資訊 (自第9屆) get_committee_record(): records reviewed items committees 提供委員會會議審查之議案項目 (自第8屆) get_bills(): records bills 法律提案 (能取得最早日不詳,待檢查) get_bills_2(): records legislators government bill proposals 提供委員及政府之議案提案資訊 (自第8屆) passed_legislation(): legislation information passed third reading 提供公報院會紀錄之三讀通過議案資訊。(自第8屆第1會期起) coming soon get_variable_info(): API’s endpoint user manuals 使用說明文件 review_session_info(): session period year formatted Minguo (ROC) calendar. 屆期年對照表 get_legislators(): legislator demographics 提供委員基本資料","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/quickstart.html","id":"get-started-with-using-remotes","dir":"Articles","previous_headings":"","what":"Get Started with Using remotes:","title":"Quick Start","text":"legisTaiwan R package accessing Taiwan Legislative Yuan API. goal legisTaiwan make quickly instantly download Taiwan’s legislative data, digitized textual video records research project analyze public policies.","code":"install.packages(\"remotes\") remotes::install_github(\"davidycliao/legisTaiwan\", force = TRUE) library(legisTaiwan) #> Error in get(paste0(generic, \".\", class), envir = get_method_env()) : #> object 'type_sum.accel' not found #> ## legisTaiwan v0.2.1 ## #> ## An R package connecting to the Taiwan Legislative API. ##"},{"path":"https://davidycliao.github.io/legisTaiwan/articles/quickstart.html","id":"taiwan-legislative-yuan-api-v2","dir":"Articles","previous_headings":"","what":"Taiwan Legislative Yuan API (v2)","title":"Quick Start","text":"Legislative Yuan API transitioning https://ly.govapi.tw https://v2.ly.govapi.tw. maintaining support functions use legacy API, please note old API endpoint eventually deprecated. recommend users gradually transition newer API versions become available. Legacy API (ly.govapi.tw) - Still functional receive updates New API (v2.ly.govapi.tw) - Current active development maintenance","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/quickstart.html","id":"statistical-information","dir":"Articles","previous_headings":"Taiwan Legislative Yuan API (v2)","what":"Statistical Information","title":"Quick Start","text":"get_tly_stat(): Fetch Parse Legislative Yuan Statistics","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/quickstart.html","id":"legislators","dir":"Articles","previous_headings":"Taiwan Legislative Yuan API (v2)","what":"Legislators","title":"Quick Start","text":"get_ly_legislator_detail(): Retrieve Complete Historical Records Legislators get_ly_legislators_by_term(): Get Legislators Legislative Term get_ly_legislator_cosign_bills(): Retrieve Legislator’s Co-sponsored Bills get_ly_legislator_bills(): Get Bills Proposed Legislator","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/quickstart.html","id":"bill","dir":"Articles","previous_headings":"Taiwan Legislative Yuan API (v2)","what":"Bill","title":"Quick Start","text":"get_ly_bills(): Fetch Parse Legislative Yuan Bills","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/quickstart.html","id":"committees","dir":"Articles","previous_headings":"Taiwan Legislative Yuan API (v2)","what":"Committees","title":"Quick Start","text":"get_ly_committee_meets(): Fetch Legislative Yuan Committee Meetings get_ly_committees_type(): Fetch Parse Legislative Yuan Committee Details, Jurisdiction Codes","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/quickstart.html","id":"interpellation","dir":"Articles","previous_headings":"Taiwan Legislative Yuan API (v2)","what":"Interpellation","title":"Quick Start","text":"get_ly_interpellations(): Get Legislative Yuan Interpellation Records","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/quickstart.html","id":"ivod","dir":"Articles","previous_headings":"Taiwan Legislative Yuan API (v2)","what":"IVOD","title":"Quick Start","text":"get_ly_ivod(): Get Legislative Yuan IVOD Records","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/quickstart.html","id":"taiwan-legislative-yuan-api-v1","dir":"Articles","previous_headings":"","what":"Taiwan Legislative Yuan API (v1)","title":"Quick Start","text":"provide comprehensive guides documentation help migrate new API endpoints. get_parlquestions(): parliamentary questions asked legislators 提供議事日程本院委員之質詢事項資訊 (自第8屆) get_meetings(): spoken meeting records 委員發言 get_caucus_meetings(): meeting records cross-caucus session 提供公報之黨團協商資訊 (自第8屆) get_executive_response(): questions answered executives提供公報質詢事項行政院答復資訊 (自第8屆) get_public_debates(): public debates 提供公報之國是論壇資訊,並包含書面意見自 (自第8屆) get_speech_video(): full video information meetings committees 提供立法院院會及委員會之委員發言片段相關影片資訊 (自第9屆) get_committee_record(): records reviewed items committees 提供委員會會議審查之議案項目 (自第8屆) get_bills(): records bills 法律提案 (能取得最早日不詳,待檢查) get_bills_2(): records legislators government bill proposals 提供委員及政府之議案提案資訊 (自第8屆) passed_legislation(): legislation information passed third reading 提供公報院會紀錄之三讀通過議案資訊。(自第8屆第1會期起) coming soon get_variable_info(): API’s endpoint user manuals 使用說明文件 review_session_info(): session period year formatted Minguo (ROC) calendar. 屆期年對照表 get_legislators(): legislator demographics 提供委員基本資料","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/articles/quickstart.html","id":"how-to-contribute","dir":"Articles","previous_headings":"","what":"How to Contribute","title":"Quick Start","text":"Contributions form comments, code suggestions, tutorial examples welcome. Please note LeigsTaiwan released Contributor Code Conduct. contributing project, agree abide terms.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Yen-Chieh Liao. Author, maintainer. Li Tang. Contributor, author. . Copyright holder, funder. Taiwan National Science Technology Council. Contributor. Taiwan Science & Technology Policy Research Information Center NARLabs. Contributor.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Liao Y, Tang L (2025). legisTaiwan: Interface Access Taiwan Legislative API R. R package version 0.2.1, https://davidycliao.github.io/legisTaiwan/.","code":"@Manual{, title = {legisTaiwan: An Interface to Access Taiwan Legislative API in R}, author = {Yen-Chieh Liao and Li Tang}, year = {2025}, note = {R package version 0.2.1}, url = {https://davidycliao.github.io/legisTaiwan/}, }"},{"path":"https://davidycliao.github.io/legisTaiwan/index.html","id":"real-time-and-archives-of-taiwan-legislative-data-in-r-","dir":"","previous_headings":"","what":"Real-time and Archives of Taiwan Legislative Data in R","title":"Accessing Real-time and Archives of Taiwan Legislative Data in R","text":"legisTaiwan designed streamline access real-time archives Taiwan’s legislative data, drawing inspiration UK’s TheyWorkForYou API. providing straightforward access Taiwan Legislative Yuan API R, package aims enhance legislative accountability public transparency also serves powerful tool academic research. Scholars can easily retrieve analyze legislative data including voting records, parliamentary questions, bill proposals, facilitating quantitative research empirical analysis. package interfaces directly Legislative Yuan API endpoints, stable internet connection required. Users welcome contact author API implementation assistance. legisTaiwan 套件旨在簡化台灣立法院資料的即時存取,其設計理念來自於英國的 TheyWorkForYou API。透過在 R 環境中提供直接連接立法院開放資料 API 的便捷管道,本套件不僅致力於提升立法問責制和公共透明度,更為學術研究者提供了系統化分析立法數據的工具。研究人員可以輕鬆獲取並分析立法委員的表決紀錄、問政質詢、法案提案等資料,有助於量化研究和實證分析。由於套件需要直接與立法院 API 介接,使用時請確保網路連線穩定。如有任何 API 使用上的問題,歡迎與套件作者聯繫。","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/index.html","id":"get-started-with-using-remotes","dir":"","previous_headings":"Real-time and Archives of Taiwan Legislative Data in R","what":"Get Started with Using remotes:","title":"Accessing Real-time and Archives of Taiwan Legislative Data in R","text":"","code":"install.packages(\"remotes\") remotes::install_github(\"davidycliao/legisTaiwan\", force = TRUE) library(legisTaiwan) #> ## legisTaiwan ## #> ## An R package connecting to the Taiwan Legislative API. ##"},{"path":"https://davidycliao.github.io/legisTaiwan/index.html","id":"summary-descriptive-of-taiwan-legilative-yuan-api","dir":"","previous_headings":"Real-time and Archives of Taiwan Legislative Data in R","what":"Summary Descriptive of Taiwan Legilative Yuan API","title":"Accessing Real-time and Archives of Taiwan Legislative Data in R","text":"Legislative Bills Statistics Legislative Meeting Statistics Legislative Video (IVOD) Statistics","code":"analyze_bills(stats) #> #> === Bill Statistics Summary === #> Total Bills: 131762 #> Last Updated: 2025-01-04 22:18:58 #> #> First Five Terms Bill Count: #> term count percentage cumulative #> 1 11 8270 6.28 8270 #> 2 10 43018 32.65 51288 #> 3 9 30792 23.37 82080 #> 4 8 26284 19.95 108364 #> 5 7 15726 11.94 124090 analyze_meetings(stats) #> #> === Meeting Statistics Summary === #> Total Meetings: 7111 #> #> Meeting Records Statistics by Term: #> term count max_meeting_date meetdata_count 議事錄_count minutes_ratio #> 1 11 635 2025-01-09 00:00:00 610 417 65.67 #> 2 10 2267 2024-05-17 01:00:00 2146 1602 70.67 #> 3 9 2390 2020-01-22 00:00:00 2237 1614 67.53 #> 4 8 1818 2015-12-18 00:00:00 1434 1468 80.75 #> 5 6 1 0 1 100.00 #> last_meeting_date #> 1 2025-01-09 #> 2 2024-05-17 #> 3 2020-01-22 #> 4 2015-12-18 #> 5 analyze_ivod(stats) #> #> === Video Statistics Summary === #> Total Videos: 88986 #> Data Period: 2005-03-14 to 2025-01-03 #> #> Video Statistics by Term: #> term count start_date end_date start_date_fmt #> 1 11 9961 2024-02-05 07:00:00 2025-01-03 01:00:00 2024-02-05 #> 2 10 33852 2020-02-14 06:00:00 2024-01-09 01:00:00 2020-02-14 #> 3 9 34167 2016-02-19 01:00:00 2020-01-20 01:00:00 2016-02-19 #> 4 8 9608 2012-02-24 01:00:00 2015-12-18 01:00:00 2012-02-24 #> 5 7 1364 2008-02-29 01:00:00 2011-12-14 01:00:00 2008-02-29 #> end_date_fmt period_days avg_daily_videos #> 1 2025-01-03 332.750 29.94 #> 2 2024-01-09 1424.792 23.76 #> 3 2020-01-20 1431.000 23.88 #> 4 2015-12-18 1393.000 6.90 #> 5 2011-12-14 1384.000 0.99"},{"path":"https://davidycliao.github.io/legisTaiwan/index.html","id":"important-notice-api-migration","dir":"","previous_headings":"Real-time and Archives of Taiwan Legislative Data in R","what":"Important Notice: API Migration","title":"Accessing Real-time and Archives of Taiwan Legislative Data in R","text":"Legislative Yuan API transitioned https://ly.govapi.tw https://v2.ly.govapi.tw. maintaining support functions use legacy API, please note old API endpoint eventually deprecated. recommend users gradually transition newer API versions become available.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_bills.html","id":null,"dir":"Reference","previous_headings":"","what":"Analyze Legislative Bills Statistics — analyze_bills","title":"Analyze Legislative Bills Statistics — analyze_bills","text":"Analyzes visualizes bill statistics Legislative Yuan, including bill counts term, percentages, trends. Creates visualization provides summary statistics.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_bills.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Analyze Legislative Bills Statistics — analyze_bills","text":"","code":"analyze_bills(stats)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_bills.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Analyze Legislative Bills Statistics — analyze_bills","text":"stats list containing Legislative Yuan statistics following structure: bill list containing: total Total number bills max_update_time Last update timestamp terms Data frame columns: term Legislative term number count Number bills term","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_bills.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Analyze Legislative Bills Statistics — analyze_bills","text":"list containing: plot ggplot object showing bill count trends summary data frame bill statistics including: term Term number count Bill count percentage Percentage total cumulative Cumulative count","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_bills.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Analyze Legislative Bills Statistics — analyze_bills","text":"","code":"if (FALSE) { # \\dontrun{ stats <- get_ly_stat() bill_analysis <- analyze_bills(stats) # View the plot print(bill_analysis$plot) # View the summary statistics print(bill_analysis$summary) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_ivod.html","id":null,"dir":"Reference","previous_headings":"","what":"Analyze Legislative Video (IVOD) Statistics — analyze_ivod","title":"Analyze Legislative Video (IVOD) Statistics — analyze_ivod","text":"Analyzes visualizes video records (IVOD - Internet Video Demand) statistics Legislative Yuan, including video counts term, daily averages, time period coverage.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_ivod.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Analyze Legislative Video (IVOD) Statistics — analyze_ivod","text":"","code":"analyze_ivod(stats)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_ivod.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Analyze Legislative Video (IVOD) Statistics — analyze_ivod","text":"stats list containing Legislative Yuan statistics following structure: ivod list containing: total Total number video records date_range list containing: start Start date video archive end End date video archive terms Data frame columns: term Legislative term number count Number videos term start_date Start date term end_date End date term","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_ivod.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Analyze Legislative Video (IVOD) Statistics — analyze_ivod","text":"list containing: plot ggplot object showing video count distribution term summary data frame video statistics including: term Term number count Video count start_date_fmt Formatted start date end_date_fmt Formatted end date period_days Duration days avg_daily_videos Average videos per day","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_ivod.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Analyze Legislative Video (IVOD) Statistics — analyze_ivod","text":"","code":"if (FALSE) { # \\dontrun{ # Get statistics and analyze videos stats <- get_ly_stat() video_analysis <- analyze_ivod(stats) # View the plot print(video_analysis$plot) # View video statistics print(video_analysis$summary) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_meetings.html","id":null,"dir":"Reference","previous_headings":"","what":"Analyze Legislative Meeting Statistics — analyze_meetings","title":"Analyze Legislative Meeting Statistics — analyze_meetings","text":"Analyzes visualizes meeting statistics Legislative Yuan, including meeting counts term, minutes completion rates, produces comparison visualization total meetings available meeting minutes.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_meetings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Analyze Legislative Meeting Statistics — analyze_meetings","text":"","code":"analyze_meetings(stats)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_meetings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Analyze Legislative Meeting Statistics — analyze_meetings","text":"stats list containing Legislative Yuan statistics following structure: meet list containing: total Total number meetings terms Data frame columns: term Legislative term number count Number meetings term max_meeting_date Last meeting date term meetdata_count Number meetings data 議事錄_count Number meetings minutes","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_meetings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Analyze Legislative Meeting Statistics — analyze_meetings","text":"list containing: plot ggplot object showing meeting statistics comparison summary data frame meeting statistics including: term Term number count Total meetings minutes_ratio Percentage meetings minutes last_meeting_date Formatted date last meeting","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/analyze_meetings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Analyze Legislative Meeting Statistics — analyze_meetings","text":"","code":"if (FALSE) { # \\dontrun{ # Get statistics and analyze meetings stats <- get_ly_stat() meeting_analysis <- analyze_meetings(stats) # View the plot print(meeting_analysis$plot) # View meeting statistics print(meeting_analysis$summary) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/api_check.html","id":null,"dir":"Reference","previous_headings":"","what":"A General Check for Taiwan Legislative Yuan API — api_check","title":"A General Check for Taiwan Legislative Yuan API — api_check","text":"General Check Taiwan Legislative Yuan API","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/api_check.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"A General Check for Taiwan Legislative Yuan API — api_check","text":"","code":"api_check(start_date = start_date, end_date = end_date)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/api_check.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"A General Check for Taiwan Legislative Yuan API — api_check","text":"start_date start_date inherited global env. end_date end_date inherited global env.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/calculate_bill_trends.html","id":null,"dir":"Reference","previous_headings":"","what":"Calculate Legislative Bill Trends and Metrics — calculate_bill_trends","title":"Calculate Legislative Bill Trends and Metrics — calculate_bill_trends","text":"Calculates various trend metrics legislative bills, including bills per meeting bills per day, joining bill meeting statistics across terms.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/calculate_bill_trends.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Calculate Legislative Bill Trends and Metrics — calculate_bill_trends","text":"","code":"calculate_bill_trends(stats)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/calculate_bill_trends.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Calculate Legislative Bill Trends and Metrics — calculate_bill_trends","text":"stats list containing Legislative Yuan statistics following structure: bill$terms Data frame containing bill information: term Legislative term number count Number bills term meet$terms Data frame containing meeting information: term Legislative term number count Number meetings term max_meeting_date Last meeting date term","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/calculate_bill_trends.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Calculate Legislative Bill Trends and Metrics — calculate_bill_trends","text":"data frame containing following columns: term Legislative term number bills Total number bills term meetings Total number meetings term bills_per_meeting Average number bills per meeting bills_per_day Average number bills per day","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/calculate_bill_trends.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Calculate Legislative Bill Trends and Metrics — calculate_bill_trends","text":"","code":"if (FALSE) { # \\dontrun{ # Get statistics and calculate trends stats <- get_ly_stat() trends <- calculate_bill_trends(stats) # View trend analysis print(\"Bill processing trends:\") print(trends) # Analyze specific metrics print(\"Average bills per meeting by term:\") print(trends[c(\"term\", \"bills_per_meeting\")]) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_date.html","id":null,"dir":"Reference","previous_headings":"","what":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar III — check_date","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar III — check_date","text":"transformed_date_meeting() transforms Minguo (Taiwan) Calendar .D. format POSIXct get_bill(), e.g. \"1050531\" \"2016-05-31\".","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_date.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar III — check_date","text":"","code":"check_date(roc_date)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_date.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar III — check_date","text":"roc_date date format Minguo (Taiwan) Calendar (e.g., \"1050531\") character vector","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_date.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar III — check_date","text":"date POSIXct","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_date2.html","id":null,"dir":"Reference","previous_headings":"","what":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar IIII — check_date2","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar IIII — check_date2","text":"transformed_date_meeting() transforms Minguo (Taiwan) Calendar .D. format POSIXct get_bill(), e.g. \"1050531\" \"2016-05-31\".","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_date2.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar IIII — check_date2","text":"","code":"check_date2(roc_date)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_date2.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar IIII — check_date2","text":"roc_date Date format Minguo (Taiwan) calendar (e.g., \"105/05/31\") string vector","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_date2.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar IIII — check_date2","text":"date POSIXct","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_date2.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar IIII — check_date2","text":"check_date transforms ROC date date POSIXct, e.g. \"105/05/31\" \"2016-05-31\".","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_date2.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar IIII — check_date2","text":"","code":"if (FALSE) { # \\dontrun{ check_date2(\"105/05/31\") } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_internet.html","id":null,"dir":"Reference","previous_headings":"","what":"A Check for Internet Connectivity. — check_internet","title":"A Check for Internet Connectivity. — check_internet","text":"Check Internet Connectivity.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_internet.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"A Check for Internet Connectivity. — check_internet","text":"","code":"check_internet(x = curl::has_internet())"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/check_internet.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"A Check for Internet Connectivity. — check_internet","text":"x default value curl::has_internet(), activate internet connectivity check.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/create_interactive_plot.html","id":null,"dir":"Reference","previous_headings":"","what":"Create Interactive Plot of Legislative Bill Trends — create_interactive_plot","title":"Create Interactive Plot of Legislative Bill Trends — create_interactive_plot","text":"Creates interactive plotly visualization showing trend bill counts across different legislative terms. plot includes hover information interactive features.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/create_interactive_plot.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create Interactive Plot of Legislative Bill Trends — create_interactive_plot","text":"","code":"create_interactive_plot(stats)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/create_interactive_plot.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create Interactive Plot of Legislative Bill Trends — create_interactive_plot","text":"stats list containing Legislative Yuan statistics following structure: bill$terms data frame containing: term Legislative term number count Number bills term","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/create_interactive_plot.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create Interactive Plot of Legislative Bill Trends — create_interactive_plot","text":"plotly object following features: Plot Type Interactive line plot markers Hover Info Dynamic text showing term bill count Layout Title Bill count trends chart X-axis Term labels Y-axis Bill count scale","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/create_interactive_plot.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create Interactive Plot of Legislative Bill Trends — create_interactive_plot","text":"","code":"if (FALSE) { # \\dontrun{ # Create basic interactive plot stats <- get_ly_stat() p <- create_interactive_plot(stats) p # Display the plot # Create plot with custom title p <- create_interactive_plot(stats) %>% layout(title = \"Legislative Bill Trends Analysis\") p } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/dot-clean_names.html","id":null,"dir":"Reference","previous_headings":"","what":"Clean legislator Names — .clean_names","title":"Clean legislator Names — .clean_names","text":"Clean legislator Names","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/dot-clean_names.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Clean legislator Names — .clean_names","text":"","code":".clean_names(x)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/dot-onAttach.html","id":null,"dir":"Reference","previous_headings":"","what":"On package attach, display a startup message — .onAttach","title":"On package attach, display a startup message — .onAttach","text":"package attach, display startup message","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/dot-onAttach.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"On package attach, display a startup message — .onAttach","text":"","code":".onAttach(...)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/dot-onLoad.html","id":null,"dir":"Reference","previous_headings":"","what":"Register S3 methods and set up package — .onLoad","title":"Register S3 methods and set up package — .onLoad","text":"Register S3 methods set package","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/dot-onLoad.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Register S3 methods and set up package — .onLoad","text":"","code":".onLoad(libname, pkgname)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/generate_report.html","id":null,"dir":"Reference","previous_headings":"","what":"Generate Legislative Yuan Summary Statistics Report — generate_report","title":"Generate Legislative Yuan Summary Statistics Report — generate_report","text":"Generates comprehensive summary report Legislative Yuan statistics, including legislator counts, gazette information, video records data. Presents information formatted text output.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/generate_report.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Generate Legislative Yuan Summary Statistics Report — generate_report","text":"","code":"generate_report(stats)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/generate_report.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Generate Legislative Yuan Summary Statistics Report — generate_report","text":"stats list containing Legislative Yuan statistics following structure: legislator list containing legislator information: total Total historical number legislators terms Data frame legislator counts term gazette list containing gazette information: total Total number gazettes agenda_total Total number agendas last_meeting Date last meeting ivod list containing video information: total Total number video records date_range List containing start end dates video archives","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/generate_report.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Generate Legislative Yuan Summary Statistics Report — generate_report","text":"formatted report containing following sections: Bill Statistics Total Bills Total number bills Last Update recent bill update date Legislator Statistics Total Count Historical total legislators Term Distribution Legislator counts term Gazette Statistics Total Counts Numbers gazettes agendas Latest Activity recent meeting date Video Statistics Total Videos Number video records Coverage Period Time span video archives","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/generate_report.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Generate Legislative Yuan Summary Statistics Report — generate_report","text":"","code":"if (FALSE) { # \\dontrun{ # Generate full statistics report stats <- get_ly_stat() generate_report(stats) # View specific sections stats <- get_ly_stat() cat(\"\\nBill Statistics:\\n\") cat(sprintf(\"Total Bills: %d\\n\", stats$bill$total)) cat(\"\\nLegislator Statistics:\\n\") cat(sprintf(\"Total Legislators: %d\\n\", stats$legislator$total)) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills.html","id":null,"dir":"Reference","previous_headings":"","what":"The Records of the Bills: 法律提案 — get_bills","title":"The Records of the Bills: 法律提案 — get_bills","text":"Records Bills: 法律提案","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Records of the Bills: 法律提案 — get_bills","text":"","code":"get_bills(start_date = NULL, end_date = NULL, proposer = NULL, verbose = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Records of the Bills: 法律提案 — get_bills","text":"start_date numeric. Must formatted ROC Taiwan calendar, e.g., 1090101. end_date numeric. Must formatted ROC Taiwan calendar, e.g., 1090102. proposer default value NULL, indicating bills proposed legislators included start end dates. verbose logical. Specifies whether get_bills print detailed output retrieving data. default value TRUE.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The Records of the Bills: 法律提案 — get_bills","text":"list, contains: title Records cross-caucus sessions query_time Query timestamp retrieved_number Number observations retrieved meeting_unit Meeting unit start_date_ad Start date POSIXct format end_date_ad End date POSIXct format start_date Start date ROC Taiwan calendar url URL retrieved JSON data variable_names Variable names tibble dataframe manual_info Official manual. See https://www.ly.gov.tw/Pages/List.aspx?nodeid=153 use get_variable_info(\"get_bills\") data tibble dataframe following variables: sessionPeriod Session period sessionTimes Session count meetingTimes Proposal date billName Bill name billProposer Primary proposer billCosignatory Co-signatories bill billStatus Status bill date_ad Date Gregorian calendar","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"The Records of the Bills: 法律提案 — get_bills","text":"get_bills function returns list contains query_time, retrieved_number, meeting_unit, start_date_ad, end_date_ad, start_date, end_date, url, variable_names, manual_info, data.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"The Records of the Bills: 法律提案 — get_bills","text":"retrieve user manual details data frame, use get_variable_info(\"get_bills\"). checks required user manual seems inconsistent actual data.","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Records of the Bills: 法律提案 — get_bills","text":"David Liao (davidycliao@gmail.com)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Records of the Bills: 法律提案 — get_bills","text":"","code":"if (FALSE) { # \\dontrun{ ## Query bill records by a date range in the Taiwan ROC calendar format get_bills(start_date = 1060120, end_date = 1070310, verbose = TRUE) ## Query bill records by a date range and a specific legislator get_bills(start_date = 1060120, end_date = 1070310, proposer = \"孔文吉\") ## Query bill records by a date range and multiple legislators get_bills(start_date = 1060120, end_date = 1060510, proposer = \"孔文吉&鄭天財\") } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills_2.html","id":null,"dir":"Reference","previous_headings":"","what":"The Records of Legislation and the Executives Proposals: 委員及政府議案提案資訊 — get_bills_2","title":"The Records of Legislation and the Executives Proposals: 委員及政府議案提案資訊 — get_bills_2","text":"Records Legislation Executives Proposals: 委員及政府議案提案資訊","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills_2.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Records of Legislation and the Executives Proposals: 委員及政府議案提案資訊 — get_bills_2","text":"","code":"get_bills_2(term = 8, session_period = NULL, verbose = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills_2.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Records of Legislation and the Executives Proposals: 委員及政府議案提案資訊 — get_bills_2","text":"term numeric NULL value. Data available 8th term onwards. Default set 8. 參數必須為數值。資料從第8屆開始,預設值為8。 session_period integer, numeric, NULL. Valid options session : 1, 2, 3, 4, 5, 6, 7, 8. Default set NULL. 參數必須為數值。 review_session_info() provides available session periods based Minguo (Taiwan) calendar. verbose Default value TRUE. Displays details retrieved data, including number, URL, computing time.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills_2.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The Records of Legislation and the Executives Proposals: 委員及政府議案提案資訊 — get_bills_2","text":"list containing: title Records questions answered executives query_time Query time retrieved_number Number observations retrieved_term Retrieved term url Retrieved JSON URL variable_names Variables tibble dataframe manual_info Official manual: https://data.ly.gov.tw/getds.action?id=20 use get_variable_info(\"get_bills_2\") data tibble dataframe variables : term 屆別 sessionPeriod 會期 sessionTimes 會次 meetingTimes 臨時會會次 billNo 議案編號 billName 提案名稱 billOrg 提案單位/委員 billProposer 主提案人 billCosignatory 連署提案 billStatus 議案狀態 pdfUrl PDF download link related documents docUrl DOC download link related documents selectTerm Filtering criteria based term","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills_2.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"The Records of Legislation and the Executives Proposals: 委員及政府議案提案資訊 — get_bills_2","text":"get_bills_2 function produces list, includes query_time, retrieved_number, retrieved_term, url, variable_names, manual_info, data. user manual information dataframe, use get_variable_info(\"get_bills_2\").","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills_2.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"The Records of Legislation and the Executives Proposals: 委員及政府議案提案資訊 — get_bills_2","text":"details dataframe's variables, use get_variable_info(\"get_bills_2\") visit API manual https://data.ly.gov.tw/getds.action?id=20. 議事類: 提供委員及政府之議案提案資訊 (從第8屆第1會期開始)。","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills_2.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Records of Legislation and the Executives Proposals: 委員及政府議案提案資訊 — get_bills_2","text":"David Liao (davidycliao@gmail.com)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_bills_2.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Records of Legislation and the Executives Proposals: 委員及政府議案提案資訊 — get_bills_2","text":"","code":"if (FALSE) { # \\dontrun{ ## Query the executives' responses by term and session period. ## 輸入「立委屆期」與「會期」以下載「質詢事項 (行政院答復部分)」 get_bills_2(term = 8, session_period = 1) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_caucus_meetings.html","id":null,"dir":"Reference","previous_headings":"","what":"The Meeting Records of Cross-caucus Session 黨團協商資訊 — get_caucus_meetings","title":"The Meeting Records of Cross-caucus Session 黨團協商資訊 — get_caucus_meetings","text":"Meeting Records Cross-caucus Session 黨團協商資訊","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_caucus_meetings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Meeting Records of Cross-caucus Session 黨團協商資訊 — get_caucus_meetings","text":"","code":"get_caucus_meetings(start_date = NULL, end_date = NULL, verbose = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_caucus_meetings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Meeting Records of Cross-caucus Session 黨團協商資訊 — get_caucus_meetings","text":"start_date character Must formatted Minguo (ROC) calendar three forward slashes year, month day, e.g. \"106/10/20\". end_date character Must formatted Minguo (ROC) calendar three forward slashes year, month day, e.g. \"109/01/10\". verbose logical, indicates whether get_caucus_meetings print detailed output retrieving data.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_caucus_meetings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The Meeting Records of Cross-caucus Session 黨團協商資訊 — get_caucus_meetings","text":"list, contains: title meeting records cross-caucus session query_time query time retrieved_number number observation meeting_unit meeting unit start_date_ad start date POSIXct end_date_ad end date POSIXct start_date start date ROC Taiwan calendar url retrieved json url variable_names variables tibble dataframe manual_info official manual, https://data.ly.gov.tw/getds.action?id=8; use get_variable_info(\"get_caucus_meetings\") data tibble dataframe, whose variables include: comVolume 期 comBookId 冊別 term 屆別 sessionPeriod 會期 meetingTimes 臨時會會次 meetingDate 會議日期(民國年) meetingName 會議名稱 subject 案由 pageStart 起始頁 pageEnd 結束頁 docUrl 檔案下載位置 htmlUrl html網址 selectTerm 屆別期別篩選條件","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_caucus_meetings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"The Meeting Records of Cross-caucus Session 黨團協商資訊 — get_caucus_meetings","text":"get_caucus_meetings produces list, contains title, query_time, retrieved_number, meeting_unit, start_date_ad, end_date_ad, start_date, end_date, url, variable_names, manual_info data.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_caucus_meetings.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"The Meeting Records of Cross-caucus Session 黨團協商資訊 — get_caucus_meetings","text":"retrieve user manual information variable data frame, please use get_variable_info(\"get_caucus_meetings\") visit API manual https://data.ly.gov.tw/getds.action?id=8. 議事類:提供公報之黨團協商資訊 (自第8屆第1會期起)","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_caucus_meetings.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Meeting Records of Cross-caucus Session 黨團協商資訊 — get_caucus_meetings","text":"David Liao (davidycliao@gmail.com)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_caucus_meetings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Meeting Records of Cross-caucus Session 黨團協商資訊 — get_caucus_meetings","text":"","code":"## query the meeting records of cross-caucus session using a period of ## the dates in Taiwan ROC calender format with forward slash (/). ## 輸入「中華民國民年」下載「黨團協商」,輸入時間請依照該格式 \"106/10/20\", ## 需有「正斜線」做隔開。 get_caucus_meetings(start_date = \"106/10/20\", end_date = \"107/03/10\") #> Downloading caucus meetings data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> URL: #> https://data.ly.gov.tw/odw/ID8Action.action?comYear=&comVolume=&comBookId=&term=&sessionPeriod=&sessionTimes=&meetingTimes=&meetingDateS=106/10/20&meetingDateE=107/03/10&fileType=json #> Date Range: 2017-10-20 to 2018-03-10 #> Total Meetings: 27 #> =================================== #> $title #> [1] \"the meeting records of cross-caucus session\" #> #> $query_time #> [1] \"2025-01-05 00:44:23 GMT\" #> #> $retrieved_number #> [1] 27 #> #> $start_date_ad #> [1] \"2017-10-20\" #> #> $end_date_ad #> [1] \"2018-03-10\" #> #> $start_date #> [1] \"106/10/20\" #> #> $end_date #> [1] \"107/03/10\" #> #> $url #> [1] \"https://data.ly.gov.tw/odw/ID8Action.action?comYear=&comVolume=&comBookId=&term=&sessionPeriod=&sessionTimes=&meetingTimes=&meetingDateS=106/10/20&meetingDateE=107/03/10&fileType=json\" #> #> $variable_names #> [1] \"comYear\" \"comVolume\" \"comBookId\" \"term\" #> [5] \"sessionPeriod\" \"sessionTimes\" \"meetingTimes\" \"meetingDate\" #> [9] \"meetingName\" \"subject\" \"pageStart\" \"pageEnd\" #> [13] \"docUrl\" \"htmlUrl\" \"selectTerm\" #> #> $manual_info #> [1] \"https://data.ly.gov.tw/getds.action?id=8\" #> #> $data #> # A tibble: 27 × 15 #> comYear comVolume comBookId term sessionPeriod sessionTimes #> #> 1 103 43 \"四\" 08 05 12 #> 2 103 43 \"四\" 08 05 12 #> 3 106 103 \"下\" null null null #> 4 106 108 \"\" 09 04 10 #> 5 106 108 \"\" 09 04 10 #> 6 106 113 \"下\" null null null #> 7 106 113 \"下\" null null null #> 8 106 116 \"下\" 09 04 12 #> 9 106 87 \"下\" 09 04 06 #> 10 106 87 \"下\" 09 04 null #> # ℹ 17 more rows #> # ℹ 9 more variables: meetingTimes , meetingDate , #> # meetingName , subject , pageStart , pageEnd , #> # docUrl , htmlUrl , selectTerm #>"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_committee_record.html","id":null,"dir":"Reference","previous_headings":"","what":"The Records of Reviewed Items in the Committees 委員會會議審查之議案項目 — get_committee_record","title":"The Records of Reviewed Items in the Committees 委員會會議審查之議案項目 — get_committee_record","text":"Records Reviewed Items Committees 委員會會議審查之議案項目","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_committee_record.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Records of Reviewed Items in the Committees 委員會會議審查之議案項目 — get_committee_record","text":"","code":"get_committee_record(term = 10, session_period = NULL, verbose = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_committee_record.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Records of Reviewed Items in the Committees 委員會會議審查之議案項目 — get_committee_record","text":"term numeric null. Data available 8th term. default set 10. 參數必須為數值。提供委員會會議審查之議案項目。(自第10屆第1會期起) session_period integer, numeric NULL. review_session_info() provides session period's available options based Minguo (Taiwan) calendar. verbose logical. indicates whether get_executive_response print detailed output data retrieval. Default TRUE.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_committee_record.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The Records of Reviewed Items in the Committees 委員會會議審查之議案項目 — get_committee_record","text":"list containing: title Records questions answered executives query_time Time query retrieved_number Total number observations retrieved_term Queried term url Retrieved JSON URL variable_names Variables tibble dataframe manual_info Official manual, https://data.ly.gov.tw/getds.action?id=46; use get_variable_info(\"get_committee_record\") data tibble dataframe variables: term Term number sessionPeriod Session meetingNo Meeting number billNo Bill number selectTerm Term selection filter list containing: title Records questions answered executives query_time Time query retrieved_number Total number observations retrieved_term Queried term url Retrieved JSON URL variable_names Variables tibble dataframe manual_info Official manual, https://data.ly.gov.tw/getds.action?id=46; use get_variable_info(\"get_committee_record\") data tibble dataframe variables: term Term number sessionPeriod Session meetingNo Meeting number billNo Bill number selectTerm Term selection filter","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_committee_record.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"The Records of Reviewed Items in the Committees 委員會會議審查之議案項目 — get_committee_record","text":"get_committee_record provides list includes title, query_time, retrieved_number, retrieved_term, url, variable_names, manual_info, data. get_committee_record provides list includes title, query_time, retrieved_number, retrieved_term, url, variable_names, manual_info, data.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_committee_record.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"The Records of Reviewed Items in the Committees 委員會會議審查之議案項目 — get_committee_record","text":"access user manual information data frame's variables, please refer get_variable_info(\"get_committee_record\") check API manual https://data.ly.gov.tw/getds.action?id=46. provides agenda items reviewed committee meetings (10th term, 1st session onwards). access user manual information data frame's variables, please refer get_variable_info(\"get_committee_record\") check API manual https://data.ly.gov.tw/getds.action?id=46. provides agenda items reviewed committee meetings (10th term, 1st session onwards).","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_committee_record.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Records of Reviewed Items in the Committees 委員會會議審查之議案項目 — get_committee_record","text":"David Yen-Chieh Liao","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_committee_record.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Records of Reviewed Items in the Committees 委員會會議審查之議案項目 — get_committee_record","text":"","code":"## Query the committee record by term and session period. ## 輸入「立委屆期」與「會期」下載「委員會審議之議案」 get_committee_record(term = 10, session_period = 1) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading committee records data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% #> #> Error: The query is unavailable. ## Query the committee record by term and session period. ## 輸入「立委屆期」與「會期」下載「委員會審議之議案」 get_committee_record(term = 10, session_period = 1) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading committee records data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% #> #> Error: The query is unavailable."},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_executive_response.html","id":null,"dir":"Reference","previous_headings":"","what":"The Records of Response to the Questions by the Executives 公報質詢事項行政院答復資訊 — get_executive_response","title":"The Records of Response to the Questions by the Executives 公報質詢事項行政院答復資訊 — get_executive_response","text":"Records Response Questions Executives 公報質詢事項行政院答復資訊","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_executive_response.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Records of Response to the Questions by the Executives 公報質詢事項行政院答復資訊 — get_executive_response","text":"","code":"get_executive_response(term = NULL, session_period = NULL, verbose = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_executive_response.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Records of Response to the Questions by the Executives 公報質詢事項行政院答復資訊 — get_executive_response","text":"term integer, numeric NULL. default NULL. data available 8th term. 參數必須為數值。資料從自第8屆起,預設值為8。 session_period integer, numeric NULL. Available options session : 1, 2, 3, 4, 5, 6, 7, 8. default set NULL. 參數必須為數值。 review_session_info() generates session period available option period Minguo (Taiwan) calendar. verbose logical, indicates whether get_executive_response print detailed output retrieving data. default set TRUE","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_executive_response.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The Records of Response to the Questions by the Executives 公報質詢事項行政院答復資訊 — get_executive_response","text":"list contains: title records questions answered executives query_time queried time retrieved_number total number observations retrieved_term queried term url retrieved json url variable_names variables tibble dataframe manual_info offical manual data tibble dataframe, whose variables include: sessionPeriod 會期 sessionTimes 會次 meetingTimes 臨時會會次 eyNumber 行政院函公文編號 lyNumber 立法院函編號 subject 案由 content 內容 docUrl 案由 item 檔案下載位置 item 檔案下載位置 selectTerm 屆別期別篩選條件","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_executive_response.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"The Records of Response to the Questions by the Executives 公報質詢事項行政院答復資訊 — get_executive_response","text":"get_executive_response produces list, contains title, query_time, retrieved_number, retrieved_term, url, variable_names, manual_info data. retrieve user manual information, please use get_variable_info(\"get_executive_response\"). #'@note retrieve user manual information variable data frame, please use get_variable_info(\"get_executive_response\") visit API manual https://data.ly.gov.tw/getds.action?id=2. 質詢類: 提供公報質詢事項行政院答復資訊 (自第8屆第1會期起)。","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_executive_response.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Records of Response to the Questions by the Executives 公報質詢事項行政院答復資訊 — get_executive_response","text":"David Liao (davidycliao@gmail.com)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_executive_response.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Records of Response to the Questions by the Executives 公報質詢事項行政院答復資訊 — get_executive_response","text":"","code":"## query the Executives' answered response by term and the session period. ## 輸入「立委屆期」與「會期」下載「行政院答復」 get_executive_response(term = 8, session_period = 1) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10, 11) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading executive response data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> URL: #> https://data.ly.gov.tw/odw/ID2Action.action?term=08&sessionPeriod=01&sessionTimes=&item=&fileType=json #> Term: 08 #> Session Period: 1 #> Total Responses: 1065 #> #> Session Distribution: #> Session 01: 1065 #> =================================== #> $title #> [1] \"Executive Response Records\" #> #> $query_time #> [1] \"2025-01-05 00:45:14 GMT\" #> #> $retrieved_number #> [1] 1065 #> #> $retrieved_term #> [1] \"08\" #> #> $url #> [1] \"https://data.ly.gov.tw/odw/ID2Action.action?term=08&sessionPeriod=01&sessionTimes=&item=&fileType=json\" #> #> $variable_names #> [1] \"term\" \"sessionPeriod\" \"sessionTimes\" \"meetingTimes\" #> [5] \"eyNumber\" \"lyNumber\" \"subject\" \"content\" #> [9] \"docUrl\" \"selectTerm\" #> #> $manual_info #> [1] \"https://data.ly.gov.tw/getds.action?id=2\" #> #> $data #> # A tibble: 1,065 × 10 #> term sessionPeriod sessionTimes meetingTimes eyNumber lyNumber subject #> #> 1 08 01 01 null (行政院函 中… (立法院函 編… (一八一)行… #> 2 08 01 01 null (行政院函 中… (立法院函 編… (一八二)行… #> 3 08 01 01 null (行政院函 中… (立法院函 編… (一八三)行… #> 4 08 01 01 null (行政院函 中… (立法院函 編… (一八四)行… #> 5 08 01 01 null (行政院函 中… (立法院函 編… (一八五)行… #> 6 08 01 01 null (行政院函 中… (立法院函 編… (一八六)行… #> 7 08 01 01 null (行政院函 中… (立法院函 編… (一八七)行… #> 8 08 01 01 null (行政院函 中… (立法院函 編… (一八八)行… #> 9 08 01 01 null (行政院函 中… (立法院函 編… (一八九)行… #> 10 08 01 01 null (行政院函 中… (立法院函 編… (一九○)行… #> # ℹ 1,055 more rows #> # ℹ 3 more variables: content , docUrl , selectTerm #>"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_legislators.html","id":null,"dir":"Reference","previous_headings":"","what":"The Legislator' Demographic Information and Background 提供委員基本資料 — get_legislators","title":"The Legislator' Demographic Information and Background 提供委員基本資料 — get_legislators","text":"Legislator' Demographic Information Background 提供委員基本資料","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_legislators.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Legislator' Demographic Information and Background 提供委員基本資料 — get_legislators","text":"","code":"get_legislators(term = NULL, verbose = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_legislators.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Legislator' Demographic Information and Background 提供委員基本資料 — get_legislators","text":"term numeric NULL data available 2nd term. verbose logical, indicates whether get_meetings print detailed output retrieving data. default set TRUE.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_legislators.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The Legislator' Demographic Information and Background 提供委員基本資料 — get_legislators","text":"list contains: query_time queried time queried_term queried term url retrieved json url variable_names variables tibble dataframe manual_info official manual https://data.ly.gov.tw/getds.action?id=16, use legisTaiwan::get_variable_info(\"get_legislators\") data tibble dataframe, whose variables include: name 委員姓名 ename 委員姓名 sex 性別 party 黨籍 partyGroup 黨團 committee 委員會 onboardDate 到職日(西元年) degree 學歷 experience 經歷 picPath 照片位址 leaveFlag 離職日期(西元年) leaveReason 離職原因","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_legislators.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"The Legislator' Demographic Information and Background 提供委員基本資料 — get_legislators","text":"get_legislators produces list, contains query_time, queried_term, url, variable_names, manual_info data.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_legislators.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"The Legislator' Demographic Information and Background 提供委員基本資料 — get_legislators","text":"retrieve user manual information variable data frame, please use get_variable_info(\"get_legislators\") visit API manual https://data.ly.gov.tw/getds.action?id=16. 提供委員基本資料,最早資料可追溯至第2屆。","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_legislators.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Legislator' Demographic Information and Background 提供委員基本資料 — get_legislators","text":"David Liao (davidycliao@gmail.com)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_legislators.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Legislator' Demographic Information and Background 提供委員基本資料 — get_legislators","text":"","code":"## query the Executives' answered response by term and the session period. ## 輸入「立委屆期」與「會期」下載「行政院答復」 get_executive_response(term = 8, session_period = 1) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10, 11) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading executive response data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> URL: #> https://data.ly.gov.tw/odw/ID2Action.action?term=08&sessionPeriod=01&sessionTimes=&item=&fileType=json #> Term: 08 #> Session Period: 1 #> Total Responses: 1065 #> #> Session Distribution: #> Session 01: 1065 #> =================================== #> $title #> [1] \"Executive Response Records\" #> #> $query_time #> [1] \"2025-01-05 00:45:35 GMT\" #> #> $retrieved_number #> [1] 1065 #> #> $retrieved_term #> [1] \"08\" #> #> $url #> [1] \"https://data.ly.gov.tw/odw/ID2Action.action?term=08&sessionPeriod=01&sessionTimes=&item=&fileType=json\" #> #> $variable_names #> [1] \"term\" \"sessionPeriod\" \"sessionTimes\" \"meetingTimes\" #> [5] \"eyNumber\" \"lyNumber\" \"subject\" \"content\" #> [9] \"docUrl\" \"selectTerm\" #> #> $manual_info #> [1] \"https://data.ly.gov.tw/getds.action?id=2\" #> #> $data #> # A tibble: 1,065 × 10 #> term sessionPeriod sessionTimes meetingTimes eyNumber lyNumber subject #> #> 1 08 01 01 null (行政院函 中… (立法院函 編… (一八一)行… #> 2 08 01 01 null (行政院函 中… (立法院函 編… (一八二)行… #> 3 08 01 01 null (行政院函 中… (立法院函 編… (一八三)行… #> 4 08 01 01 null (行政院函 中… (立法院函 編… (一八四)行… #> 5 08 01 01 null (行政院函 中… (立法院函 編… (一八五)行… #> 6 08 01 01 null (行政院函 中… (立法院函 編… (一八六)行… #> 7 08 01 01 null (行政院函 中… (立法院函 編… (一八七)行… #> 8 08 01 01 null (行政院函 中… (立法院函 編… (一八八)行… #> 9 08 01 01 null (行政院函 中… (立法院函 編… (一八九)行… #> 10 08 01 01 null (行政院函 中… (立法院函 編… (一九○)行… #> # ℹ 1,055 more rows #> # ℹ 3 more variables: content , docUrl , selectTerm #>"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_bills.html","id":null,"dir":"Reference","previous_headings":"","what":"Fetch and Parse Legislative Yuan Bills — get_ly_bills","title":"Fetch and Parse Legislative Yuan Bills — get_ly_bills","text":"Retrieves bill information Legislative Yuan API comprehensive filter options. Supports filtering term, session, bill type, status, attributes. Returns metadata detailed bill information.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_bills.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fetch and Parse Legislative Yuan Bills — get_ly_bills","text":"","code":"get_ly_bills( page = 1, per_page = 20, term = NULL, session = NULL, bill_type = NULL, current_status = NULL, process_status = NULL, proposer = NULL, cosigner = NULL, source = NULL, bill_id = NULL, law_id = NULL, meeting_code = NULL, show_progress = TRUE )"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_bills.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Fetch and Parse Legislative Yuan Bills — get_ly_bills","text":"page integer. Page number pagination (default: 1) per_page integer. Number items per page (default: 20) term integer. Legislative term, e.g., 11 session integer. Legislative session period, e.g., 2 bill_type string. Type bill: \"法律案\" (Law Bill) \"中央政府總預算案\" (Central Government Budget Bill) \"預(決) 算決議案\" (Budget/Final Account Resolution) \"定期報告\" (Regular Report) \"行政命令(層級)\" (Administrative Order) \"院內單位來文\" (Internal Document) current_status string. Current bill status, e.g., \"排入院會\" process_status string. Status process flow, e.g., \"排入院會 (交內政委員會)\" proposer string. Bill proposer name cosigner string. Bill cosigner name source string. Source bill, e.g., \"委員提案\" bill_id string. Bill ID number law_id string. Related law ID number meeting_code string. Meeting code, e.g., \"院會-11-2-3\" show_progress logical. Whether display progress bar (default: TRUE)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_bills.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fetch and Parse Legislative Yuan Bills — get_ly_bills","text":"list containing: metadata - List pagination info applied filters bills - Data frame bill details","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_bills.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Fetch and Parse Legislative Yuan Bills — get_ly_bills","text":"","code":"# Get law bills bills <- get_ly_bills( term = 11, bill_type = \"法律案\", show_progress = TRUE ) #> Fetching data... #> Data received successfully, processing... #> Found 100 bills, converting... #> | | | 0% | |= | 1% | |= | 2% | |== | 3% | |=== | 4% | |=== | 5% | |==== | 6% | |==== | 7% | |===== | 8% | |====== | 9% | |====== | 10% | |======= | 11% | |======== | 12% | |======== | 13% | |========= | 14% | |========== | 15% | |========== | 16% | |=========== | 17% | |============ | 18% | |============ | 19% | |============= | 20% | |============= | 21% | |============== | 22% | |=============== | 23% | |=============== | 24% | |================ | 25% | |================= | 26% | |================= | 27% | |================== | 28% | |=================== | 29% | |=================== | 30% | |==================== | 31% | |==================== | 32% | |===================== | 33% | |====================== | 34% | |====================== | 35% | |======================= | 36% | |======================== | 37% | |======================== | 38% | |========================= | 39% | |========================== | 40% | |========================== | 41% | |=========================== | 42% | |============================ | 43% | |============================ | 44% | |============================= | 45% | |============================= | 46% | |============================== | 47% | |=============================== | 48% | |=============================== | 49% | |================================ | 50% | |================================= | 51% | |================================= | 52% | |================================== | 53% | |=================================== | 54% | |=================================== | 55% | |==================================== | 56% | |==================================== | 57% | |===================================== | 58% | |====================================== | 59% | |====================================== | 60% | |======================================= | 61% | |======================================== | 62% | |======================================== | 63% | |========================================= | 64% | |========================================== | 65% | |========================================== | 66% | |=========================================== | 67% | |============================================ | 68% | |============================================ | 69% | |============================================= | 70% | |============================================= | 71% | |============================================== | 72% | |=============================================== | 73% | |=============================================== | 74% | |================================================ | 75% | |================================================= | 76% | |================================================= | 77% | |================================================== | 78% | |=================================================== | 79% | |=================================================== | 80% | |==================================================== | 81% | |==================================================== | 82% | |===================================================== | 83% | |====================================================== | 84% | |====================================================== | 85% | |======================================================= | 86% | |======================================================== | 87% | |======================================================== | 88% | |========================================================= | 89% | |========================================================== | 90% | |========================================================== | 91% | |=========================================================== | 92% | |============================================================ | 93% | |============================================================ | 94% | |============================================================= | 95% | |============================================================= | 96% | |============================================================== | 97% | |=============================================================== | 98% | |=============================================================== | 99% | |================================================================| 100% #> #> Conversion complete! #> Processing complete! Total bills processed: 100 # Get budget bills bills <- get_ly_bills( term = 11, bill_type = \"中央政府總預算案\", show_progress = TRUE ) #> Fetching data... #> Data received successfully, processing... #> Found 37 bills, converting... #> | | | 0% | |== | 3% | |=== | 5% | |===== | 8% | |======= | 11% | |========= | 14% | |========== | 16% | |============ | 19% | |============== | 22% | |================ | 24% | |================= | 27% | |=================== | 30% | |===================== | 32% | |====================== | 35% | |======================== | 38% | |========================== | 41% | |============================ | 43% | |============================= | 46% | |=============================== | 49% | |================================= | 51% | |=================================== | 54% | |==================================== | 57% | |====================================== | 59% | |======================================== | 62% | |========================================== | 65% | |=========================================== | 68% | |============================================= | 70% | |=============================================== | 73% | |================================================ | 76% | |================================================== | 78% | |==================================================== | 81% | |====================================================== | 84% | |======================================================= | 86% | |========================================================= | 89% | |=========================================================== | 92% | |============================================================= | 95% | |============================================================== | 97% | |================================================================| 100% #> #> Conversion complete! #> Processing complete! Total bills processed: 37 # Get administrative orders bills <- get_ly_bills( term = 11, bill_type = \"行政命令(層級)\", show_progress = TRUE ) #> Fetching data... #> Data received successfully, processing... #> Found 100 bills, converting... #> | | | 0% | |= | 1% | |= | 2% | |== | 3% | |=== | 4% | |=== | 5% | |==== | 6% | |==== | 7% | |===== | 8% | |====== | 9% | |====== | 10% | |======= | 11% | |======== | 12% | |======== | 13% | |========= | 14% | |========== | 15% | |========== | 16% | |=========== | 17% | |============ | 18% | |============ | 19% | |============= | 20% | |============= | 21% | |============== | 22% | |=============== | 23% | |=============== | 24% | |================ | 25% | |================= | 26% | |================= | 27% | |================== | 28% | |=================== | 29% | |=================== | 30% | |==================== | 31% | |==================== | 32% | |===================== | 33% | |====================== | 34% | |====================== | 35% | |======================= | 36% | |======================== | 37% | |======================== | 38% | |========================= | 39% | |========================== | 40% | |========================== | 41% | |=========================== | 42% | |============================ | 43% | |============================ | 44% | |============================= | 45% | |============================= | 46% | |============================== | 47% | |=============================== | 48% | |=============================== | 49% | |================================ | 50% | |================================= | 51% | |================================= | 52% | |================================== | 53% | |=================================== | 54% | |=================================== | 55% | |==================================== | 56% | |==================================== | 57% | |===================================== | 58% | |====================================== | 59% | |====================================== | 60% | |======================================= | 61% | |======================================== | 62% | |======================================== | 63% | |========================================= | 64% | |========================================== | 65% | |========================================== | 66% | |=========================================== | 67% | |============================================ | 68% | |============================================ | 69% | |============================================= | 70% | |============================================= | 71% | |============================================== | 72% | |=============================================== | 73% | |=============================================== | 74% | |================================================ | 75% | |================================================= | 76% | |================================================= | 77% | |================================================== | 78% | |=================================================== | 79% | |=================================================== | 80% | |==================================================== | 81% | |==================================================== | 82% | |===================================================== | 83% | |====================================================== | 84% | |====================================================== | 85% | |======================================================= | 86% | |======================================================== | 87% | |======================================================== | 88% | |========================================================= | 89% | |========================================================== | 90% | |========================================================== | 91% | |=========================================================== | 92% | |============================================================ | 93% | |============================================================ | 94% | |============================================================= | 95% | |============================================================= | 96% | |============================================================== | 97% | |=============================================================== | 98% | |=============================================================== | 99% | |================================================================| 100% #> #> Conversion complete! #> Processing complete! Total bills processed: 100"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_committee_meets.html","id":null,"dir":"Reference","previous_headings":"","what":"Fetch Legislative Yuan Committee Meetings — get_ly_committee_meets","title":"Fetch Legislative Yuan Committee Meetings — get_ly_committee_meets","text":"Retrieves processes committee meeting information Legislative Yuan API.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_committee_meets.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fetch Legislative Yuan Committee Meetings — get_ly_committee_meets","text":"","code":"get_ly_committee_meets( committee_id, page = 1, per_page = 20, term = NULL, session = NULL, meeting_code = NULL, meeting_type = NULL, attending_member = NULL, date = NULL, meeting_number = NULL, bill_id = NULL, show_progress = TRUE )"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_committee_meets.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Fetch Legislative Yuan Committee Meetings — get_ly_committee_meets","text":"committee_id integer. Required. ID committee page integer. Page number pagination (default: 1) per_page integer. Number items per page (default: 20) term integer. Legislative term number session integer. Session number meeting_code string. Meeting code meeting_type string. Type meeting attending_member string. Name attending member date string. Meeting date YYYY-MM-DD format meeting_number string. Meeting number bill_id string. Bill ID show_progress logical. Whether display progress bar (default: TRUE)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_committee_meets.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fetch Legislative Yuan Committee Meetings — get_ly_committee_meets","text":"list containing metadata meetings data frame","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_committees_type.html","id":null,"dir":"Reference","previous_headings":"","what":"Fetch and Parse Legislative Yuan Committee Details, Jurisdiction and Codes — get_ly_committees_type","title":"Fetch and Parse Legislative Yuan Committee Details, Jurisdiction and Codes — get_ly_committees_type","text":"Retrieves detailed information Legislative Yuan committees, including jurisdictions, responsibilities assigned codes.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_committees_type.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fetch and Parse Legislative Yuan Committee Details, Jurisdiction and Codes — get_ly_committees_type","text":"","code":"get_ly_committees_type( page = 1, per_page = 20, type = NULL, code = NULL, show_progress = TRUE )"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_committees_type.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Fetch and Parse Legislative Yuan Committee Details, Jurisdiction and Codes — get_ly_committees_type","text":"page integer. Page number pagination (default: 1) per_page integer. Number items per page (default: 20) type string. Committee type: \"常設委員會\" (Standing Committee) \"特種委員會\" (Special Committee) \"國會改革前舊委員會名稱\" (Former Committee Names Reform) code integer. Committee code number show_progress logical. Whether display progress bar (default: TRUE)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_committees_type.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fetch and Parse Legislative Yuan Committee Details, Jurisdiction and Codes — get_ly_committees_type","text":"list containing: metadata - List pagination info applied filters committees - Data frame committee details including code, name, duties type","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_committees_type.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Fetch and Parse Legislative Yuan Committee Details, Jurisdiction and Codes — get_ly_committees_type","text":"function fetches comprehensive committee information Legislative Yuan API, providing committee codes, names, duties, jurisdictions organizational structure.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_interpellations.html","id":null,"dir":"Reference","previous_headings":"","what":"Get Legislative Yuan Interpellation Records — get_ly_interpellations","title":"Get Legislative Yuan Interpellation Records — get_ly_interpellations","text":"Fetches parses interpellation records Legislative Yuan API. Supports filtering legislator, term, session keyword search. Returns structured data including metadata detailed interpellation records.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_interpellations.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get Legislative Yuan Interpellation Records — get_ly_interpellations","text":"","code":"get_ly_interpellations( page = 1, limit = 20, legislator = NULL, term = NULL, session_period = NULL, session_times = NULL, meet_id = NULL, query = NULL, show_progress = TRUE )"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_interpellations.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get Legislative Yuan Interpellation Records — get_ly_interpellations","text":"page integer specifying page number (default: 1) limit integer specifying number records per page (default: 20) legislator string specifying legislator's name term integer specifying legislative term number session_period integer specifying session period session_times integer specifying session times meet_id string specifying meeting ID (e.g., \"院會-9-2-1\") query string search interpellation reasons content show_progress logical value indicating whether show progress bar (default: TRUE)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_interpellations.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get Legislative Yuan Interpellation Records — get_ly_interpellations","text":"list two components: metadata list containing pagination filter information: total Total number records found total_page Total number pages current_page Current page number per_page Number records per page filters_used List filters applied interpellations data frame containing interpellation records: id Interpellation ID printed_at Date printed reason Interpellation reason description Detailed content legislators Comma-separated list legislators meet_id Meeting ID term Legislative term sessionPeriod Session period sessionTimes Session times ppg_url URL parliamentary record","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_interpellations.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get Legislative Yuan Interpellation Records — get_ly_interpellations","text":"","code":"if (FALSE) { # \\dontrun{ # Get interpellations by legislator zhao_records <- get_ly_interpellations( legislator = \"趙天麟\", limit = 5 ) # Get interpellations for specific term and session session_records <- get_ly_interpellations( term = 9, session_period = 2, session_times = 1 ) # Search interpellations by keyword search_results <- get_ly_interpellations( query = \"氫能\", page = 1, limit = 20 ) # View results print(paste(\"Total records:\", search_results$metadata$total)) head(search_results$interpellations) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_ivod.html","id":null,"dir":"Reference","previous_headings":"","what":"Fetch Legislative Yuan IVOD (Video) Records — get_ly_ivod","title":"Fetch Legislative Yuan IVOD (Video) Records — get_ly_ivod","text":"Retrieves IVOD (Internet Video Demand) records Legislative Yuan API. Returns video records sorted date descending order.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_ivod.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fetch Legislative Yuan IVOD (Video) Records — get_ly_ivod","text":"","code":"get_ly_ivod( page = 1, limit = 20, term = NULL, session_period = NULL, show_progress = TRUE )"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_ivod.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Fetch Legislative Yuan IVOD (Video) Records — get_ly_ivod","text":"page integer. Page number pagination (default: 1) limit integer. Number records per page (default: 20) term integer. Legislative term (e.g. 9) session_period integer. Session period show_progress logical. Whether display progress bar (default: TRUE)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_ivod.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fetch Legislative Yuan IVOD (Video) Records — get_ly_ivod","text":"list containing two components: metadata list containing pagination filter information: total Total number records found total_page Total number available pages current_page Current page number per_page Number records per page filters_used List filters applied query ivods data frame containing: id IVOD record ID url URL view video IVOD website video_url Direct streaming URL video meeting_time Original meeting date time meeting_name Name legislative meeting type Type video record date Meeting date YYYY-MM-DD format start_time Video start timestamp end_time Video end timestamp duration Video duration seconds video_length Formatted video length (HH:MM:SS)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_ivod.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Fetch Legislative Yuan IVOD (Video) Records — get_ly_ivod","text":"Get Legislative Yuan IVOD Records","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_ivod.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Fetch Legislative Yuan IVOD (Video) Records — get_ly_ivod","text":"","code":"if (FALSE) { # \\dontrun{ # Get videos from term 9 videos <- get_ly_ivod( term = 9, limit = 5 ) # Get videos from specific session session_videos <- get_ly_ivod( term = 9, session_period = 1, page = 1, limit = 20 ) # Access the results print(paste(\"Total videos:\", videos$metadata$total)) print(\"First video details:\") print(videos$ivods[1, c(\"meeting_name\", \"date\", \"video_length\")]) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_bills.html","id":null,"dir":"Reference","previous_headings":"","what":"Get Bill by legislator — get_ly_legislator_bills","title":"Get Bill by legislator — get_ly_legislator_bills","text":"Retrieves comprehensive information specific legislator Legislative Yuan API. includes personal details, committee assignments, educational background, work experience.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_bills.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get Bill by legislator — get_ly_legislator_bills","text":"","code":"get_ly_legislator_bills(term, name, page = 1, limit = 20, show_progress = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_bills.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get Bill by legislator — get_ly_legislator_bills","text":"term integer. Required. legislative term number (e.g., 9) name string. Required. legislator's name Chinese (e.g., \"王金平\") page integer. Page number pagination (default: 1) limit integer. Number records per page (default: 20) show_progress logical. Whether display progress information (default: TRUE)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_bills.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get Bill by legislator — get_ly_legislator_bills","text":"list containing two components: metadata list containing pagination information: total Total number bills total_page Total number pages current_page Current page number per_page Number records per page bills data frame containing bill information: billNo Bill number 議案名稱 Bill name 提案單位 Proposing unit/legislator 議案狀態 Bill status 議案類別 Bill type 提案來源 Bill source meet_id Meeting ID 會期 Session number 字號 Reference number 提案編號 Proposal number 屆期 Legislative term mtime Last modified time","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_bills.html","id":"api-details","dir":"Reference","previous_headings":"","what":"API Details","title":"Get Bill by legislator — get_ly_legislator_bills","text":"function accesses Legislative Yuan's open data API. API endpoint format : https://ly.govapi.tw/legislator/{term}/{name}/propose_bill","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_bills.html","id":"data-usage","dir":"Reference","previous_headings":"","what":"Data Usage","title":"Get Bill by legislator — get_ly_legislator_bills","text":"returned data can used : Analysis Analyzing legislator's bill proposal patterns Tracking Tracking bill status progress Research Studying legislative priorities Policy Conducting policy research","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_bills.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get Bill by legislator — get_ly_legislator_bills","text":"","code":"if (FALSE) { # \\dontrun{ # Get bills for a specific legislator bills <- get_ly_legislator_bills( term = 9, name = \"王金平\", limit = 10 ) # Get second page of bills bills_page2 <- get_ly_legislator_bills( term = 9, name = \"王金平\", page = 2, limit = 20 ) # Display summary statistics cat(sprintf( \"Total Bills: %d\\nCurrent Page: %d\\nBills per page: %d\\n\", bills$metadata$total, bills$metadata$current_page, bills$metadata$per_page )) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_cosign_bills.html","id":null,"dir":"Reference","previous_headings":"","what":"Fetch Bills Cosigned by a Legislator — get_ly_legislator_cosign_bills","title":"Fetch Bills Cosigned by a Legislator — get_ly_legislator_cosign_bills","text":"Retrieves bills cosigned specific legislator term name Legislative Yuan API.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_cosign_bills.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fetch Bills Cosigned by a Legislator — get_ly_legislator_cosign_bills","text":"","code":"get_ly_legislator_cosign_bills( term, name, page = 1, limit = 20, show_progress = TRUE )"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_cosign_bills.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Fetch Bills Cosigned by a Legislator — get_ly_legislator_cosign_bills","text":"term required integer. Legislative term number (e.g. 9) name required string. Legislator name (e.g. \"王金平\") page integer. Page number pagination (default: 1) limit integer. Number records per page (default: 20) show_progress logical. Whether display progress info (default: TRUE)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_cosign_bills.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fetch Bills Cosigned by a Legislator — get_ly_legislator_cosign_bills","text":"list containing two components: metadata list containing pagination information: total Total number cosigned bills total_page Total number pages current_page Current page number per_page Number records per page bills data frame containing bill information: billNo Bill number 議案名稱 Bill name 提案單位 Proposing unit/legislator 議案狀態 Bill status 議案類別 Bill type 提案來源 Source meet_id Meeting ID 會期 Session period 字號 Case number 提案編號 Proposal number 屆期 Term mtime Last modified time","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_cosign_bills.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Fetch Bills Cosigned by a Legislator — get_ly_legislator_cosign_bills","text":"Get Legislator's Cosigned Bills","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_cosign_bills.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Fetch Bills Cosigned by a Legislator — get_ly_legislator_cosign_bills","text":"","code":"if (FALSE) { # \\dontrun{ # Get cosigned bills bills <- get_ly_legislator_cosign_bills( term = 9, name = \"王金平\", limit = 5 ) # Print results print(paste(\"Total cosigned bills:\", bills$metadata$total)) print(\"Latest cosigned bill:\") print(bills$bills[1, c(\"議案名稱\", \"議案狀態\")]) # Get second page of results bills_page2 <- get_ly_legislator_cosign_bills( term = 9, name = \"王金平\", page = 2, limit = 20 ) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_detail.html","id":null,"dir":"Reference","previous_headings":"","what":"Fetch Legislator Detail Information — get_ly_legislator_detail","title":"Fetch Legislator Detail Information — get_ly_legislator_detail","text":"Retrieves detailed information specific legislator term name Legislative Yuan API.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_detail.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fetch Legislator Detail Information — get_ly_legislator_detail","text":"","code":"get_ly_legislator_detail(term, name, show_progress = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_detail.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Fetch Legislator Detail Information — get_ly_legislator_detail","text":"term required integer. Legislative term number (e.g. 9) name required string. Legislator name (e.g. \"王金平\") show_progress logical. Whether display progress info (default: TRUE)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_detail.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fetch Legislator Detail Information — get_ly_legislator_detail","text":"list containing legislator details: term Legislative term number name Legislator's name Chinese ename Legislator's name English sex Gender party Political party affiliation partyGroup Legislative party group areaName Represented area committee Committee assignments session onboardDate Date took office degree Education background experience Work experience picUrl URL legislator's photo leaveFlag Whether left office leaveDate Date left office applicable leaveReason Reason leaving applicable bioId Biography ID","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_detail.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Fetch Legislator Detail Information — get_ly_legislator_detail","text":"Get Legislative Yuan Legislator Detail","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislator_detail.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Fetch Legislator Detail Information — get_ly_legislator_detail","text":"","code":"if (FALSE) { # \\dontrun{ # Get legislator detail detail <- get_ly_legislator_detail( term = 9, name = \"王金平\" ) # Print basic info cat(sprintf( \"Name: %s (%s)\\nParty: %s\\nArea: %s\\n\", detail$name, detail$ename, detail$party, detail$areaName )) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislators_by_term.html","id":null,"dir":"Reference","previous_headings":"","what":"Fetch Legislators List for a Specific Term — get_ly_legislators_by_term","title":"Fetch Legislators List for a Specific Term — get_ly_legislators_by_term","text":"Retrieves paginated list legislators specific Legislative Yuan term. function provides detailed information legislators including names, parties, represented areas. also includes metadata total number legislators pagination information.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislators_by_term.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fetch Legislators List for a Specific Term — get_ly_legislators_by_term","text":"","code":"get_ly_legislators_by_term(term, page = 1, limit = 20, show_progress = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislators_by_term.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Fetch Legislators List for a Specific Term — get_ly_legislators_by_term","text":"term required integer. Legislative term number (e.g., 9) page integer. Page number pagination (default: 1) limit integer. Number records per page (default: 20) show_progress logical. Whether display progress bar summary statistics (default: TRUE)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislators_by_term.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fetch Legislators List for a Specific Term — get_ly_legislators_by_term","text":"list two components: metadata list containing: total Total number legislators total_page Total number pages current_page Current page number per_page Number records per page legislators data frame containing legislator information: term Legislative term name Legislator's name party Political party affiliation areaName Represented area (available) columns Additional columns provided API","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislators_by_term.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Fetch Legislators List for a Specific Term — get_ly_legislators_by_term","text":"Get Legislative Yuan Legislators Term function includes progress bar detailed summary statistics show_progress TRUE. summary includes: Total Statistics Total number legislators Pagination Current page total pages Page Size Records per page Distribution Party area distribution (available)","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_ly_legislators_by_term.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Fetch Legislators List for a Specific Term — get_ly_legislators_by_term","text":"","code":"if (FALSE) { # \\dontrun{ # Get first page of legislators for term 9 result <- get_ly_legislators_by_term(term = 9) # Get second page with 30 records per page result <- get_ly_legislators_by_term( term = 9, page = 2, limit = 30 ) # Access the results metadata <- result$metadata legislators_df <- result$legislators # Display total number of legislators cat(\"Total legislators:\", metadata$total, \"\\n\") # Show first few rows of legislator data head(legislators_df) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_meetings.html","id":null,"dir":"Reference","previous_headings":"","what":"The Spoken Meeting Records 委員發言 — get_meetings","title":"The Spoken Meeting Records 委員發言 — get_meetings","text":"Spoken Meeting Records 委員發言","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_meetings.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Spoken Meeting Records 委員發言 — get_meetings","text":"","code":"get_meetings( start_date = NULL, end_date = NULL, meeting_unit = NULL, verbose = TRUE )"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_meetings.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Spoken Meeting Records 委員發言 — get_meetings","text":"start_date numeric Must formatted Minguo (Taiwan) calendar, e.g. 1090101. end_date numeric Must formatted Minguo (Taiwan) calendar, e.g. 1090102. meeting_unit NULL default NULL, includes meeting types starting date ending date. verbose logical, indicates whether get_meetings print detailed output retrieving data.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_meetings.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The Spoken Meeting Records 委員發言 — get_meetings","text":"list, contains: title spoken meeting records query_time query time retrieved_number number observation meeting_unit meeting unit start_date_ad start date POSIXct end_date_ad end date POSIXct start_date start date ROC Taiwan calendar url retrieved json url variable_names variables tibble dataframe manual_info offical manual, https://www.ly.gov.tw/Pages/List.aspx?nodeid=154; use get_variable_info(\"get_meetings\") data tibble dataframe, whose variables include: meeting_status 會議狀態 meeting_name 會議名稱 meeting_content 會議事由 speechers 委員發言名單 meeting_unit 主辦單位 date_ad 西元年","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_meetings.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"The Spoken Meeting Records 委員發言 — get_meetings","text":"get_meetings produces list, contains title, query_time, retrieved_number, meeting_unit, start_date_ad, end_date_ad, start_date, end_date, url, variable_names, manual_info data.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_meetings.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"The Spoken Meeting Records 委員發言 — get_meetings","text":"retrieve user manual information variable data frame, please use get_variable_info(\"get_meetings\") visit API manual https://www.ly.gov.tw/Pages/List.aspx?nodeid=154. 資料似乎不一致,待確認。委員發言(取得最早時間不詳,待檢查。)","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_meetings.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Spoken Meeting Records 委員發言 — get_meetings","text":"David Liao (davidycliao@gmail.com)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_meetings.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Spoken Meeting Records 委員發言 — get_meetings","text":"","code":"## query meeting records by a period of the dates in Minguo (Taiwan) calendar ## 輸入「中華民國民年」下載「委員發言」 get_meetings(start_date = \"1050120\", end_date = \"1050210\") #> #> Input Format Information: #> ------------------------ #> Date Format: YYYMMDD (ROC calendar) #> Example: 1090101 for 2020/01/01 #> ------------------------ #> #> Downloading meeting records data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> URL: #> https://www.ly.gov.tw/WebAPI/LegislativeSpeech.aspx?from=1050120&to=1050210&meeting_unit=&mode=json #> Date Range: 2016-01-20 to 2016-02-10 #> Total Records: 1 #> =================================== #> $title #> [1] \"Meeting Records\" #> #> $query_time #> [1] \"2025-01-05 00:45:44 GMT\" #> #> $retrieved_number #> [1] 1 #> #> $meeting_unit #> NULL #> #> $start_date_ad #> [1] \"2016-01-20\" #> #> $end_date_ad #> [1] \"2016-02-10\" #> #> $start_date #> [1] \"1050120\" #> #> $end_date #> [1] \"1050210\" #> #> $url #> [1] \"https://www.ly.gov.tw/WebAPI/LegislativeSpeech.aspx?from=1050120&to=1050210&meeting_unit=&mode=json\" #> #> $variable_names #> [1] \"smeeting_date\" \"meeting_status\" \"meeting_name\" #> [4] \"meeting_content\" \"speechers\" \"meeting_unit\" #> [7] \"date_ad\" #> #> $manual_info #> [1] \"https://www.ly.gov.tw/Pages/List.aspx?nodeid=154\" #> #> $data #> # A tibble: 1 × 7 #> smeeting_date meeting_status meeting_name meeting_content speechers #> #> 1 105/02/01 散會(15:55) 第9屆立法院預備會議…… 第9屆立法委員報到、就職宣誓… NA #> # ℹ 2 more variables: meeting_unit , date_ad #> ## query meeting records by a period of the dates in Minguo (Taiwan) calendar format ## and a meeting ## 輸入「中華民國民年」與「審查會議或委員會名稱」下載會議審查資訊 get_meetings(start_date = 1060120, end_date = 1070310, meeting_unit = \"內政委員會\") #> #> Input Format Information: #> ------------------------ #> Date Format: YYYMMDD (ROC calendar) #> Example: 1090101 for 2020/01/01 #> ------------------------ #> #> Downloading meeting records data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> URL: #> https://www.ly.gov.tw/WebAPI/LegislativeSpeech.aspx?from=1060120&to=1070310&meeting_unit=內政委員會&mode=json #> Meeting Unit: 內政委員會 #> Date Range: 2017-01-20 to 2018-03-10 #> Total Records: 104 #> =================================== #> $title #> [1] \"Meeting Records\" #> #> $query_time #> [1] \"2025-01-05 00:45:45 GMT\" #> #> $retrieved_number #> [1] 104 #> #> $meeting_unit #> [1] \"內政委員會\" #> #> $start_date_ad #> [1] \"2017-01-20\" #> #> $end_date_ad #> [1] \"2018-03-10\" #> #> $start_date #> [1] 1060120 #> #> $end_date #> [1] 1070310 #> #> $url #> [1] \"https://www.ly.gov.tw/WebAPI/LegislativeSpeech.aspx?from=1060120&to=1070310&meeting_unit=內政委員會&mode=json\" #> #> $variable_names #> [1] \"smeeting_date\" \"meeting_status\" \"meeting_name\" #> [4] \"meeting_content\" \"speechers\" \"meeting_unit\" #> [7] \"date_ad\" #> #> $manual_info #> [1] \"https://www.ly.gov.tw/Pages/List.aspx?nodeid=154\" #> #> $data #> # A tibble: 104 × 7 #> smeeting_date meeting_status meeting_name meeting_content speechers #> #> 1 107/03/08 散會(10:58) 立法院第9屆第5會期內政委員會… \"選舉本會召集委員\"…… NA #> 2 106/12/28 散會(17:05) 立法院第9屆第4會期內政委員會… \"一、繼續審查原住民族委員會… NA #> 3 106/12/27 散會(17:36) 立法院第9屆第4會期內政委員會… \"一、繼續審查委員王榮璋等1… NA #> 4 106/12/25 散會(12:50) 立法院第9屆第4會期內政委員會… \"一、都市更新條例:(一)審… \" 0001 曾… #> 5 106/12/25 散會(16:56) 立法院第9屆第4會期內政委員會… \" \" NA #> 6 106/12/22 會議結束 立法院朝野黨團協商…… \"本院內政委員會報告併案審查… NA #> 7 106/12/21 散會(16:46) 立法院第9屆第4會期內政委員會… \"一、審查「國籍法」:\\r\\… \" 0001 曾… #> 8 106/12/20 休息 立法院第9屆第4會期內政委員會… \"一、繼續審查「原住民身分法… \" 0001 黃… #> 9 106/12/18 散會(16:15) 立法院第9屆第4會期內政委員會… \"一、繼續審查107年度中央… NA #> 10 106/12/14 散會(14:30) 立法院第9屆第4會期內政委員會… \"一、審查委員洪宗熠等18人… \" 0001 曾… #> # ℹ 94 more rows #> # ℹ 2 more variables: meeting_unit , date_ad #>"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_parlquestions.html","id":null,"dir":"Reference","previous_headings":"","what":"The Records of Parliamentary Questions 委員質詢事項資訊 — get_parlquestions","title":"The Records of Parliamentary Questions 委員質詢事項資訊 — get_parlquestions","text":"Records Parliamentary Questions 委員質詢事項資訊","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_parlquestions.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Records of Parliamentary Questions 委員質詢事項資訊 — get_parlquestions","text":"","code":"get_parlquestions(term = NULL, session_period = NULL, verbose = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_parlquestions.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Records of Parliamentary Questions 委員質詢事項資訊 — get_parlquestions","text":"term numeric NULL. default set NULL. 參數必須為數值。 session_period integer, numeric NULL. Available options session : 1, 2, 3, 4, 5, 6, 7, 8. default set 8 參數必須為數值。 review_session_info() generates session period available option period Minguo (Taiwan) calendar. verbose logical, indicates whether get_parlquestions print detailed output retrieving data. default TRUE.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_parlquestions.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The Records of Parliamentary Questions 委員質詢事項資訊 — get_parlquestions","text":"list containing: title records parliamentary questions query_time queried time retrieved_number total number observations retrieved_term queried term url retrieved json url variable_names variables tibble dataframe manual_info offical manual https://data.ly.gov.tw/getds.action?id=6, use get_variable_info(\"get_parlquestions\") data tibble dataframe, whose variables include: term 屆別 sessionPeriod 會期 sessionTimes 會次 item 項目 selectTerm 屆別期別篩選條件","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_parlquestions.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"The Records of Parliamentary Questions 委員質詢事項資訊 — get_parlquestions","text":"get_parlquestions produces list, contains title, query_time, retrieved_number, retrieved_term, url, variable_names, manual_info, data.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_parlquestions.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"The Records of Parliamentary Questions 委員質詢事項資訊 — get_parlquestions","text":"retrieve user manual information variable data frame, please use get_variable_info(\"get_parlquestions\") visit API manual https://data.ly.gov.tw/getds.action?id=6. 質詢類: 提供議事日程本院委員之質詢事項資訊(自第8屆第1會期起)。","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_parlquestions.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Records of Parliamentary Questions 委員質詢事項資訊 — get_parlquestions","text":"David Liao (davidycliao@gmail.com)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_parlquestions.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Records of Parliamentary Questions 委員質詢事項資訊 — get_parlquestions","text":"","code":"## Query parliamentary questions by term. ## 輸入「立委會期」下載立委質詢資料 get_parlquestions(term = 10) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading parliamentary questions data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> URL: #> https://data.ly.gov.tw/odw/ID6Action.action?term=10&sessionPeriod=&sessionTimes=&item=&fileType=json #> Term: 10 #> Total Questions: 1584 #> #> Session Distribution: #> Session 01: 784 #> Session 02: 330 #> Session 03: 120 #> Session 04: 103 #> Session 05: 85 #> Session 06: 80 #> Session 07: 50 #> Session 08: 32 #> =================================== #> $title #> [1] \"Parliamentary Questions Records\" #> #> $query_time #> [1] \"2025-01-05 00:45:55 GMT\" #> #> $retrieved_number #> [1] 1584 #> #> $retrieved_term #> [1] \"10\" #> #> $url #> [1] \"https://data.ly.gov.tw/odw/ID6Action.action?term=10&sessionPeriod=&sessionTimes=&item=&fileType=json\" #> #> $variable_names #> [1] \"term\" \"sessionPeriod\" \"sessionTimes\" \"item\" #> [5] \"selectTerm\" #> #> $manual_info #> [1] \"https://data.ly.gov.tw/getds.action?id=6\" #> #> $data #> # A tibble: 1,584 × 5 #> term sessionPeriod sessionTimes item selectTerm #> #> 1 10 01 01 乙、本院委員質詢部分 all #> 2 10 01 01 一、本院李委員德維,針就大陸武漢肺炎疫情持續擴散,雖… all #> 3 10 01 01 二、本院李委員德維,針就台灣邁向高齡化、少子化社會,… all #> 4 10 01 01 三、本院許委員淑華,鑑於新型冠狀肺炎疫情在中國大陸爆… all #> 5 10 01 01 四、本院許委員淑華,鑑於政府和民眾都為武漢肺炎肆虐而… all #> 6 10 01 01 五、本院許委員淑華,鑑於2020年被喻為亞洲之虎的越… all #> 7 10 01 01 六、本院許委員淑華,鑑於台灣地區呈現低所得和高房價的… all #> 8 10 01 01 七、本院許委員淑華,鑑於蔡英文總統連任成功後,還有很… all #> 9 10 01 01 八、本院許委員淑華,鑑於新型冠狀病毒疫情未來發展似不… all #> 10 10 01 01 九、本院許委員淑華,鑑於武漢肺炎疫情侵襲,不能沒有危… all #> # ℹ 1,574 more rows #> ## Query parliamentary questions by term and session period. ## 輸入「立委屆期」與「會期」下載立委質詢資料 get_parlquestions(term = 10, session_period = 2) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading parliamentary questions data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> URL: #> https://data.ly.gov.tw/odw/ID6Action.action?term=10&sessionPeriod=02&sessionTimes=&item=&fileType=json #> Term: 10 #> Session Period: 2 #> Total Questions: 330 #> #> Session Distribution: #> Session 02: 330 #> =================================== #> $title #> [1] \"Parliamentary Questions Records\" #> #> $query_time #> [1] \"2025-01-05 00:46:00 GMT\" #> #> $retrieved_number #> [1] 330 #> #> $retrieved_term #> [1] \"10\" #> #> $url #> [1] \"https://data.ly.gov.tw/odw/ID6Action.action?term=10&sessionPeriod=02&sessionTimes=&item=&fileType=json\" #> #> $variable_names #> [1] \"term\" \"sessionPeriod\" \"sessionTimes\" \"item\" #> [5] \"selectTerm\" #> #> $manual_info #> [1] \"https://data.ly.gov.tw/getds.action?id=6\" #> #> $data #> # A tibble: 330 × 5 #> term sessionPeriod sessionTimes item selectTerm #> #> 1 10 02 01 乙、本院委員質詢部分 all #> 2 10 02 01 一、本院賴委員香伶,有鑑於近年由於中央政策推動以及法… all #> 3 10 02 01 二、本院賴委員香伶,鑑於我刑事案件數量與日俱增,地方… all #> 4 10 02 01 三、本院楊委員瓊瓔,對於行政院長親上火線說明振興券使… all #> 5 10 02 01 四、本院楊委員瓊瓔,鑑於台灣新冠疫情穩定,各項備戰禁… all #> 6 10 02 01 五、本院楊委員瓊瓔,鑑於雨季、汛期來了,路樹倒伏、毀… all #> 7 10 02 01 六、本院楊委員瓊瓔,鑑於製毒方法不斷更新,加上交通運… all #> 8 10 02 01 七、本院楊委員瓊瓔,鑑於新冠肺炎的爆發深遠的改變人類… all #> 9 10 02 01 八、本院何委員欣純,鑑於世界各國受到嚴重特殊傳染性肺… all #> 10 10 02 01 九、本院楊委員瓊瓔,鑑於台鐵嘉義殺警案因主嫌罹患思覺… all #> # ℹ 320 more rows #>"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_public_debates.html","id":null,"dir":"Reference","previous_headings":"","what":"The Records of National Public Debates 國是論壇 — get_public_debates","title":"The Records of National Public Debates 國是論壇 — get_public_debates","text":"Records National Public Debates 國是論壇","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_public_debates.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Records of National Public Debates 國是論壇 — get_public_debates","text":"","code":"get_public_debates(term = NULL, session_period = NULL, verbose = TRUE)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_public_debates.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Records of National Public Debates 國是論壇 — get_public_debates","text":"term numeric NULL. default set 10. Legislative term number (e.g., 10). Data officially available 8th term onwards, testing shows data starts 10th term. session_period numeric NULL. Session period number (1-8). Default NULL. Use review_session_info() see available session periods ROC calendar. verbose logical. Whether display download progress detailed information. Default TRUE.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_public_debates.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The Records of National Public Debates 國是論壇 — get_public_debates","text":"list containing: title public debates records query_time query timestamp retrieved_number number records retrieved retrieved_term queried legislative term url retrieved API URL variable_names variables tibble dataframe manual_info official manual URL use get_variable_info(\"get_public_debates\") data tibble dataframe containing: term 屆別 sessionPeriod 會期 sessionTimes 會次 meetingTimes 臨時會會次 dateTimeDesc 日期時間說明 meetingRoom 會議地點 chairman 主持人 legislatorName 委員姓名 speakType 發言類型(paper:書面發言,speak:發言) content 內容 selectTerm 屆別期別篩選條件","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_public_debates.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"The Records of National Public Debates 國是論壇 — get_public_debates","text":"function retrieves records National Public Debates (國是論壇), including spoken written opinions. officially available 8th legislative term, testing indicates data available 10th term onwards.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_public_debates.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"The Records of National Public Debates 國是論壇 — get_public_debates","text":"details data variables API information, use get_variable_info(\"get_public_debates\") visit API manual https://data.ly.gov.tw/getds.action?id=7. 議事類: 提供公報之國是論壇資訊,並包含書面意見。 自第8屆第1會期起,但實測資料從第10屆。","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_public_debates.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Records of National Public Debates 國是論壇 — get_public_debates","text":"","code":"# Query public debates for term 10, session period 2 debates <- get_public_debates(term = 10, session_period = 2) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading public debates data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> Retrieved URL: #> https://data.ly.gov.tw/odw/ID7Action.action?term=10&sessionPeriod=02&sessionTimes=&meetingTimes=&legislatorName=&speakType=&fileType=json #> Term: 10 #> Session Period: 2 #> Total Records: 39 #> Unique Legislators: 9 #> =================================== # Query without specifying session period debates <- get_public_debates(term = 10) #> #> Input Format Information: #> ------------------------ #> Term: Must be numeric (e.g., 8, 9, 10) #> Session Period: Must be numeric (1-8) #> ------------------------ #> #> Downloading public debates data... #> | | | 0% | |============= | 20% | |========================== | 40% | |====================================== | 60% | |=================================================== | 80% | |================================================================| 100% #> #> #> ====== Retrieved Information ====== #> ----------------------------------- #> Retrieved URL: #> https://data.ly.gov.tw/odw/ID7Action.action?term=10&sessionPeriod=&sessionTimes=&meetingTimes=&legislatorName=&speakType=&fileType=json #> Term: 10 #> Total Records: 555 #> Unique Legislators: 30 #> ==================================="},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_speech_video.html","id":null,"dir":"Reference","previous_headings":"","what":"The Video Information of Meetings and Committees 院會及委員會之委員發言片段相關影片資訊 — get_speech_video","title":"The Video Information of Meetings and Committees 院會及委員會之委員發言片段相關影片資訊 — get_speech_video","text":"Retrieves video records information legislative meetings committee sessions, including speech segments, meeting details, video URLs. Data available JSON CSV formats 9th legislative term onwards.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_speech_video.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Video Information of Meetings and Committees 院會及委員會之委員發言片段相關影片資訊 — get_speech_video","text":"","code":"get_speech_video( term = NULL, session_period = NULL, start_date = NULL, end_date = NULL, verbose = TRUE, format = \"json\" )"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_speech_video.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Video Information of Meetings and Committees 院會及委員會之委員發言片段相關影片資訊 — get_speech_video","text":"term numeric NULL. Legislative term number (e.g., 10). Data available 9th term onwards. Default NULL. session_period numeric NULL. Session period number (1-8). Default NULL. start_date character. Must formatted ROC calendar forward slashes year, month day, e.g., \"110/10/01\". end_date character. Must formatted ROC calendar forward slashes year, month day, e.g., \"110/10/30\". verbose logical. Whether display download progress detailed information. Default TRUE. format character. Data format retrieve, either \"json\" \"csv\". Default \"json\".","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_speech_video.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"The Video Information of Meetings and Committees 院會及委員會之委員發言片段相關影片資訊 — get_speech_video","text":"list containing: title speech video records query_time query timestamp retrieved_number number videos retrieved term queried legislative term session_period queried session period start_date start date ROC calendar end_date end date ROC calendar format data format (\"json\" \"csv\") url retrieved API URL variable_names variables tibble dataframe manual_info official manual URL data tibble dataframe containing: term 屆別 sessionPeriod 會期 meetingDate 會議日期(西元年) meetingTime 會議時間 meetingTypeName 主辦單位 meetingName 會議名稱 meetingContent 會議事由 legislatorName 委員姓名 areaName 選區名稱 speechStartTime 委員發言時間起 speechEndTime 委員發言時間迄 speechRecordUrl 發言紀錄網址 videoLength 影片長度 videoUrl 影片網址 selectTerm 屆別期別篩選條件","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_speech_video.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"The Video Information of Meetings and Committees 院會及委員會之委員發言片段相關影片資訊 — get_speech_video","text":"Video Information Legislative Meetings Committees function retrieves video information legislative meetings committee sessions. Data available 9th legislative term onwards (2016/民國105年). date parameters must use ROC calendar format forward slashes. Data can retrieved either JSON CSV format.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_speech_video.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"The Video Information of Meetings and Committees 院會及委員會之委員發言片段相關影片資訊 — get_speech_video","text":"details data variables API information, use get_variable_info(\"get_speech_video\") visit: https://data.ly.gov.tw/getds.action?id=148 會議類:提供立法院院會及委員會之委員發言片段相關影片資訊 (自第9屆第1會期起)。","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_speech_video.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Video Information of Meetings and Committees 院會及委員會之委員發言片段相關影片資訊 — get_speech_video","text":"","code":"if (FALSE) { # \\dontrun{ # Query video information in JSON format videos <- get_speech_video( term = 10, session_period = 4, start_date = \"110/10/01\", end_date = \"110/10/30\" ) # Query in CSV format videos_csv <- get_speech_video( term = 10, session_period = 4, start_date = \"110/10/01\", end_date = \"110/10/30\", format = \"csv\" ) # Query without specifying term/session videos <- get_speech_video( start_date = \"110/10/01\", end_date = \"110/10/30\" ) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_tly_stat.html","id":null,"dir":"Reference","previous_headings":"","what":"Fetch and Parse Legislative Yuan Statistics — get_tly_stat","title":"Fetch and Parse Legislative Yuan Statistics — get_tly_stat","text":"Retrieves statistical data Legislative Yuan API parses structured format. function fetches data bills, legislators, gazettes, meetings, IVOD records.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_tly_stat.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Fetch and Parse Legislative Yuan Statistics — get_tly_stat","text":"","code":"get_tly_stat()"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_tly_stat.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Fetch and Parse Legislative Yuan Statistics — get_tly_stat","text":"list containing five main components: bill - Statistics legislative bills, including total count term-wise breakdown legislator - Information legislators across different terms gazette - Statistics legislative gazettes agendas meet - Meeting statistics including counts dates ivod - Video recording statistics date ranges","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_tly_stat.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Fetch and Parse Legislative Yuan Statistics — get_tly_stat","text":"","code":"if (FALSE) { # \\dontrun{ stats <- get_tly_stat() # View total number of bills print(stats$bill$total) # View legislator counts by term print(stats$legislator$terms) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_variable_info.html","id":null,"dir":"Reference","previous_headings":"","what":"Check Each Function's Manual — get_variable_info","title":"Check Each Function's Manual — get_variable_info","text":"get_variable_info generate API's endpoint manual returned website Taiwan Legislative Yuan. avalaible options : get_bills, get_bills_2, get_meetings, get_caucus_meetings, get_speech_video , get_public_debates, get_parlquestions, get_executive_response get_committee_record.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_variable_info.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Check Each Function's Manual — get_variable_info","text":"","code":"get_variable_info(param_)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_variable_info.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Check Each Function's Manual — get_variable_info","text":"param_ characters. Must one options : get_bills get_bills: records bills, see https://data.ly.gov.tw/getds.action?id=6 get_bills_2 records legislators government proposals, see https://data.ly.gov.tw/getds.action?id=6 get_meetings spoken meeting records, see https://www.ly.gov.tw/Pages/List.aspx?nodeid=154 get_caucus_meetings meeting records cross-caucus session, see https://data.ly.gov.tw/getds.action?id=8 get_speech_video full video information meetings committees, see https://data.ly.gov.tw/getds.action?id=148 get_public_debates records national public debates, see https://data.ly.gov.tw/getds.action?id=7 get_parlquestions records parliamentary questions, see https://data.ly.gov.tw/getds.action?id=6 get_executive_response records questions answered executives, see https://data.ly.gov.tw/getds.action?id=2","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_variable_info.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Check Each Function's Manual — get_variable_info","text":"list page_info information end point reference_url url page","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_variable_info.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Check Each Function's Manual — get_variable_info","text":"get_variable_info produces list, contains page_info reference_url.","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_variable_info.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Check Each Function's Manual — get_variable_info","text":"David Liao (davidycliao@gmail.com)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/get_variable_info.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Check Each Function's Manual — get_variable_info","text":"","code":"if (FALSE) { # \\dontrun{ get_variable_info(\"get_bills\") } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/legis_keywords.html","id":null,"dir":"Reference","previous_headings":"","what":"Legislative Keywords for Text Analysis — legis_keywords","title":"Legislative Keywords for Text Analysis — legis_keywords","text":"dataset containing common keywords used Taiwan's legislative text analysis. keywords carefully selected cover major policy domains including disaster management, social welfare, housing policy, regional development.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/legis_keywords.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Legislative Keywords for Text Analysis — legis_keywords","text":"","code":"legis_keywords data(\"legis_keywords\")"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/legis_keywords.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Legislative Keywords for Text Analysis — legis_keywords","text":"character vector containing 10 keywords: 災害管理 八二三砲戰, 九二一大地震, 地震 社會福利 托育, 日間托老, 長照 住宅政策 眷村改建, 遷村 區域發展 偏鄉 金融政策 金融卡","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/legis_keywords.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Legislative Keywords for Text Analysis — legis_keywords","text":"Keywords compiled based common policy discussions Taiwan Legislative Yuan","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/legis_keywords.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Legislative Keywords for Text Analysis — legis_keywords","text":"Taiwan Legislative Keywords Text Analysis keywords can used quanteda text analysis packages analyze legislative documents. particularly useful : Creating document-term matrices Analyzing policy focus legislative texts Tracking policy discussions time Identifying key themes parliamentary questions texts","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/legis_keywords.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"Legislative Keywords for Text Analysis — legis_keywords","text":"Legislative Yuan, Taiwan. https://www.ly.gov.tw/","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/legis_keywords.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Legislative Keywords for Text Analysis — legis_keywords","text":"","code":"# Load the keywords data(legis_keywords)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/review_session_info.html","id":null,"dir":"Reference","previous_headings":"","what":"Check Session Periods in Each Year (Minguo Calendar) — review_session_info","title":"Check Session Periods in Each Year (Minguo Calendar) — review_session_info","text":"Check Session Periods Year (Minguo Calendar)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/review_session_info.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Check Session Periods in Each Year (Minguo Calendar) — review_session_info","text":"","code":"review_session_info(term)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/review_session_info.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Check Session Periods in Each Year (Minguo Calendar) — review_session_info","text":"term numeric","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/review_session_info.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Check Session Periods in Each Year (Minguo Calendar) — review_session_info","text":"dataframe","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/review_session_info.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Check Session Periods in Each Year (Minguo Calendar) — review_session_info","text":"review_session_info produces dataframe, displaying session period year formatted Minguo (Taiwan) calendar.","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/review_session_info.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Check Session Periods in Each Year (Minguo Calendar) — review_session_info","text":"David Liao (davidycliao@gmail.com)","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/review_session_info.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Check Session Periods in Each Year (Minguo Calendar) — review_session_info","text":"","code":"if (FALSE) { # \\dontrun{ review_session_info(7) } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_bill.html","id":null,"dir":"Reference","previous_headings":"","what":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar II — transformed_date_bill","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar II — transformed_date_bill","text":"transformed_date_meeting() transforms Minguo (Taiwan) Calendar .D. format POSIXct get_bill(), e.g. \"1050531\" \"2016-05-31\".","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_bill.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar II — transformed_date_bill","text":"","code":"transformed_date_bill(roc_date)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_bill.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar II — transformed_date_bill","text":"roc_date date format Taiwan ROC calendar (e.g., \"1050531\") character vector","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_bill.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar II — transformed_date_bill","text":"date POSIXct","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_bill.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar II — transformed_date_bill","text":"","code":"if (FALSE) { # \\dontrun{ transformed_date_bill(\"1050531\") } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_meeting.html","id":null,"dir":"Reference","previous_headings":"","what":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar I — transformed_date_meeting","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar I — transformed_date_meeting","text":"transformed_date_meeting() transforms Minguo (Taiwan) Calendar .D. calendar POSIXct get_meetings(), get_caucus_meetings(), get_speech_video(),","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_meeting.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar I — transformed_date_meeting","text":"","code":"transformed_date_meeting(roc_date)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_meeting.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar I — transformed_date_meeting","text":"roc_date Date format Minguo (Taiwan) calendar (e.g., \"105/05/31\") string vector","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_meeting.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar I — transformed_date_meeting","text":"date POSIXct","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_meeting.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar I — transformed_date_meeting","text":"check_date transforms ROC date date POSIXct, e.g. \"105/05/31\" \"2016-05-31\".","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/transformed_date_meeting.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Transforming Minguo (Taiwan) Calendar to A.D. Calendar I — transformed_date_meeting","text":"","code":"if (FALSE) { # \\dontrun{ transformed_date_meeting(\"105/05/31\") } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/validate_dates_format.html","id":null,"dir":"Reference","previous_headings":"","what":"Validate Date Formats — validate_dates_format","title":"Validate Date Formats — validate_dates_format","text":"function checks provided start end dates correct numeric format.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/validate_dates_format.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Validate Date Formats — validate_dates_format","text":"","code":"validate_dates_format(start_date, end_date)"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/validate_dates_format.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Validate Date Formats — validate_dates_format","text":"start_date string representing start date. Expected format numeric, e.g., \"1090101\". end_date string representing end date. Expected format numeric, e.g., \"1090101\".","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/validate_dates_format.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Validate Date Formats — validate_dates_format","text":"NULL. dates expected format, error thrown.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/validate_dates_format.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Validate Date Formats — validate_dates_format","text":"","code":"# This should throw an error: if (FALSE) { # \\dontrun{ validate_dates_format(\"10901\", \"1100101\") } # }"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/website_availability.html","id":null,"dir":"Reference","previous_headings":"","what":"Check for the Website Availability I — website_availability","title":"Check for the Website Availability I — website_availability","text":"function checks availability specified website trying read first line site's content.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/website_availability.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Check for the Website Availability I — website_availability","text":"","code":"website_availability(site = \"https://data.ly.gov.tw/index.action\")"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/website_availability.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Check for the Website Availability I — website_availability","text":"site website URL check. Default \"https://data.ly.gov.tw/index.action\".","code":""},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/reference/website_availability2.html","id":null,"dir":"Reference","previous_headings":"","what":"Check for the Website Availability II — website_availability2","title":"Check for the Website Availability II — website_availability2","text":"function checks availability specified website trying read first line site's content.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/reference/website_availability2.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Check for the Website Availability II — website_availability2","text":"","code":"website_availability2( site = \"https://npl.ly.gov.tw/do/www/appDate?status=0&expire=02&startYear=0\" )"},{"path":"https://davidycliao.github.io/legisTaiwan/reference/website_availability2.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Check for the Website Availability II — website_availability2","text":"site website URL check. Default \"https://npl.ly.gov.tw//www/appDate?status=0&expire=02&startYear=0\".","code":""},{"path":[]},{"path":[]},{"path":"https://davidycliao.github.io/legisTaiwan/news/index.html","id":"major-changes-0-2-1","dir":"Changelog","previous_headings":"","what":"Major Changes","title":"legisTaiwan 0.2.1","text":"Updated API endpoint ly.govapi.tw v2.ly.govapi.tw Maintained backward compatibility legacy API functions Enhanced documentation better clarity","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/news/index.html","id":"api-migration-notice-0-2-1","dir":"Changelog","previous_headings":"","what":"API Migration Notice","title":"legisTaiwan 0.2.1","text":"Legislative Yuan API transitioning https://ly.govapi.tw https://v2.ly.govapi.tw. functions using legacy API continue work now, recommend starting migrate code use new API endpoint.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/news/index.html","id":"legistaiwan-017","dir":"Changelog","previous_headings":"","what":"legisTaiwan 0.1.7","title":"legisTaiwan 0.1.7","text":"Enhanced user experience implementing progress bars time-intensive operations. Progress bars now displayed verbose = TRUE. Performed comprehensive spelling typographical corrections throughout package documentation function names.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/news/index.html","id":"legistaiwan-016","dir":"Changelog","previous_headings":"","what":"legisTaiwan 0.1.6","title":"legisTaiwan 0.1.6","text":"Corrected spelling errors standardized terminology across function documentation.","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/news/index.html","id":"legistaiwan-014-development-version","dir":"Changelog","previous_headings":"","what":"legisTaiwan 0.1.4 (development version)","title":"legisTaiwan 0.1.4 (development version)","text":"re-documentation inserting handlers. formatting website documentation: get_executive_response(), get_bills_2(), get_debates() get_speech_video(). get_bills() get_meeting()’s starting date clear. get_public_debates() manual information inconsistent actual data. ~~Two API endpoints,質詢事項(本院委員質詢部分) 國是論壇, temporarily . Therefore, data retrieved get_parlquestions() get_public_debates() may correct. [UPDATE: Feb 5 2023]~~ get_public_debates() . [UPDATE: Feb 7 2023]","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/news/index.html","id":"legistaiwan-013-development-version","dir":"Changelog","previous_headings":"","what":"legisTaiwan 0.1.3 (development version)","title":"legisTaiwan 0.1.3 (development version)","text":"Fix typo function name: get_variabel_infos() get_variable_info(). get_committee_record() added access records reviewed items committees 提供委員會會議審查之議案項目. Add funder copyright holder NAMESPACE: 國科會 立法院 Re-documentation inserting handlers","code":""},{"path":"https://davidycliao.github.io/legisTaiwan/news/index.html","id":"legistaiwan-011-development-version","dir":"Changelog","previous_headings":"","what":"legisTaiwan 0.1.1 (development version)","title":"legisTaiwan 0.1.1 (development version)","text":"get_executive_response(), get_bills_2(), get_debates() get_speech_video() added. package created get_meetings(), get_bills(), get_legislators(), get_parlquestions()","code":""}] diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 4e2b57ce..2a3657f0 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -24,6 +24,7 @@ https://davidycliao.github.io/legisTaiwan/reference/create_interactive_plot.html https://davidycliao.github.io/legisTaiwan/reference/dot-clean_names.html https://davidycliao.github.io/legisTaiwan/reference/dot-onAttach.html +https://davidycliao.github.io/legisTaiwan/reference/dot-onLoad.html https://davidycliao.github.io/legisTaiwan/reference/generate_report.html https://davidycliao.github.io/legisTaiwan/reference/get_bills.html https://davidycliao.github.io/legisTaiwan/reference/get_bills_2.html diff --git a/man/dot-onAttach.Rd b/man/dot-onAttach.Rd index c4760ce4..a2301554 100644 --- a/man/dot-onAttach.Rd +++ b/man/dot-onAttach.Rd @@ -2,11 +2,11 @@ % Please edit documentation in R/zzz.R \name{.onAttach} \alias{.onAttach} -\title{On package attach, display a startup message} +\title{Package startup message} \usage{ .onAttach(...) } \description{ -On package attach, display a startup message +Package startup message } \keyword{internal} diff --git a/man/dot-onLoad.Rd b/man/dot-onLoad.Rd deleted file mode 100644 index 0ec576cc..00000000 --- a/man/dot-onLoad.Rd +++ /dev/null @@ -1,12 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/zzz.R -\name{.onLoad} -\alias{.onLoad} -\title{Register S3 methods and set up package} -\usage{ -.onLoad(libname, pkgname) -} -\description{ -Register S3 methods and set up package -} -\keyword{internal} diff --git a/tests/testthat/test_get_ly_committees_type.R b/tests/testthat/test_get_ly_committees_type.R new file mode 100644 index 00000000..940b0e55 --- /dev/null +++ b/tests/testthat/test_get_ly_committees_type.R @@ -0,0 +1,38 @@ +test_that("get_ly_committees_type basic functionality", { + # 測試基本呼叫 + result <- get_ly_committees_type(show_progress = FALSE) + + # 檢查回傳值結構 + expect_type(result, "list") + + # 檢查資料框結構 + expect_s3_class(result$committees, "data.frame") + expect_named(result$committees, c("代號", "名稱", "職掌", "類別")) +}) + +test_that("get_ly_committees_type handles parameters correctly", { + # 測試特定參數 + result <- get_ly_committees_type( + page = 1, + per_page = 10, + type = "常設委員會", + show_progress = FALSE + ) + + # 檢查分頁設定 + expect_equal(result$metadata$current_page, 1) + expect_equal(result$metadata$per_page, 100) + + # 檢查委員會類別 + if(nrow(result$committees) > 0) { + expect_equal(unique(result$committees$類別), "常設委員會") + } +}) + +test_that("get_ly_committees_type error handling", { + # 測試錯誤參數 + expect_error( + get_ly_committees_type(page = "invalid", show_progress = FALSE), + "API request failed with status code: 500" + ) +}) diff --git a/tests/testthat/test_get_ly_legislator_detail.R b/tests/testthat/test_get_ly_legislator_detail.R new file mode 100644 index 00000000..12df3b40 --- /dev/null +++ b/tests/testthat/test_get_ly_legislator_detail.R @@ -0,0 +1,63 @@ +test_that("parameter validation works", { + # 測試缺少必要參數 + expect_error( + get_ly_legislator_detail(name = "王金平", show_progress = FALSE), + "term parameter is required" + ) + + expect_error( + get_ly_legislator_detail(term = 9, show_progress = FALSE), + "name parameter is required" + ) + + # 測試參數型別錯誤 + expect_error( + get_ly_legislator_detail(term = "9", name = "王金平", show_progress = FALSE), + "term must be numeric" + ) + + expect_error( + get_ly_legislator_detail(term = 9, name = 123, show_progress = FALSE), + "name must be character" + ) +}) + +test_that("basic functionality works", { + # 測試基本功能 + result <- get_ly_legislator_detail( + term = 9, + name = "王金平", + show_progress = FALSE + ) + + # 檢查回傳值結構 + expect_type(result, "list") + + # 檢查必要欄位 + expected_fields <- c( + "term", "name", "party", + "areaName", "partyGroup" + ) + + for(field in expected_fields) { + expect_true( + field %in% names(result), + info = sprintf("Field '%s' should exist in result", field) + ) + } + + # 檢查資料內容 + expect_equal(result$term, 9) + expect_equal(result$name, "王金平") +}) + +test_that("invalid term/name combination returns error", { + expect_error( + get_ly_legislator_detail( + term = 999, + name = "不存在的立委", + show_progress = FALSE + ), + "API request failed with status code: " + ) +})