Hi again, i found the error: the problem was that I have created a template of rmarkdown myself inspired from Tufte one and I guess I didn't build it correctly..when i tried running it in a regular rmarkdown template it worked.
sorry for inconvenience nick Nicolae (Nick) Doban | Masters student EIT KIC Energy for Smart Cities Master of Science Programme Tel.: +32 489 11 81 73 LinkedIn: https://be.linkedin.com/in/nicolaedoban Skype ID: doban.nicolae Twitter: https://twitter.com/NicolaeDoban GitHub: https://github.com/nickdoban On Fri, Dec 4, 2015 at 7:34 AM, Jim Lemon <drjimle...@gmail.com> wrote: > Hi Nick, > I think that Jeff may be correct in that the code was cut and pasted from > a non-text application. In particular, the error message about "*" is > suspicious. What may be happening is that when you select a single line, it > only picks up the text, but when you select multiple lines, the garbage > bytes come along for the ride. Since you seem to be using Windows, try > Notepad (text editor) for an external editor as it is usually better > behaved. The final error is the result of not having read the data into GWS. > > Jim > > On Thu, Dec 3, 2015 at 10:59 PM, Nicolae Doban <nickdo...@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@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]] ______________________________________________ R-help@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.