Test first the file path with file.exists(), as the error says the file as specified is not there.
On Tuesday, January 1, 2013, Luciano La Sala wrote: > Hello, > > I have a raster image of human population counts. I saved the raster as > .ASCII file using GRASS and now I need to open the file in R to do some > analyses. I tried using the function readGDAL in the rgdal package as > follows: > > r <- readGDAL("~/myhome/thisdir/IhaveaFile.asc") > > However, I get the following error message: > > Error in .local(.Object, ...) : > `C:\Users\ . \ . \ . \File_name.asc' does not exist in the file system, > and is not recognised as a supported dataset name. > > I can't seem to get round this problem. Any help will be very welcome! > > Luciano La Sala > > > > [[alternative HTML version deleted]] > > _______________________________________________ > R-sig-Geo mailing list > R-sig-Geo@r-project.org <javascript:;> > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > -- Michael Sumner Hobart, Australia e-mail: mdsum...@gmail.com [[alternative HTML version deleted]] _______________________________________________ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo