LMSouq
moodle-core Open

Why doesn't the table generated from r-exams appear in Moodle?

&#
Álvaro Ángel Molina
1 month ago
3 views
Problem Description
I have defined the variables and data necessary to generate a frequency table in RMarkdown, to export it to Moodle, using R-exams: xsubio<-c(sample(5:35,5)) xsubi<-sort(xsubio) frecuencias<-sample(0:30 ,5) tabla<-data.frame(xsubi,frecuencias) colnames(tabla)<-c(" Edades" ,"Personas") Through chunk I generate the table: ```{r, eval=TRUE,echo=FALSE,results='asis',warning=FALSE,message=FALSE,error=FALSE} library(exams) print(xtable(tabla), include.rownames=FALSE) ``` When exporting to PDF, using exams2pdf, the table is displayed perfectly: [![enter image description here][1]][1] But, when exporting to Moodle, using exams2moodle, the table disappears: [![enter image description here][2]][2] What do I have to do to make it appear? [1]: https://i.sstatic.net/NfX2k.png [2]: https://i.sstatic.net/SqAkt.png

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base