Skip to content

[R-pkg-devel] Fw: [CRAN-pretest-archived] CRAN Submission moodlequizR 1.0.1

2 messages · Wolfgang Rolke, Jeff Newmiller

#
Hi,

I am trying to upload a package to CRAN but keep getting the error message below. The issue seems to be the use of attach in one of my routines. As I explain in the cran-comments.md this use of assign is intentional.

The routine paste.data is used by undergraduate student with very little R knowledge to transfer data from moodle quizzes into R. They can simply copy
  the data in moodle, switch to R and run paste.data(). The data is assigned to the global   environment under the name moodledata and can be used to find the solution to the moodle quiz. I have been using this routine with my students for several years without any problems.

What do I need to do to get passed this automatic check?

Thanks,
Wolfgang
#
I don't know how you can negotiate with CRAN regarding attach, but one approach is to return the data frame and instruct your students to write

  moodledata <- paste.data()

instead of

  paste.data()

since either is just as obscure as the other in the mind of a beginner and the former promotes better understanding of R and good practice.
On September 6, 2023 11:01:45 AM PDT, Wolfgang Rolke via R-package-devel <r-package-devel at r-project.org> wrote: