Greetings, Is there any way to programmatically detect whether a piece of code is being run within the initial (Startup) sourcing of the site profile?
For example, say I have a site profile, "/path/to/Rprofile.site". Is there any function "my_func" which would return different values for these two instances: Rscript --no-site-profile --no-init-profile -e "sys.source('/path/to/Rprofile.site', envir = .BaseNamespaceEnv); my_func()" versus: export R_PROFILE=/path/to/Rprofile.site Rscript --no-init-profile -e "my_func()" Regards, Ben
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.