legisTaiwan 0.2.2
Major Changes
CRAN submission readiness: license, encoding, and dead-code fixes
-
License corrected to MIT.
DESCRIPTIONincorrectly declaredGPL-3 + file LICENSE, but theLICENSEfile used the MIT license stub format (flagged by CRAN reviewer Uwe Ligges). Switched toMIT + file LICENSEand addedLICENSE.mdwith the full license text. -
Removed all non-ASCII characters from package documentation and code, resolving a CRAN
WARNINGand a PDF-manual build failure. Chinese characters inAuthors@Rand roxygen documentation broke LaTeX rendering of the PDF reference manual entirely (no CJK font support in CRAN’s build environment); all documentation was translated to English. Remaining Chinese that is functionally required to match the Legislative Yuan API’s own column/category names, or to split Chinese-language legislator name lists, is now expressed as\uXXXXescapes — byte-for-byte identical at runtime, with no behavior change. -
bill_to_network(): new function to convert bill proposer/cosigner data into anigraphnetwork object (centrality measures, community detection). Added the missingigraphdependency toDESCRIPTIONand fixed several@importFromomissions (V,V<-,E,membership) that caused runtime errors; switched off the now-deprecatedigraph::get.edgelist(). -
Removed dead code:
review_session_info()andget_committee_record()each had an orphaned, unused duplicate function/doc block left over from a previous refactor; the duplicate documentation forreview_session_info()was silently merged into the Rd file ahead of its\dontrun{}guard, causing an unguarded live API call during everyR CMD check.get_legislators()’s docs also had a stray, unrelatedget_executive_response()example call sitting outside\dontrun{}. -
Tests are now CRAN-safe: all tests that call the live Legislative Yuan API are guarded with
skip_on_cran()and gracefully skip (instead of failing) when the API is unreachable or returns an unexpected error, so a transient outage of the upstream government website can no longer fail automated checks. - Misc.: fixed a broken
READMElink left as[the newer functions](), updated thecodecov.iobadge link toapp.codecov.io, removed a staleinst/README.Rmd/.mdduplicate from v0.1.6 that CRAN’s URL checker was scanning instead of the current README, and excluded generated/local files (.codefactor.yml,README.html) from the built package via.Rbuildignore.
Fix SSL connection issues in review_session_info function and example errors
- Use system curl command to bypass SSL/TLS certificate validation problems
- Improve regex handling of session data to fix “NAs introduced by coercion” warnings
- Ensure results are correctly sorted by session number
This fix resolves SSL connection issues with the Legislative Yuan website, making review_session_info and get_variable_info functions work reliably.
legisTaiwan 0.2.1
Major Changes
- Updated API endpoint from ly.govapi.tw to v2.ly.govapi.tw
- Maintained backward compatibility with legacy API functions
- Enhanced documentation for better clarity
API Migration Notice
The Legislative Yuan API is transitioning from https://ly.govapi.tw to https://v2.ly.govapi.tw. While functions using the legacy API will continue to work for now, we recommend starting to migrate your code to use the new API endpoint.
legisTaiwan 0.1.7
Enhanced user experience by implementing progress bars for time-intensive operations. Progress bars are now displayed when verbose = TRUE.
Performed comprehensive spelling and typographical corrections throughout the package documentation and function names.
legisTaiwan 0.1.6
Corrected spelling errors and standardized terminology across function documentation.
legisTaiwan 0.1.4 (development version)
re-documentation and inserting handlers.
formatting the website and documentation:
get_executive_response(),get_bills_2(),get_debates()andget_speech_video().get_bills()andget_meeting()’s starting date are not clear.get_public_debates()manual information is inconsistent with actual data.Two API endpoints,
質詢事項(本院委員質詢部分)andis temporarily down. Therefore, the data retrieved by國是論壇, areget_parlquestions()andmay not be correct. [UPDATE: Feb 5 2023]get_public_debates()get_public_debates()is on. [UPDATE: Feb 7 2023]
legisTaiwan 0.1.3 (development version)
Fix typo in function name:
get_variabel_infos()toget_variable_info().get_committee_record()is added to access to the records of reviewed items in the committees 提供委員會會議審查之議案項目.Add funder and copyright holder in NAMESPACE:
國科會and立法院Re-documentation and inserting handlers
legisTaiwan 0.1.1 (development version)
get_executive_response(),get_bills_2(),get_debates()andget_speech_video()are added.The package is created with
get_meetings(),get_bills(),get_legislators(),get_parlquestions()
