Warnings Thrown When Accessing Reference Class Methods Through RStudio

Code and warnings:

tinyclass <- setRefClass("TinyClass", methods = list(doNothing=function(){})) tc <- tinyclass() tc$doNothing() NULL Warning messages: 1: In installClassMethod(value, self, field, selfEnv, thisClass) : method .objectPackage from class TinyClass was not processed into a class method until being installed. Possible corruption of the methods in the class. 2: In installClassMethod(value, self, field, selfEnv, thisClass) : method .objectParent from class TinyClass was not processed into a class method until being installed. Possible corruption of the methods in the class. 

I also get this from the code provided on the help page for setRefClass , and any other class I'm trying to do. I am confidently on a Mac running R 3.2.2, which I installed myself, and intermittently on several Windows 64 real and virtual machines running R 3.2.1, which were installed by the IT department.

I am using RStudio 0.99.467. I have the following packages installed: data sets, graphs, grDevices, methods, statistics, utils.

NEW INFORMATION:

It seems that the problem occurs when I run the code through RStudio, but not through my own R gui.

Downloaded packages in RStudio:

Search () [1] ".GlobalEnv" "tools: rstudio" "package: stats" "package: graphics" "package: grDevices" "package: utils"
[7] "package: data sets" "package: methods" "Autoloads" "package: base"

Loaded packages in native R:

Search () [1] ".GlobalEnv" "tools: RGUI" "package: stats" "package: graphics" "package: grDevices" "package: utils"
[7] "package: data sets" "package: methods" "Autoloads" "package: base"

Thoughts? Thanks

+5
source share

Source: https://habr.com/ru/post/1233018/


All Articles