If you want to detect such potential problems during the code-writing phase and not during run-time, then the codetools package is your friend.library(codetools)aha<-function(p){ return(p+n)}#check a specific function:checkUsage(aha)#check all loaded functions:checkUsageEnv(.GlobalEnv)这些将告诉您no visible binding for global variable ‘n’. 这篇关于我们可以有更多的错误(消息)吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-01 07:44