Forum: support


RE: ANS support [ Reply ] By: Aiko Slade on 2024-10-25 09:32 | [forum:49997] |
Great, thanks! Already tried it with the double colons, never understood what the triple colons were for. I'll get back to this thread when I have some experience with the function! |
RE: ANS support [ Reply ] By: Niels Smits on 2024-10-24 15:53 | [forum:49994] |
Hi Achim, Thanks! I keep learning new things! Best, Niels |
RE: ANS support [ Reply ] By: Achim Zeileis on 2024-10-24 15:42 | [forum:49993] |
Or just use exams:::exams2ans(...) instead of exams2ans(...). In general, with the three colons, you can reach into the namespace of a package and also access the unexported function. |
RE: ANS support [ Reply ] By: Niels Smits on 2024-10-24 14:31 | [forum:49992] |
Hi Aiko, My bad! I forgot that it is not yet part of the name space, and a helpfile is also missing. The code can be found here: https://r-forge.r-project.org/scm/viewvc.php/pkg/exams/R/exams2ans.R?root=exams The adjustments required for Ans are already in the current exams2qti21 function. Using the following code you could try to use it anyway: library(exams) exams2ans <- function(file, n = 1L, dir = ".", name = "anstest", converter = "pandoc-mathjax", table = TRUE, maxattempts = 1, cutvalue = NULL, ...) { ## call exams2qti21 rval <- exams2qti21(file = file, n = n, dir = dir, name = name, converter = converter, maxattempts = maxattempts, cutvalue = cutvalue, base64 = FALSE, flavor = "ans", ...) invisible(rval) } myexam <- list( "tstat.Rmd", "tstat2.Rmd", "ttest.Rmd" ) exams2ans(myexam) |
RE: ANS support [ Reply ] By: Aiko Slade on 2024-10-24 12:47 | [forum:49991] |
Thanks for the quick reply! I've installed the dev version (2.4-2), but R complains that it cannot find the exams2ans function. Am I doing something wrong? |
RE: ANS support [ Reply ] By: Niels Smits on 2024-10-24 12:03 | [forum:49990] |
Hi Aiko, Good to hear from you! Actually, in the development version of the package there is a beta-version of an exams2ans function, which allows for including num, schoice and mchoice items. By using: install.packages("exams", repos="http://R-Forge.R-project.org", type = "source") The function is part of the installed functions. We have not delved into the issues you describe here, but perhaps some may disappear when using the new function. * Note that many online testing systems and DLOs don't like the numbering of item options because, when option ordering within the online system is turned on, the order of the numbers is not the same as their position in the list. But you could use: exams2ans(myexam, schoice=list(enumerate =FALSE)) * With reference to the number of credits for items: I think it will take a bit before it may be included into the function as this is always one of the more intricate challenges in creating proper exams2xy-functions. As it is a beta version and we have just started workingin Ans ourselves we would like to hear all about your experiences! Could you make an attempt using exams2ans? Best, Niels |
ANS support [ Reply ] By: Aiko Slade on 2024-10-24 11:06 | [forum:49989] |
Just created my first exam for ANS (ans.app). I exported the exam to QTI 2.1 and imported it to ANS, but still had some issues. I noticed that there are specific export functions for specific software, and I'm wondering whether the issues I encountered are indeed ANS related and should be solved with a separate exams2ans() function, or whether there are other ways to solve it. I hope there's someone here that can help! I have been using the .Rmd format. - the 'exname' field doesn't seem to be transferred to ANS - subscripts aren't transferred to ANS (e.g., $BF_{AB} = 0.5$) - the 'QuestionList' is transferred to multiple unnumbered questions in ANS, rather than to different subquestions (e.g., 1a, 1b) - it seems empty lines after code blocks (with single back ticks ` or triple back ticks ```) get ignored in ANS, such that text and code get crammed - I cannot find a way add the number of points for a question, such that I can directly transfer it to ANS Thanks! |