On the subject, the function with_qfun()
from {patentview}
package is returning errors. For example, consider the sample code in the help of with_qfun()
:
.query ← with_qfuns(
and(
gte(patent_date = “2007-01-01”),
text_phrase(patent_abstract = c(“computer program”)),
or(
eq(inventor_last_name = “ihaka”),
eq(inventor_first_name = “chris”)
)
)
)
res ← search_pv(
query = .query,
config = httr::timeout(40)
)
Running the above code throw the error: Error in names(x) %in% c("_not", "_and", "_or") || is.na(names(x)) : 'length = 3' in coercion to 'logical(1)'
I have searched online for information on how to resolve the problem but couldn’t find any. All helps shall be highly appreciated.
Thanks