You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IINM this is leaving a file around on the user's system e.g. during R CMD check (AlignedAnalytes.pdf).
It would be better for the examples to clean up after themselves. I get that example(plotAlignedAnalytes) is probably supposed to leave it there for the user to inspect, so I'm not sure the right way to go about this. Two suggestions:
Put the plotting code behind \dontrun{} and make the user run it manually; leave a comment in the example explaining why so the user knows about this side-effect.
Write a "fake" Rd file whos \examples{} only consist of \dontshow{ try(unlink("AlignedAnalytes.pdf")) } that removes the file, put only under R CMD check where all examples are run.
Change the code so that instead of plotting to PDF by default, it plots to the default device (e.g. the plot window in interactive() sessions)
DIAlignR/man/getAlignObjs.Rd
Line 51 in 2119587
IINM this is leaving a file around on the user's system e.g. during
R CMD check
(AlignedAnalytes.pdf).It would be better for the examples to clean up after themselves. I get that
example(plotAlignedAnalytes)
is probably supposed to leave it there for the user to inspect, so I'm not sure the right way to go about this. Two suggestions:\dontrun{}
and make the user run it manually; leave a comment in the example explaining why so the user knows about this side-effect.\examples{}
only consist of\dontshow{ try(unlink("AlignedAnalytes.pdf")) }
that removes the file, put only underR CMD check
where all examples are run.interactive()
sessions)Similar for .tsv file outputs from
DIAlignR/man/alignTargetedRuns2.Rd
Line 46 in 2119587
DIAlignR/man/progAlignRuns2.Rd
Line 53 in 2119587
The text was updated successfully, but these errors were encountered: