如下函数可以返回一些函数的R源代码,如: getAnywhere(kmeans) 该函数具体用法,请参看官方说明。 参考资料: https://www.cnblogs.com/Dzhouqi/p/3418586.html