Closed achafetz closed 2 years ago
This seems the location of the errror.
Adding the escape to resolve.
@baboyma, ln126 should not have a negation sign, correct? you want to remove paging for the url if it exists. which begs the question, is the if statement necessary? the str_remove()
statement can be run regardless and will have no sign effects if paging already doesn't exist (and should be pretty fast)
I think the correct code should be
if (stringr::str_detect(url, "\\?paging"))
url <- stringr::str_remove(url, "\\?paging=(true|false)")
And will implement without the if statement
url <- stringr::str_remove(url, "\\?paging=(true|false)")
Running
datim_dim_items()
with any dimension, the user receives the following error:Solution: I think the
?
just needs to be escaped\\?
FYI @baboyma