yihui 您好,我看了下我的repo里面是有postref.html
这个文件存在的。通过增加baseURL
解决了上述问题。您提到的没有报错的我通过您提出的方法找到了源代码,初步感觉是没有将x7
的值赋给x8
,但是我个人编程能力很差,也有可能说错了。源码如下:
if (Sys.which("git") != "" && system2_quiet("git", "status") ==
0) {
msg_next("Checking for files required by blogdown but not committed...")
x7 = c("layouts/shortcodes/blogdown/postref.html")
x8 = NULL
for (i in x7) {
if (!file_exists(i))
next
if (system2_quiet("git", c("ls-files", "--error-unmatch",
i)) != 0)
x8 = c(x8, i)
}
if (n <- length(x8)) {
msg_todo("Found ", n, " file", if (n > 1)
"s", " that should be committed in GIT:\n\n",
indent_list(x8))
}
else {
msg_okay("Great! Did not find such files.")
}
}
msg_done(f)
}