[BioC] How to access web link

Seth Falcon sfalcon at fhcrc.org
Mon May 7 19:16:21 CEST 2007

"Weiyin Zhou" <weiyin.zhou at exonhit-usa.com> writes:
> I try to use R to access this link :
> http://genome.ucsc.edu/cgi-bin/hgTracks?db=hg17&hgt.customText=http://po
> rtal.splicearray.com:80/PortalGeneDetails/BrowserFiles/1.txt 
> My code is :
> source("http://genome.ucsc.edu/cgi-bin/hgTracks?db=hg17&hgt.customText=h
> ttp://portal.splicearray.com:80/PortalGeneDetails/BrowserFiles/1.txt");

What does "access" mean in this case?  Do you expect that page to
contain valid R code?  That is what the source function is intended
for.  The error message you received indicates that the web page does
not contain valid R code.

Perhaps you want url()?  readLines?

+ seth

Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center

More information about the Bioconductor mailing list