主要原因:

不是root软件包的问题, 而是当前路径不在开发R包的目录下

Error: Could not find package root.

解决方法:

setwd()
回到开发R包的目录下即可.