r - KnitR unable to download documents -
i able run code in r.
setinternet2(use = true) download.file("http://d396qusza40orc.cloudfront.net/dsscapstone/dataset/coursera-swiftkey.zip", "coursera-swiftkey.zip", method = "curl", mode = 'wb') unzip("coursera-swiftkey.zip", files=c("final/en_us/en_us.twitter.txt", "final/en_us/en_us.news.txt", "final/en_us/en_us.blogs.txt"), exdir=".")
but when try use knitr gives me error
quitting lines 15-21 (milestone.rmd) error in parse(text = x, srcfile = src) : <text>:5:106: unexpected ')' 4: unzip("coursera-swiftkey.zip", files=c("final/en_us/en_us.twitter.txt", "final/en_us/en_us.news.txt", "final/en_us/en_us.blogs.txt"), exdir=".") 5: file.copy(c("final/en_us/en_us.twitter.txt", "final/en_us/en_us.news.txt", "final/en_us/en_us.blogs.txt"?) ^ calls: <anonymous> ... <anonymous> -> parse_all -> parse_all.character -> parse execution halted
i using r studio , mac os x.
i tried removing s https still di not work.
Comments
Post a Comment