Error

7 views
Skip to first unread message

R N Sarma

unread,
Dec 22, 2016, 3:27:13 AM12/22/16
to knitr
While running the scripts given below in R studio, it is nicely working. But I get the error message as"Quitting from lines 11-14 (analysisNEW_1_.Rmd)
Error in file(file, "rt") : cannot open the connection
Calls: <Anonymous> ... withCallingHandlers -> withVisible -> eval -> eval -> read.table -> file
Execution halted" when I go for File>publish.
How to resolve it?

---
title: "Augmented block"
author: "Sarma, R.N."
date: "December 21, 2016"
output: word_document
---

###Reading...

```{r}
library(agricolae)
A<-read.table("data-1.txt",header = TRUE)
str(A)
```

###Analysis by groups

```{r,echo=FALSE}
options(digits=2)
attach(A)
out<-DAU.test(BLOCK,Genotypes,HI, method=c("lsd"), console=TRUE)
detach(A)
names(out)
print(out$means)
print(out$groups)
```

###All comparison

```{r,echo=FALSE}
attach(A)
out<-DAU.test(BLOCK,Genotypes,HI, method=c("lsd"), group=FALSE)
detach(A)
names(out)
head(out$comparison)

Emilio Xavier Esposito

unread,
Dec 27, 2016, 8:09:32 AM12/27/16
to knitr

Hi
The error Error in file(file, "rt") : cannot open the connection means R cannot find and open the file data-1.txt. You might need to include more information about the location of the file, such as ../data/data-1.txt.

Emilio

Reply all
Reply to author
Forward
0 new messages