aloysius-lim / bigrf

Random forests for R for large data sets, optimized with parallel tree-growing and disk-based memory
91 stars 26 forks source link

CGetType" not available for .Call() for package "bigmemory" #19

Open GitHubDuc opened 8 years ago

GitHubDuc commented 8 years ago

I used the following code to install bigrf: url <- "https://cran.r-project.org/src/contrib/Archive/bigrf/bigrf_0.1-11.tar.gz" pkgFile <- "bigrf_0.1-11.tar.gz" download.file(url = url, destfile = pkgFile)

Install dependencies

install.packages(c("bigmemory"))

Install package

install.packages(pkgs=pkgFile, type="source", repos=NULL)

Delete package tarball

unlink(pkgFile)

require(bigrf)

**example code***

Load data.

data(Cars93, package="MASS") x <- Cars93 y <- Cars93$Type

Select variables with which to train model.

vars <- c(4:22)

Run model, grow 50 trees on the first 60 examples.

forest1 <- bigrfc(x[1:60, ], y[1:60], ntree=50L, varselect=vars)

Error in { : task 1 failed - ""CGetType" not available for .Call() for package "bigmemory""

Can anyone help to give some hints?

Thanks so much!

Changbin

GitHubDuc commented 8 years ago

The r version i used is

R version 3.3.1 (2016-06-21) -- "Bug in Your Hair" Copyright (C) 2016 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit)

silvesterkkk commented 4 years ago

I know it has been a while, but I am getting the same error shown below while running the chunk6: test-rf in Smoke signal model (https://github.com/enigma-io/smoke-signals-model) ;

Error in { : task 1 failed - ""CGetType" not available for .Call() for package "bigmemory""

The R version i am using is 3.6.0. R studion version 1.2.1335 platform: x86_64-apple-darwin15.6.0

T

p-kostic commented 4 years ago

Having the exact same issue, would like to know what's causing it and how to fix it as well