csgillespie / poweRlaw

This package implements both the discrete and continuous maximum likelihood estimators for fitting the power-law distribution to data. Additionally, a goodness-of-fit based approach is used to estimate the lower cutoff for the scaling region.
109 stars 24 forks source link

bootstrap_p Error in checkForRemoteErrors #30

Closed markrcosta closed 10 years ago

markrcosta commented 10 years ago

Based on the stack overflow discussion here: http://stackoverflow.com/questions/25561694/error-with-bootstrap-function-in-powerlaw?noredirect=1#comment39925932_25561694

Two examples of me trying to run the bootstrap_p function

bs_p<-bootstrap_p(deg_pl, xmins = deg_pl$xmin, pars = deg_pl$pars, no_of_sims = 1, threads = 1)
Error in checkForRemoteErrors(val) :   one node produced an error: could not find function "rpldis"

bs_p = bootstrap_p(deg_pl)
Error in checkForRemoteErrors(val) : 
  100 nodes produced errors; first error: could not find function "rpldis"

sessionInfo()
attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] snowfall_1.84-6 snow_0.3-13     poweRlaw_0.20.5 RMySQL_0.9-3    DBI_0.2-7       igraph_0.7.1   

loaded via a namespace (and not attached):
[1] VGAM_0.9-4     parallel_3.0.2 stats4_3.0.2   tools_3.0.2 
csgillespie commented 10 years ago

Sorry for the delay.

I can't reproduce this error. Could you provide example data?

install.packages("poweRlaw")
library(poweRlaw)
r = rexp(100)
deg_pl = conpl$new(r)
bootstrap_p(deg_pl, xmins = deg_pl$xmin, pars = deg_pl$pars, no_of_sims = 1, threads = 1)
csgillespie commented 10 years ago

Can't reproduce