Hi All,
I am very new to R.I am looking to create a pdf document by integrating LATEX and R(.Rnw)
My data is in a csv file.PFB:
ID Name
1 A
2 B
I need to generate 2 pdfs since there are only two ids in this case(but the data can have N number of records).
PDF_FOR_ID_1
ID : 1
Name : A
PDF_FOR_ID_2
ID : 2
Name : B
The pdf genration should be dynamic based on the number of ids in the data csv.
I was trying with LATEX AND R but not able to print the value from csv file adjcent to the label
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\SweaveOpts{concordance=TRUE}
\begin{tabular}{l}
\TextField{Study Name:}
<<echo=FALSE>>=
d <- read.csv("D:\\Users\\Documents\\Data.csv")
m <-d$ID
print(m)
@
\TextField{Form:}
\end{tabular}
\end{document}
When i try to compile the pdf it is returning the error
! LaTeX Error: Something's wrong--perhaps a missing \item.
Kindly help.