Error messages encountered in TERR: "S3method '.DollarNames.C++Object' not defined'" "function 'enterRNGScope' not provided by package 'Rcpp'" "function 'demangle' not provided by package 'Rcpp'"

Error messages encountered in TERR: "S3method '.DollarNames.C++Object' not defined'" "function 'enterRNGScope' not provided by package 'Rcpp'" "function 'demangle' not provided by package 'Rcpp'"

book

Article ID: KB0081626

calendar_today

Updated On:

Products Versions
Spotfire Enterprise Runtime for R 4.1.1, 4.2.0, 4.2.0, 4.3.0 and later

Description

Error messages encountered in TERR:

     "S3method '.DollarNames.C++Object' not defined'"
     "function 'enterRNGScope' not provided by package 'Rcpp'"
     "function 'demangle' not provided by package 'Rcpp'"
 

Issue/Introduction

Error messages encountered in TERR: "S3method '.DollarNames.C++Object' not defined'" "function 'enterRNGScope' not provided by package 'Rcpp'" "function 'demangle' not provided by package 'Rcpp'"

Resolution

1). The following error is typically caused by interference between the built-in "utils" package's S3 methods for '.DollarSign()' and the Rcpp package's S3 and S4 methods for the same generic function:

     S3method '.DollarNames.C++Object' not defined

This can be avoided by upgrading from TERR 4.1.1 to TERR 4.3.0, which handles this issue more gracefully.

2). The following errors can be caused by version mismatches between the Rcpp package and other user-contributed CRAN packages that depend on the Rcpp package:

     function 'enterRNGScope' not provided by package 'Rcpp'

     function 'demangle' not provided by package 'Rcpp'

These can be avoided by removing all CRAN packages, then installing the latest version of each package starting with Rcpp. This will provide the most Rcpp-compatible suite of Rcpp-dependent CRAN package versions available.