Rcpp无法加载 - Rcpp could not be loaded

- 此内容更新于:2016-02-24



Any idea why I keep getting the message below in R?

Error : .onLoad failed in loadNamespace() for 'Rcpp', details:
    call: .External("class__dummyInstance", ...)
    error: C symbol name "class_dummyInstance" not in load table
Error: package 'Rcpp' could not be loaded

I have tried everything and it seems that nothing can fix this problem. The machine used is not mine but a client's. There are a lot of restrictions from IT and they have roaming profiles. I installed the 32-bit and 64-bit, just the 32-bit and just the 64-bit but nothing. The machine has Windows 7 64-bit.

So any ideas?


(原文:The k in ckass__dummyInstance is suspicious. Also is this class_dummyInstance with only one underscore. It just seems that Rcpp was not correctly built.)


(原文:Sorry I typed this from the remote machine as I couldn't copy the text. It should be class_dummyInstance.)


(原文:Ah. This is a bug in Rcpp, signaled here.)


(原文:Interesting, will fix. Now what tickled the bug here, ie why has not been an issue before?)


(原文:I still don't understand how this could be tickled at loading without invoking the actual member function that had the bug.)


This is a bug in Rcpp that calls this registered symbol as if it was not. The problem is the definition of new_dummyObject:

new_dummyObject <- function(...)
    .External( "class__dummyInstance", ...)

should be

new_dummyObject <- function(...)
    .External( class__dummyInstance, ...)

I submitted an issue here.


(原文:Thanks for this. Any idea when you will be able to release a new build? Even if it's a dev release?)