Closed mtorressahli closed 5 years ago
I followed your advice. I think now the issue is solved.
Regarding: "Offtopic: I created a couple of helping functions to allow me homogeneise titles within the Scopus database more easily. Not sure where I could share it with others in case they are helpful." Please, send me your function. I could evaluate the possibility to integrate them in bibliometrix.
Hey @massimoaria, I second the congratulations for this amazing package! I got this same error today (I just downloaded this package and have been playing around):
Error in grep(y, M$CR[M$PY >= Year]) :
invalid regular expression '\(2014\) HOW ACCURATE ARE WIKIPEDIA ARTICLES IN HEALTH, NUTRITION, AND MEDICINE? [LES ARTICLES DE WIKIPDIA DANS LES DOMAINES DE LA SANT, DE LA NUTRITION ET DE LA MDECINE SONT-ILS EXACTS?]', reason 'Invalid character range'
I read @mtorressahli's post and replaced all squared brackets in the title with the following function:
df$TI <- chartr("[]", "()", df$TI)
That solved my problem as well, and I could run:
citados_local <- localCitations(df, sep = ";")
Without problems.
Hope this is useful :)
Hey @massimoaria, I second the congratulations for this amazing package! I got this same error today (I just downloaded this package and have been playing around):
Error in grep(y, M$CR[M$PY >= Year]) : invalid regular expression '\(2014\) HOW ACCURATE ARE WIKIPEDIA ARTICLES IN HEALTH, NUTRITION, AND MEDICINE? [LES ARTICLES DE WIKIPDIA DANS LES DOMAINES DE LA SANT, DE LA NUTRITION ET DE LA MDECINE SONT-ILS EXACTS?]', reason 'Invalid character range'
I read @mtorressahli's post and replaced all squared brackets in the title with the following function:
df$TI <- chartr("[]", "()", df$TI)
That solved my problem as well, and I could run:
citados_local <- localCitations(df, sep = ";")
Without problems.
Hope this is useful :)
Thanks
Hello
First of all, many thanks for this package. It is awesome.
Using an Scopus database I've been getting this error when using either
histNetwork
orlocalCitations
:I think it may be due to
grep
inside thehistNetwork
not playing well with a particular pattern in title fields. Some non-English articles have the title in a second language between "[ ]" as in "PREJUDICE AGAINST FAT PEOPLE [PREJUICIO CONTRA PERSONAS OBESAS]". The brackets are interpreted as special characters.I worked it around replacing all "[...]" for "(...)" in titles within the output of
readFiles
before usingconvert2df
, but it surely deserved to be noticed in case it could be avoided in the package itself.Not sure if the better solution would be the one I used, or maybe escaping those brackets before
pos = grep(x, M$CR[M$PY >= Year])
withinhistNetwork
, but it may be useful to implement either of those.Best Manuel
Offtopic: I created a couple of helping functions to allow me homogeneise titles within the Scopus database more easily. Not sure where I could share it with others in case they are helpful.