satijalab / seurat-data

Dataset distribution for Seurat
GNU General Public License v3.0
129 stars 48 forks source link

Better handling of no internet connection #2

Closed andrewwbutler closed 4 years ago

andrewwbutler commented 5 years ago

Functions that require an internet connection (e.g. AvailableData) should fail with a better message. Functions that shouldn't require the internet should still work (e.g. InstalledData). Currently they both give

> AvailableData()
Warning: unable to access index for repository http://satijalab04.nygenome.org/src/contrib:
  cannot open URL 'http://satijalab04.nygenome.org/src/contrib/PACKAGES'
 Error in pkg[["Package"]] : subscript out of bounds 

> InstalledData()
Warning: unable to access index for repository http://satijalab04.nygenome.org/src/contrib:
  cannot open URL 'http://satijalab04.nygenome.org/src/contrib/PACKAGES'
 Error in pkg[["Package"]] : subscript out of bounds