Skip to content

Instantly share code, notes, and snippets.

@brodieG
Last active August 29, 2015 14:04
Show Gist options
  • Save brodieG/084edb4122c6ee2b2b6b to your computer and use it in GitHub Desktop.
Save brodieG/084edb4122c6ee2b2b6b to your computer and use it in GitHub Desktop.
Test setOldClass Issues
library(devtools)
install_github("pckgA", "brodieg") # defines old class "file" and class union "fileOrNULL" == c("file", "NULL")
install_github("pckgB", "brodieg") # defines old class "file", and nothing else
library(pckgA)
makeDummy() # from pckgA, instantiates a class with a "fileOrNULL" slot, placing a temp file S3 object in the slot
library(pckgB)
makeDummy() # this fails now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment