Are you running R as sudo/administrator?
--
You received this message because you are subscribed to a topic in the Google Groups "CorpLing with R" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/corpling-with-r/qoR_r3P3lak/unsubscribe.
To unsubscribe from this group and all its topics, send an email to corpling-with-r+unsubscribe@googlegroups.com.
To post to this group, send email to corpling-with-r@googlegroups.com.
Visit this group at https://groups.google.com/group/corpling-with-r.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "CorpLing with R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to corpling-with...@googlegroups.com.
To post to this group, send email to corplin...@googlegroups.com.
The issue is that the package names are just listed, as opposed to being wrapped in a character vector. Try this:install.packages(c("dplyr", "XML", "xml2", "rChoiceDialogs", "stringi", "stringr", "gsubfn", “stringdist"), dependencies=TRUE)
Other comments:- this came up on the list before, maybe the book suggested code like this?- the error message tips this off: it says “XML” is not writeable, and if you look at ?install.packages, the second argument is the lib, so it thinks “XML” is the lib, and reports it is not writable which is kinda true but probably more true that the folder doesn’t exist.
On Jul 3, 2017, at 10:20 AM, David Elliott <david.e...@gmail.com> wrote:
Hi,
I am starting to work through the second edition of Stefan's Quantitative Corpus Linguistics in R, and I received the error and warning messages below when trying to install the packages used in the text. Any suggestions would be appreciated.
Thanks,
David
install.packages("dplyr", "XML", "xml2", "rChoiceDialogs", "stringi", "stringr", "gsubfn", "stringdist", dependencies=TRUE)
Warning in install.packages("dplyr", "XML", "xml2", "rChoiceDialogs", "stringi", :
'lib = "XML"' is not writable
Error in available[p1, dependencies, drop = FALSE] :
incorrect number of dimensions
In addition: Warning message:
package ‘dplyr’ is not available (for R version 3.4.0)--
You received this message because you are subscribed to the Google Groups "CorpLing with R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to corpling-with-r+unsubscribe@googlegroups.com.
To post to this group, send email to corpling-with-r@googlegroups.com.
Visit this group at https://groups.google.com/group/corpling-with-r.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "CorpLing with R" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/corpling-with-r/qoR_r3P3lak/unsubscribe.
To unsubscribe from this group and all its topics, send an email to corpling-with-r+unsubscribe@googlegroups.com.
To post to this group, send email to corpling-with-r@googlegroups.com.