getPages() in SNPediaR returning a lexical error
1
0
Entering edit mode
@johnzaharick-14829
Last seen 6.2 years ago

Hi,

I've previously used the SNPediaR package without problem.  However, now when I try to use the getPages() function, I receive this error message:

> library (SNPediaR)
> getPages (titles = "Rs53576")
Error: lexical error: invalid char in json text.
                                       <!DOCTYPE HTML PUBLIC "-//IETF/
                     (right here) ------^
> traceback()
6: .Call(R_parse, txt, bigint_as_char)
5: parse_string(txt, bigint_as_char)
4: parseJSON(txt, bigint_as_char)
3: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
       simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
2: fromJSON(datos)
1: getPages(titles = "Rs53576")

> sessionInfo()
R version 3.4.3 (2017-11-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] SNPediaR_1.4.0       BiocInstaller_1.28.0

loaded via a namespace (and not attached):
[1] compiler_3.4.3  tools_3.4.3     RCurl_1.95-4.10 jsonlite_1.5    bitops_1.0-6   

I followed the package documentation here: https://bioconductor.org/packages/3.6/bioc/vignettes/SNPediaR/inst/doc/SNPediaR.html  This function worked a few months ago, but not now.

Thank you for your help.

software error bioconductor R snpediar getpages • 721 views
ADD COMMENT
0
Entering edit mode
@johnzaharick-14829
Last seen 6.2 years ago

I emailed the creator of the package and he said the issue stemmed from SNPedia updating to https from http.  He has updated the github code for SNPediaR.  It can be used in R with:

install.packages("devtools")
library (devtools)
install_github ("genometra/SNPediaR/pkg")

ADD COMMENT

Login before adding your answer.

Traffic: 725 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6