Could someone please tell me how to stop the package/function name from being included before the command prompt? This started happening today after I made some changes to my Rprofile.site file and I don't know why. For example: if I enter example(AIC), instead of just getting the regular '>' before each output line, I get 'AIC>' instead. I only want the '>' and have searched everywhere and can't find an option to change this. Thanks David ----------------------- AIC> lm1 <- lm(Fertility ~ . , data = swiss) AIC> AIC(lm1) [1] 326.0716 AIC> stopifnot(all.equal(AIC(lm1), AIC+ AIC(logLik(lm1)))) AIC> ## a version of BIC or Schwarz' BC : AIC> AIC(lm1, k = log(nrow(swiss))) [1] 339.0226 [[alternative HTML version deleted]]
On 9/17/2008 1:42 PM, Farr, David wrote:> Could someone please tell me how to stop the package/function name from > being included before the command prompt? This started happening today > after I made some changes to my Rprofile.site file and I don't know why. > For example: if I enter example(AIC), instead of just getting the > regular '>' before each output line, I get 'AIC>' instead. I only want > the '>' and have searched everywhere and can't find an option to change > this.That's been normal behaviour for example() for a long time. See ?example to see how to disable it. Duncan Murdoch> > > Thanks > > David > > > > ----------------------- > > > > AIC> lm1 <- lm(Fertility ~ . , data = swiss) > > > > AIC> AIC(lm1) > > [1] 326.0716 > > > > AIC> stopifnot(all.equal(AIC(lm1), > > AIC+ AIC(logLik(lm1)))) > > > > AIC> ## a version of BIC or Schwarz' BC : > > AIC> AIC(lm1, k = log(nrow(swiss))) > > [1] 339.0226 > > > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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.
Farr, David wrote:> Could someone please tell me how to stop the package/function name from > being included before the command prompt? This started happening today > after I made some changes to my Rprofile.site file and I don't know why. > For example: if I enter example(AIC), instead of just getting the > regular '>' before each output line, I get 'AIC>' instead. I only want > the '>' and have searched everywhere and can't find an option to change > this. > > >prompt.prefix You'd think that ?example would find it soon enough... -- O__ ---- Peter Dalgaard ?ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
Reasonably Related Threads
- R-1.8.0 on Sparc Solaris 8, gcc3.2.1, bus error and core dump (PR#4485)
- Does AIC() applied to a nls() object use the correctnumber of estimated parameters?
- Check failed after compilation (PR#7159)
- use of step.gam (from package 'gam') and superassignment inside functions
- How to test for significance of random effects?