Skip to content
This repository has been archived by the owner on Jul 23, 2023. It is now read-only.

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

Open
choonghyunryu opened this issue Aug 2, 2022 · 0 comments
Open

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

choonghyunryu opened this issue Aug 2, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@choonghyunryu
Copy link
Contributor

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)에서는 에러가 발생하지 않음

  • 정규표현식으로서 괄호가 Pair로 나타나면 에러가 발생하지 않지만, 단독으로 나타나면 에러가 발생함 -> 수정 필요
  • Exception Handling을 통해서 에러가 나더라도 앱이 종료되지 않도록 로직 수정 필요
@choonghyunryu choonghyunryu added the bug Something isn't working label Aug 2, 2022
@choonghyunryu choonghyunryu self-assigned this Aug 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant