[R] Strange error

Jeff Newmiller jdnewmil at dcn.davis.ca.us
Thu Dec 3 14:51:47 CET 2015


You are posting in html format on a plain text mailing list,  so we are not seeing what you sent. If you are being similarly careless with your data files then you may have corrupted the data.  Do not use a word processor with R code or data files. 
-- 
Sent from my phone. Please excuse my brevity.

On December 3, 2015 3:59:52 AM PST, Nicolae Doban <nickdoban at gmail.com> wrote:
>Hi,
>
>recently I received a strange error after running my code in chunks.
>But, I
>don't get any errors when I run it line by line.
>
>Also, what is strange is that the  error message is misspelled
>
>This is the error messages I get
>
>*> setwd("H:/XX/XXX")*
>*"rror: unexpected input in "setwd("H:/XX/XXX")*
>*> *
>*"rror: unexpected input in "*
>*> GWS <- read.csv("X.csv", header = TRUE, sep = ",", stringsAsFactors
>=
>FALSE, na.strings=c("","","NA"))*
>*"rror: unexpected input in "GWS <- read.csv("X.csv", header = TRUE,
>sep =
>",", stringsAsFactors = FALSE, na.strings=c("","","NA"))*
>*> GWS <- GWS[with(GWS, order(d)), ]; row.names(GWS) <- NULL*
>*Error: object 'GWS' not found*
>
>As you can see even changing the directory results in an error message
>but,
>it changes the directory to the correct folder.
>
>What is interesting is that I was not getting this error yesterday
>(Dec.,
>2nd 2015)
>
>Could you please shed some light on this issue? Is it something related
>to
>R or Rstudio or the packages?
>
>Thank you in advance very much,
>nick
>
>	[[alternative HTML version deleted]]
>
>______________________________________________
>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>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.

	[[alternative HTML version deleted]]



More information about the R-help mailing list