Upgrade to Pro — share decks privately, control downloads, hide ads and more …

textlintr: Rユーザのためのtextlintによる校正

textlintr: Rユーザのためのtextlintによる校正

2022年10月22日開催のTokyo.R#102でのLT発表資料です。
GitHubリポジトリ: https://github.com/uribo/talk_221022_tokyor102

Uryu Shinya

October 22, 2022
Tweet

More Decks by Uryu Shinya

Other Decks in Programming

Transcript

  1. UFYUMJOUS3ϢʔβͷͨΊͷ UFYUMJOUʹΑΔߍਖ਼ ӝੜਅ໵ [email protected] IUUQTHJUIVCDPNVSJCP[email protected]@UPLZPS 5PLZP 

  2. ఏڙ(JU)VCεϙϯαʔͷօ༷ katsurakob siero5335 ito4303 niszet Nishina-NIES teram onagi takehikoihayashi ytknzw

    IUUQTHJUIVCDPNTQPOTPSTVSJCP
  3. ཁ໿ 3.BSLEPXOɺ2VBSUPͷϑΝΠϧܗࣜ SNE RNE ʹରԠ͠·͢ จষߍਖ਼πʔϧUFYUMJOUΛ3͔Βར༻͢ΔUFYUMJOUSύοέʔδΛ։ൃ͠·ͨ͠ OPEFKTɺOQNͷ஌͕ࣝ΄΅ෆཁͰUFYUMJOUຊମɺϧʔϧΛಋೖɺ࣮ߦՄೳͰ͢ จষͷޡΓɺվળՄೳͳՕॴΛ3ίϯιʔϧ΍34UVEJPͷϚʔΧʔύωϧ্Ͱ ֬ೝͰ͖·͢

  4. UFYUMJOU ίϚϯυϥΠϯΛ௨ͯ͠จষͷνΣοΫ ɺߍਖ਼Λߦ͏-JOUπʔϧ IUUQTUFYUMJOUHJUIVCJP

  5. UFYUMJOUͷಋೖɾ࢖͍ํ UFYUMJOUͷΠϯετʔϧ OPEFKT͕ඞཁͰ͢ʣ ϧʔϧͷ௥Ճ UFYUMJOUͷ࣮ߦ OQNJOTUBMMTBWFEFWUFYUMJOU OQNJOTUBMMTBWFEFWUFYUMJOUSVMFNBYUFO OQYUFYUMJOUJOJU OQYUFYUMJOU3&"%.&NE

  6. UFYUMJOU IUUQTHJUIVCDPNVSJCPUFYUMJOUS UFYUMJOUͷΠϯετʔϧɾ࣮ߦɺϧʔϧͷ௥ՃΛ3Ͱߦ͏ύοέʔδ install.packages("textlintr", repos = "https://uribo.r-universe.dev")

  7. UFYUMJOUSͷಋೖɾ࢖͍ํ

  8. UFYUMJOUSͷಋೖɾ࢖͍ํ UFYUMJOUͷΠϯετʔϧ OPEFKT͕ඞཁͰ͢ʣ ϧʔϧͷ௥Ճ UFYUMJOUͷ࣮ߦ textlint("quarto_startup.qmd") add_rules(rules = "textlint-rule-preset-ja-technical-writing") init_textlintr(rules

    = "textlint-rule-preset-ja-technical-writing") #> ద༻͞ΕΔϧʔϧͷ֬ೝ configure_lint_rules() #> ϧʔϧ͕ར༻Մೳ͔ͷ֬ೝ is_rule_exist("common-misspellings")
  9. 34UVEJPϚʔΧʔύωϧ΁ͷग़ྗ

  10. ӝੜਅ໵ [email protected] IUUQTHJUIVCDPNVSJCP[email protected]@UPLZPS &OKPZ