Skip to content
This repository was archived by the owner on Jan 4, 2023. It is now read-only.
This repository was archived by the owner on Jan 4, 2023. It is now read-only.

Bug in the knitron.is_running() function #8

@lafaye

Description

@lafaye

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions