如何删除geom_net2 <- function (
mapping = NULL, data = NULL, stat = "net", position = "identity", show.legend = NA,
na.rm = FALSE, inherit.aes = TRUE, layout.alg="kamadakawai", layout.par=list(),
directed = FALSE, fiteach=FALSE, selfloops = FALSE, singletons = TRUE, alpha = 0.25,
ecolour=NULL, ealpha=NULL, arrow=NULL, arrowgap=0.01, arrowsize=1, labelon=FALSE,
labelcolour=NULL, labelgeom = 'text', repel = FALSE,
vertices=NULL, ...) {
ggplot2::layer(
geom = GeomNet2, mapping = mapping, data = data, stat = stat,
position = position, show.legend = show.legend, inherit.aes = inherit.aes,
params = list(na.rm = na.rm, layout.alg=layout.alg, layout.par=layout.par,
fiteach=fiteach, labelon=labelon, labelgeom=labelgeom, ecolour = ecolour,
ealpha=ealpha, arrow=arrow, arrowgap=arrowgap, directed=directed, repel=repel,
arrowsize=arrowsize, singletons=singletons, labelcolour=labelcolour,
vertices=vertices, selfloops = selfloops,
...)
)
}
变量?
我将其设置为错误,并希望将其删除。
看来GIT_EDITOR
只能列出变量...
答案 0 :(得分:2)
环境变量是由运行每个命令的外层 shell 设置/导出的,因此是未设置/取消导出的。因此, un -设置GIT_EDITOR
的方式完全取决于您的shell。
在大多数Unix样式的shell中,unset
是取消设置变量的动词。如果将变量标记为已导出,则不仅会在外壳中取消设置它,还将其从导出环境中删除。 Unix csh / tcsh改用unsetenv
(它的unset
仅取消设置 shell 变量,不取消设置环境变量; set
设置shell变量,setenv
设置环境变量)。
我不知道在DOS风格的shell中该怎么做,但是Command line to remove an environment variable from the OS level configuration提供了一些建议,以及指向其他StackOverflow问题和解答的链接。