bigrf
bigrf copied to clipboard
CGetType" not available for .Call() for package "bigmemory"
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
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)
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
Having the exact same issue, would like to know what's causing it and how to fix it as well