bit2r / bitTA

기능이 bitNLP로 이관되었습니다. bitNLP를 사용하시기 바랍니다.
https://r2bit.com/bitNLP/
GNU General Public License v2.0
10 stars 0 forks source link

explore_docs() 정규표현식 에러 사례 #12

Open choonghyunryu opened 2 years ago

choonghyunryu commented 2 years ago

explore_docs()로 구동하는 Docs Explorer검색/대체 탭 메뉴에서 검색을 위한 특정 정규표현식에서 다음과 같은 에러가 발생하였음

  1. 검색 키워드가 확인해주세요1)에서 에러 발생
Warning in gsub(sprintf("(%s)", input$pattern), "<font color=\"#FF0000\"><b>\\1</b></font>\\2",  :
  PCRE pattern compilation error
    'unmatched closing parenthesis'
    at ')'
Warning: Error in gsub: invalid regular expression '(꼭 확인해주세요1))'
  2: runApp
  1: explore_docs [/Users/choonghyunryu/Documents/01_Personal/00_bitr/RDAM/05_Libraries/bitTA/R/shiny.R#20]
  1. 검색 키워드가 (확인해주세요1에서 에러 발생
Warning: Error in grep: invalid regular expression, reason 'Missing ')''
  2: runApp
  1: explore_docs [/Users/choonghyunryu/Documents/01_Personal/00_bitr/RDAM/05_Libraries/bitTA/R/shiny.R#20]
  1. 검색 키워드가 (확인해주세요1)에서는 에러가 발생하지 않음