My terminal transcript is below, followed by my (years old) .Rprofile file. Note that I do use ESS, but I get the same compilation error when using the R console GUI window.
Thanks again for your continued investigation.
Leaving R for OS X.
## .Rprofile file for Mac OS X
## Commented lines begin with # Uncomment by removing #
options(papersize="letter")
## options(editor="notepad")
## options(pager="internal")
## Width of R printouts in characters:
options(width=65)
##Define a function for R to run "first," automatically.
.First = function() {
cat("Welcome to R for OS X!\n\n")
wd = getwd()
cat("Location for user startup files is \n WORKING DIRECTORY = ",
wd, "\n\n", sep="")
userlib = Sys.getenv("R_LIBS_USER")
cat("Location for user-downloaded add-on packages is \n LIBRARY = ",
userlib, "\n\n", sep="")
cat("Packages loaded on startup (in addition to base) = \n ",
getOption("defaultPackages"), "\n\n")
}
##Define function for R to run "last," automatically.
.Last = function() cat("Leaving R for OS X.\n\n")
## Compiled HTML help. Set to FALSE else risk (more) problems with
## the help system, especially with regard to using help in add--on
## packages in user libraries when users do not have sufficient
## file permissions.
#options(chmhelp=FALSE)
## HTML help. Set to TRUE else risk (more) problems with
## the help system, especially with regard to using help in add--on
## packages located in user libraries.
##options(htmlhelp=TRUE)
## .Library.site <- file.path(Rchartr("\\", "/", R.home()), "site-library")
## Set a CRAN mirror (add--on package repository) and have R load
## package(s) on startup
local({
r <- getOption("repos"); defPack<- getOption("defaultPackages")
addPack<- c(NULL) ## add more package names as desired
options(repos=r, defaultPackages=c(defPack,addPack))
})