I am building a sentiment miner for Twitter. The program was working fine before I upgraded R to R 3.2.2. The error is as follows
Error in stri_replace_all_regex(string, pattern, replacement, vectorize_all = vec, :
Syntax error in regexp pattern. (U_REGEX_RULE_SYNTAX)
Error in stri_replace_all_regex(string, pattern, replacement, vectorize_all = vec, :
Syntax error in regexp pattern. (U_REGEX_RULE_SYNTAX)
Error in stri_replace_all_regex(string, pattern, replacement, vectorize_all = vec, :
Syntax error in regexp pattern. (U_REGEX_RULE_SYNTAX)
The code associated with the error is this (I'm assuming)
tweets <- str_replace_all(tweets," "," ")
# Get rid of URLs
tweets <- str_replace_all(tweets, "http://t.co/[a-z,A-Z,0-9]*{8}","")
# Take out retweet header, there is only one
tweets <- str_replace(tweets,"RT @[a-z,A-Z]*: ","")
# Get rid of hashtags
tweets <- str_replace_all(tweets,"#[a-z,A-Z]*","")
# Get rid of references to other screennames