Displaying 1 result from an estimated 1 matches for "example_db".
Did you mean:
example_
2011 Mar 11
0
is gzcon w/ urls not implemented or used differently on linux?
....gov/pubchem/.fetch/8897497837079742771.sdf.gz"))
sdf <- readLines(z)
close(z)
On linux it produces the following error:
Error in readLines(z) : cannot open the connection
The non-gzipped version works flawlessly on linux:
con <- url("http://chemmine.ucr.edu/ChemMineToolsV2/static/example_db.sdf")
sdf <- readLines(con)
close(con)
As an analog, gzcon does work with non-url files on linux:
system("wget ftp://ftp-private.ncbi.nlm.nih.gov/pubchem/.fetch/8897497837079742771.sdf.gz")
z <- gzcon(file("8897497837079742771.sdf.gz", "rb"))
sdf <- read...