Skip to content
Prev 351002 / 398503 Next

Illustrating use of R package

Lots of questions.  I'm only answering some of them, inline.
On 15/05/2015 9:04 PM, Glenn Schultz wrote:
Almost certainly.  Only use on.attach() if the action depends on whether
the package functions are visible to the user (as opposed to being only
visible to some other package that is using it).  If you want the same
actions regardless of visibility, use on.load().
dir.create() will, but you need to be careful how you specify paths.  If
you use system.file() to construct the path you should be okay.
Yes, you can use VirtualBox or some other VM or emulator to run Windows
on a Mac.  (Theoretically there are other ways that stay purely within
Mac OS, but they are not supported.)
You don't need to make a Windows binary at all, except for local
testing.  You only need to make the tarball, and CRAN will build the binary.

However, testing is important.  You should use
win-builder.r-project.org to build and test for Windows if you're doing
OS-specific things.

Duncan Murdoch