我怎么能调用别人写的这个R函数呢

  • 本文关键字:函数 怎么能 调用 别人 r
  • 更新时间 :
  • 英文 :


我从R开始,在互联网上发现了这个由某人编写的函数。链接是这个

https://gist.githubusercontent.com/fawda123/5086859/raw/17fd6d2adec4dbcf5ce750cbd1f3e0f4be9d8b19/nnet_plot_fun.r

现在,如果我想下载这个文件,然后调用该方法,我应该在哪里下载和存储这个文件?如何调用此方法?

或者,尝试

# install.packages("devtools")
library(devtools)
source_gist(5086859)
plot.nnet
# just run this line your first time to install the package
# install.packages( "downloader" )
# the downloader package makes it easy to pull code from github
library(downloader)
source_url( "https://gist.githubusercontent.com/fawda123/5086859/raw/17fd6d2adec4dbcf5ce750cbd1f3e0f4be9d8b19/nnet_plot_fun.r" , prompt = FALSE )
# there you have it
plot.nnet

最新更新