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@r-project.org> wrote: >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 > >________________________________ >From: lig...@statistik.tu-dortmund.de <lig...@statistik.tu-dortmund.de> >Sent: Wednesday, September 6, 2023 1:10 PM >To: Wolfgang Rolke <wolfgang.ro...@upr.edu> >Cc: cran-submissi...@r-project.org <cran-submissi...@r-project.org> >Subject: [CRAN-pretest-archived] CRAN Submission moodlequizR 1.0.1 > >Dear maintainer, > >package moodlequizR_1.0.1.tar.gz does not pass the incoming checks >automatically, please see the following pre-tests: >Windows: ><https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwin-builder.r-project.org%2Fincoming_pretest%2FmoodlequizR_1.0.1_20230906_190210%2FWindows%2F00check.log&data=05%7C01%7Cwolfgang.rolke%40upr.edu%7C1474424cdb4b4d000de008dbaefc36ac%7C0dfa5dc0036f461599e494af822f2b84%7C0%7C0%7C638296170522310534%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=4tpQtnwtdQtkukpqCr7A%2FlQU4yyBoPcuVmQpee8Pcog%3D&reserved=0<https://win-builder.r-project.org/incoming_pretest/moodlequizR_1.0.1_20230906_190210/Windows/00check.log>> >Status: 2 NOTEs >Debian: ><https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwin-builder.r-project.org%2Fincoming_pretest%2FmoodlequizR_1.0.1_20230906_190210%2FDebian%2F00check.log&data=05%7C01%7Cwolfgang.rolke%40upr.edu%7C1474424cdb4b4d000de008dbaefc36ac%7C0dfa5dc0036f461599e494af822f2b84%7C0%7C0%7C638296170522310534%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=rPiju64v6gc0JXONoOL8sDVu0DcuWG86%2FVzUfG9%2BcL0%3D&reserved=0<https://win-builder.r-project.org/incoming_pretest/moodlequizR_1.0.1_20230906_190210/Debian/00check.log>> >Status: 2 NOTEs > > > >Please fix all problems and resubmit a fixed version via the webform. >If you are not sure how to fix the problems shown, please ask for help on the >R-package-devel mailing list: ><https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-package-devel&data=05%7C01%7Cwolfgang.rolke%40upr.edu%7C1474424cdb4b4d000de008dbaefc36ac%7C0dfa5dc0036f461599e494af822f2b84%7C0%7C0%7C638296170522310534%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=NayqCcEWXJ3PTWfsryDjgzZ38n8LHgrfwALTVPeFhcU%3D&reserved=0<https://stat.ethz.ch/mailman/listinfo/r-package-devel>> >If you are fairly certain the rejection is a false positive, please reply-all >to this message and explain. > >More details are given in the directory: ><https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwin-builder.r-project.org%2Fincoming_pretest%2FmoodlequizR_1.0.1_20230906_190210%2F&data=05%7C01%7Cwolfgang.rolke%40upr.edu%7C1474424cdb4b4d000de008dbaefc36ac%7C0dfa5dc0036f461599e494af822f2b84%7C0%7C0%7C638296170522310534%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7KHGPJm55bAOy%2FkrFhp0vTV5Fl4nIOJmCQ004%2BPDrsA%3D&reserved=0<https://win-builder.r-project.org/incoming_pretest/moodlequizR_1.0.1_20230906_190210/>> >The files will be removed after roughly 7 days. > >No strong reverse dependencies to be checked. > >Best regards, >CRAN teams' auto-check service -- Sent from my phone. Please excuse my brevity. ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel