Re: [R] Issue calling MICE package

2017-10-05 Thread David Winsemius
> On Oct 5, 2017, at 12:28 AM, Ole Høst wrote: > > Sorry, I was not clear enough. The reason I want to use mice::mice() rather > than library(mice); mice() is that I want to call it from my own package. > But the reprex works from the command line as well, straight after > launching R: > > mic

Re: [R] Issue calling MICE package

2017-10-05 Thread Ole Høst
Sorry, I was not clear enough. The reason I want to use mice::mice() rather than library(mice); mice() is that I want to call it from my own package. But the reprex works from the command line as well, straight after launching R: mice::mice(airquality) #> Error in check.method(setup, data): Th

Re: [R] Issue calling MICE package

2017-10-04 Thread Peter Dalgaard
IIUC, this would be an isssue with MICE (or rather "mice"), which isn't Ole's. It could be a namespace issue, but it could also be that some start-up code is not executed if library() is bypasses (see .onAttach et al.). -pd > On 4 Oct 2017, at 17:00 , Michael Dewey wrote: > > Dear Ole > > On

Re: [R] Issue calling MICE package

2017-10-04 Thread Michael Dewey
Dear Ole One of the experts may be able to diagnose this without extra information but I suspect you have not got the right magic in your NAMESPACE file in your package. You may need to re-read section 1.5.1 of the Writing R extensions manual. Michael On 04/10/2017 13:47, Ole Høst wrote: I

[R] Issue calling MICE package

2017-10-04 Thread Ole Høst
I want to call the mice function from the MICE package from my own package. However I run into this issue, which can be reproduced on the command line: mice::mice(airquality)#> Error in check.method(setup, data): The following functions were not found: mice.impute.pmm, mice.impute.pmm I have no p