[R] Error: unexpected '<' in "<" when modifying existing functions

Peter Langfelder peter.langfelder at gmail.com
Sat Jan 14 02:05:19 CET 2012


On Fri, Jan 13, 2012 at 4:57 PM, Rui Esteves <ruimaximo at gmail.com> wrote:
> Hi.
> I am trying to modify kmeans function.
> It seems that is failing something obvious with the workspace.
> I am a newbie and here is my code:

>> <environment: namespace:stats>
> Error: unexpected '<' in "<"

Do not include the last line

<environment: namespace:stats>

it is not part of the function definition. Simply leave it out and
your function will be defined in the  user workspace (a.k.a. global
environment).

HTH

Peter



More information about the R-help mailing list