[R] Websocket example out of the box failing if running at startup from Rprofile.site

Uwe Ligges ligges at statistik.tu-dortmund.de
Wed Jun 20 18:59:57 CEST 2012



On 20.06.2012 02:05, Lipkind, Ilya (GE Healthcare) wrote:
> Hello,
>
>
>
> I run websockets 1.1.1  from R 2.15 without any problems.  I would like
> to deploy R script running automatically for all users when R is
> starting from Rprofile.site like follow:
>
>
>
> .First<- function()
>
> {
>
>                  source("C:\\R\\orig-websockets.R")
>
> }
>
>
>
> This script is from websockets package distribution.
>
>
>
> The error is follow:
>
>
>
> Error in .parse_header(x) : could not find function "tail"
>
>
>
> And trace:
>
>
>
> 6: .parse_header(x)
>
> 5: service(w) at orig-websockets.R#26
>
> 4: eval.with.vis(expr, envir, enclos)
>
> 3: eval.with.vis(ei, envir)
>
> 2: source("C:\\R\\orig-websockets.R")
>
> 1: .First()
>
>
>
> I would appreciate any suggestions on a subject.


tail is in the utils package that is not available at that time. You can 
try utils::tail to access it.

Uwe Ligges

>
>
> Ilya
>
>
>
>
>
>
>
>
> 	[[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