Hi All , I am trying to compile some c codes with R CMD SHLIB on Cygwin. But I got the following error WARNING: ignoring environment value of R_HOME ERROR: R_HOME ('/home/Owner/r/R-2.0.1') not found I have set the environment variable R_HOME pointing to the current R installation, but the R command still looks in the old directory, Could someone help me out here ? Thanks a lot .