English | Portuguese-Brazil
The EDM (Exams Database Manager) package was developed using the shiny package of the software R. To learn more about package shiny visit the official page https://shiny.rstudio.com/.
The goal is to provide a graphical interface in html to generate proofs in PDF and XML (MOODLE format) through a manageable question bank. Still, it is possible to program questions of the most varied types as: text essay, numerical essay, single choice, multiple choice, association and mixed (combining some of the previous options).
Another interesting aspect of the package is the possibility of generating tests using the question bank of other teachers, significantly increasing the options for a teacher to prepare a test. Imagine that the EDM package contains 5 question banks in your area of expertise, including yours. Imagine that each question bank has 10 questions. Then, when preparing a test you will have a total of 50 questions. That's why it's so important that you share your question bank. Below you will find instructions on how to do this.
You must first install the R software. There are several videos on youtube teaching how to do this. A video suggestion is https://www.youtube.com/watch?v=HNJpWe_kh8Y.
Also install the devtools package, as we will need its install_github
function to install the EDM package. If you do not know how to do this, open the program R and type in the console:
install.packages('devtools')
Or watch the following video: https://www.youtube.com/watch?v=P2bE-HIng08.
The PDF files generated by the EDM package use the LaTeX program, which is a very high-level system used for preparing documents.
Therefore, if you do not have this program installed on your machine, install the package tinytex of the R software and run the following commands :
library(tinytex)
install_tinytex()
Depending on the speed of your internet, the mentioned procedure will take a little time. Then, wait until the installation is complete.
To generate the proofs in XML, it is necessary to have installed the program pandoc. If the R program is open after the installation is complete, close it and restart to recognize pandoc.
Open the R program and enter the following commands on the console:
library(devtools)
install_github('ivanalaman/EDM', upgrade = "never", force = TRUE)
If you want to create a clone of this repository and install the EDM package from this clone, then in a terminal emulator do:
git clone git://github.com/ivanalaman/EDM.git
or
git clone https://ivanalaman@github.com/EDM.git
Then, run the following commands:
R CMD check EDM
R CMD build EDM
R CMD INSTALL EDM_X.X-X.tar.gz
Open the R program and enter the following commands on the console:
library(EDM)
startEDM()
You should open a page in html in your default browser as suggested in the following figure:
Explore the app by browsing the different menus. Generate a test in PDF format to test whether the prerequisites have been successfully installed. Look the following picture:
If everything went well, you should open a popup informing you where the files were saved.
Two files are created. One is for feedback and the other for proof. By default, the file is saved inside the EDM folder created in your working directory. In windows for example, you will find the folder in the following path: C:\Users\Yourname\Documents\EDM. In Linux the path would be: /home/user/EDM.
If there is no file in the folder, an error probably occurred due to a previous installation.
If you are a LaTeX user and have already installed TeXLive or MiKTeX and still had an error generating the PDF, perform the steps in the section Installation prerequisites to generate the PDF proofs.
If the problem still persists, do not hesitate to send an email to iballaman@uesc.br for help.
After you have explored the application, the time has come for you to create your own question bank to use it in preparing your exams. The figure below shows the procedure.
After creating the question bank, follow the instructions in the questionbankEDM repository from github.
The EDM package has a specific menu for elaborating questions, both interactive and non-interactive. For those who are not familiar with LaTeX codes, you can use the interactive interface. For those familiar with LaTeX, you can use the non-interactive menu.
This type of question has only one answer, which in this case is a text. It is recommended that the answer be as objective as possible. Let's look at an example:
The elaboration of the example above using the application can be seen in the following figure:
The idea is the same as the text-based essay question, however, the answer is a numerical one. Example:
Realize that the value is unique, without any text. If it is a decimal number, then use a dot as a separator unit for the entire part of the fractional part (2.25 for example).
It is also known as the objective question, as there is only one correct question. Example:
In this type of question we can have more than one correct question, all correct or all false. Also known as a true or false question. Example:
The purpose of this question is to establish a relationship between two lists. Example:
This type of question involves subquestions that can be of different types. In this example, we have the combination of a text-type alternative and a numeric-type alternative.
1,2,3,4,4,5,5,5,6,6,6,6
If the question has a picture, it is possible to add it by placing the full address where the picture is. If you do not know how to copy the complete file address, see the figure below.
In the case of windows, you must change the "\" by "/" in the address copied from the previous image.
I suggest that you create a folder called "pictures" in the same directory where the question file is. See the figure below.
The following figure shows the elaboration of a text-type question with a figure.
After elaborating a question, the file must be saved in the correct directory so that the application can find such files. Let's assume you created your question bank (IBA for example), your subject (estatistica_basica) and a subject (introduction). Assuming that the question is of an objective and easy level, then the file "minhaquestao.Rnw" should be saved in the directory:
Don't forget to name the files properly. See the topic Standardizing file names.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.