我从R开始,在互联网上遇到了某人写的这个功能。链接是这个
https://gist.githubusercontent.com/fawda123/5086859/raw/17fd6d2adec4dbcf5ce750cbd1f3e0f4be9d8b19/nnet_plot_fun.r
现在,如果我想下载此文件然后调用该方法,我应该在哪里下载并存储此文件?如何调用此方法?
答案 0 :(得分:5)
或者,尝试
# install.packages("devtools")
library(devtools)
source_gist(5086859)
plot.nnet
答案 1 :(得分:3)
# 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