knitron
knitron copied to clipboard
Bug in the knitron.is_running() function
Hi,
I suggest replacing in the knitron.is_running() function, the line
tail(res, 1) == "True"
with the two lines
substrRight <- function(x, n) substr(x, nchar(x)-n+1, nchar(x)) substrRight(res, 4) == "True"
because on my system, res contains: "\033]0;IPython: ddelseny/DataScienceBook\aTrue" and consequently the tail() function fails to retrieve "True"
Regards, Pierre L.