[R-sig-Geo] img file

Nick Matzke matzke at berkeley.edu
Thu Dec 23 02:54:36 CET 2010


Thanks!!  I did an update of raster before our previous 
emails, but apaprently it didn't take, even after:

 > rm(list=ls(all=TRUE))
 >
 > Close R&  save workspace (answer = yes)

...what it took was (at Mac Terminal):

==========
   486  cd 
/Library/Frameworks/R.framework/Versions/2.10/Resources/library/
   487  ls
   488  cd raster
   489  ls
   490  cd ..
   491  rm -R raster
   492  ls
==========

(On Mac OS X, R.app gui)

And then in R.app gui:

========
rm(list=ls(all=TRUE))

Restart (save workspace = yes)

Packages --> Package Installer --> Local Source Package --> 
Install --> raster_1.7-18.tgz (downloaded manually from CRAN)
========

So now the below works.  Thanks!  I'm cross-posting to 
r-sig-geo for posterity.

Cheers!
Nick


On 12/22/10 5:17 PM, Robert J. Hijmans wrote:
> Hi Nick,
>
> r<- brick('clip_1.img')
> plotRGB(r)
>
> works all right for me.
>
> raster_1.1.7
>
> is very old. Did you just update? You should get 1.7-18. See
> http://cran.r-project.org/web/packages/raster/index.html
>
> Perhaps you need to close and open R first? Or else try:
>
> rm(list=ls(all=TRUE))
>
> Close R&  save workspace (answer = yes)
>
> open R and install raster again.
>
> Robert
>
>

-- 
====================================================
Nicholas J. Matzke
Ph.D. Candidate, Graduate Student Researcher
Huelsenbeck Lab
Center for Theoretical Evolutionary Genomics
4151 VLSB (Valley Life Sciences Building)
Department of Integrative Biology
University of California, Berkeley

Graduate Student Instructor, IB200A
Principles of Phylogenetics: Systematics
http://ib.berkeley.edu/courses/ib200a/index.shtml

Lab websites:
http://ib.berkeley.edu/people/lab_detail.php?lab=54
http://fisher.berkeley.edu/cteg/hlab.html
Dept. personal page: 
http://ib.berkeley.edu/people/students/person_detail.php?person=370
Lab personal page: 
http://fisher.berkeley.edu/cteg/members/matzke.html
Lab phone: 510-643-6299
Dept. fax: 510-643-6264
Cell phone: 510-301-0179
Email: matzke at berkeley.edu

Mailing address:
Department of Integrative Biology
3060 VLSB #3140
Berkeley, CA 94720-3140

-----------------------------------------------------
"[W]hen people thought the earth was flat, they were wrong. 
When people thought the earth was spherical, they were 
wrong. But if you think that thinking the earth is spherical 
is just as wrong as thinking the earth is flat, then your 
view is wronger than both of them put together."

Isaac Asimov (1989). "The Relativity of Wrong." The 
Skeptical Inquirer, 14(1), 35-44. Fall 1989.
http://chem.tufts.edu/AnswersInScience/RelativityofWrong.htm



More information about the R-sig-Geo mailing list