1

I am trying to count the number of words in a twitter file using the expression

system2("wc", args = "-w final/en_US/en_US.news.txt",stdout=TRUE)

I keep getting a message that

Error in system2("wc", args = "-w final/en_US/en_US.news.txt", stdout = TRUE) : '"wc"' not found

I have tried all I could. I am not able to figure out what I may be doing wrong.

Any help\direction would be appreciated.

zx8754
  • 52,746
  • 12
  • 114
  • 209
Rnovice
  • 11
  • 1
  • 1
    It's telling you that it can't find the `wc` command can't be found in the environment it's evaluating in. What OS are you using? This should work on OS X and Linux. – alistaire Mar 16 '16 at 05:20
  • I am using WIndows 7 – Rnovice Mar 16 '16 at 06:00
  • [Do you know a similar program for wc (unix word count command) on Windows?](http://stackoverflow.com/questions/247234/do-you-know-a-similar-program-for-wc-unix-word-count-command-on-windows) – zx8754 Mar 16 '16 at 07:45

0 Answers0