
1) install R
and extra libraries

some of these you have to download and install.

library(mva)
library(cluster)
library(ts)
library(spatial)
library(tcltk)
library(akima)
library(MASS)
library(mapproj)
library(maps)
library(modreg)
library(akima)
library(cluster)
library(mapproj)
library(maps)
library(MASS)
library(modreg)
library(mva)
library(netcdf)
library(pastecs)
library(pixmap)
library(Rwave)
library(scatterplot3d)
library(sn)
library(spatial)
library(splines)
library(stats)
library(tcltk)
library(tkrplot)
library(ts)
library(waveslim)
library(xgobi)



2) unpack R_stuff
   unpack Rc

3) 
cd Rc

###  (make the stuff)
### create shared libraries
### run these command here:


make all
make R


4) cd to R_stuff
   ###  start R
   ###  source the files

source("sourcer.R")
sourcelees(LeesR)


save.image()

5) cd to directory of interest

###########   the file .Rprofile is installed in the user's home directory
############################################################################
.First <- function() {
cat("\n   Welcome to J. Lees Rprofile!\n\n")

options(papersize="letter")

library(stats)

## this library may cause some error messages
library(cluster)
#  library(ts)
library(spatial)
##  library(tcltk)
library(akima)
library(MASS)

cat("\n Rprofile:  loading lib: Rwave\n\n")

library(Rwave)



#### # library(tkrplot) 
#### # General.R SUBS.R radiation.R net.R CAZI.R seis.R
#### # BUfilter.R sig.R stromb.R Clust.R iscale.R DUMPSEIS.R INSTR.R MAP.R interp.R

#### # source("/home/lees/Progs/R_stuff/General.R")
#### # source("/home/lees/Progs/R_stuff/SUBS.R")
#### # source("/home/lees/Progs/R_stuff/radiation.R")
#### # source("/home/lees/Progs/R_stuff/net.R")
#### # source("/home/lees/Progs/R_stuff/CAZI.R")
#### # source("/home/lees/Progs/R_stuff/seis.R")
#### # source("/home/lees/Progs/R_stuff/BUfilter.R")
#### # source("/home/lees/Progs/R_stuff/sig.R")
#### # source("/home/lees/Progs/R_stuff/stromb.R")
#### # source("/home/lees/Progs/R_stuff/Clust.R")
#### # source("/home/lees/Progs/R_stuff/iscale.R")
#####  source("/home/lees/Progs/R_stuff/DUMPSEIS.R")
#### # source("/home/lees/Progs/R_stuff/INSTR.R")
#### # source("/home/lees/Progs/R_stuff/MAP.R")
#### #  source("/home/lees/Progs/R_stuff/interp.R")

#### #  dyn.load("/home/lees/Progs/Rc/LLNfilt.so")

attach(NULL,2)

TFILE = file.exists("/home/lees/Progs/R_stuff/.RData")
if(TFILE==TRUE)
  {
    load("/home/lees/Progs/R_stuff/.RData",envir=pos.to.env(2))
  }

####   ps.options(paper="letter")

dyner()


}
############################################################################



	run .Rprofile
	rehash()


should be able to see all of lees' R-codes

############################################################################
