[R] Command Prompt Question

Duncan Murdoch murdoch at stats.uwo.ca
Wed Sep 17 19:51:47 CEST 2008


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.



More information about the R-help mailing list