完整错误提示:Can not find executables for concorde or linkern.Please install the executables or set path manually.
问题:
在使用R语言的tspmeta包的run_solver()函数时,调用参数method='concorde'时 或者TSP包的concode_path()和concorde_help()函数时,出现的错误。
原因:
查看源代码里出现这句错误语句的地方
## path
concorde_path <- local({
.path <- NULL
function(path){
if(missing(path)) {
if(!is.null(.path)) return(.path)
else {
## find concorde and/or linkern
p <- dirname(Sys.which("concorde"))
if(p == "") p <- dirname(Sys.which("linkern"))
if(p == "") stop("Can not find executables for concorde or linkern. Please install the executables or set path manually.")
return(p)
}
} else {
if(!is.null(path)) {
path <- normalizePath(path) ### translate all special characters
ex <-