Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't work with attr.source='.numberLines' in r chunk? #41

Open
tanduc307 opened this issue Dec 8, 2022 · 0 comments
Open

Won't work with attr.source='.numberLines' in r chunk? #41

tanduc307 opened this issue Dec 8, 2022 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@tanduc307
Copy link

tanduc307 commented Dec 8, 2022

Dear developers of flair package,
This is a great tool for highlighting source code R that useful for training new R users. This is what I am looking for!! Thanks for creating it! Anyway, here is my issue:

First, I highlight code

{r, echo=TRUE}

decorate("code_1") %>%
  flair_lines(2)

it works OK in this example

{r code_1, echo=TRUE, warning=FALSE, message=FALSE, include=FALSE}

iris %>%
  group_by(Species) %>%
  summarize(mean(Sepal.Length))

but it not works if I add attr.source='.numberLines' in r chunk option of code_1
This is the error message:

Error in eval(x, envir = envir) : object '.numberLines' not found
Calls: <Anonymous> ... eval_lang -> in_input_dir -> in_dir -> eval -> eval
Execution halted

I hope my issue was clearly presented. Hoping this can be solved.
Regards,
Duc

@kbodwin kbodwin added bug Something isn't working help wanted Extra attention is needed labels Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants