通过RStudio访问引用类的方法时抛出的警告

Nic*_*ick 5 r reference-class

代码和警告:

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.
Run Code Online (Sandbox Code Playgroud)

我也从帮助页面中提供的代码setRefClass以及我尝试制作的任何其他类中获得此代码.我在自己安装的运行R 3.2.2的Mac上可靠地得到它,并且在IT部门安装的几台运行R 3.2.1的真实和虚拟Windows 64机器上间歇性地运行它.

我使用的是RStudio 0.99.467.我安装了以下软件包:数据集,图形,grDevices,方法,统计信息,工具.

新信息:

当我通过RStudio运行代码时,似乎问题就出现了,而不是通过本机R gui运行.

RStudio中加载的包:

search()[1]".globalEnv""tools:rstudio""package:stats""package:graphics""package:grDevices""package:utils"
[7]"package:datasets""package:methods""Autoloads ""包:基地"

本机R中加载的包:

search()[1]".globalEnv""tools:RGUI""package:stats""package:graphics""package:grDevices""package:utils"
[7]"package:datasets""package:methods""Autoloads ""包:基地"

思考?谢谢