search for: set_class

Displaying 2 results from an estimated 2 matches for "set_class".

2004 Oct 30
1
Destructive str(...)?
...range behavior of the str function - it seems to modify the object that is displayed. Probably I'm using something unsupported (objects consisting just of an external reference), but still I'm curious as of why this happens. I create (in C code) EXTPTRSXP and associate a class to it via SET_CLASS. Such objects works fine until it's passed to str as the following output demonstrates: > c<-.MCall("RController","getRController") > c [1] "<RController: 0x3be5d0>" > str(c) Class 'ObjCid' length 1 <pointer: 0x3be5d0> > c &...
2013 May 08
1
Dependencies of Imports not attached?
...ACKAGES=base R [snip] > library(httr) > handle('http://cran.fhcrc.org/') Error in getCurlHandle(cookiefile = cookie_path, .defaults = list()) : could not find function "getClass" As far as I can tell the error occurs when getCurlHandle .Calls a C function which then calls SET_CLASS, which (I guess) requires methods::setClass to be in the search path. Now 'httr' Imports 'RCurl' which Depends on 'methods'. So I think `library(httr)` should end up attaching 'methods' to the search path, but it seems 'methods' is just imported to RCurl'...