You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No sign of Citation interface after opening README.Rmd template and similar files in visual mode #11198
Interestingly I get citations when creating a new Quarto project. Will try creating a new R project now, guess it may be due to previous session info from previous project sessions.
There is definitely some weird inconsistent behaviour going on here. I create a new .Rmd document and citations pop-up fine. But when editing the file in which the citations failed previously there seems to be no way to add citations. Reporting here in case of use/interest.
OK progress: exactly the same file and project prevent citations being added when the contents of README.Rmd are overwritten by usethis::use_readme_rmd().
Bingo, Pretty sure I've found the cause of this bug. Either the comments or the code chunk in the first 20 lines of this file mess with the citations dialogue making it fail for some reason:
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# test2
<!-- badges: start -->
<!-- badges: end -->
The goal of test2 is to ...
changed the title [-]No sign of Citation interface in some projects/files[/-][+]No sign of Citation interface after opening README.Rmd template and similar files in visual mode[/+]on May 20, 2022
Good news: this edge-case but important bug fixed in the latest daily version. Great job. A similarly important and annoying bug that is not yet fixed is #11313. I will comment on that as I see it as a major regression that for sure is reproducible and will bite lots of people.
@Robinlovelace Thank you for checking! Glad to hear it's working. I've also updated the other issue, and reached out internally for some more help. ("I don't know what I'm doing" is implied, so I won't say so outright.)
Activity
Robinlovelace commentedon May 12, 2022
Interestingly I get citations when creating a new Quarto project. Will try creating a new R project now, guess it may be due to previous session info from previous project sessions.
[-]No sign of Citation interface[/-][+]No sign of Citation interface in some projects[/+]Robinlovelace commentedon May 12, 2022
Update: I tried removing all files in
.Rproj.userand re-opening the project. That didn't fix it.[-]No sign of Citation interface in some projects[/-][+]No sign of Citation interface in some projects/files[/+]Robinlovelace commentedon May 12, 2022
There is definitely some weird inconsistent behaviour going on here. I create a new .Rmd document and citations pop-up fine. But when editing the file in which the citations failed previously there seems to be no way to add citations. Reporting here in case of use/interest.
Robinlovelace commentedon May 20, 2022
Heads-up @ronblum I have just managed to reproduce this in the following environment:
Reprex in following comment.
Robinlovelace commentedon May 20, 2022
usethis::create_package("testpkg")usethis::use_readme_rmd()inside the new projectRobinlovelace commentedon May 20, 2022
vokoscreenNG-2022-05-20_21-51-13.mp4
Illustration of this.
Robinlovelace commentedon May 20, 2022
Update: other .Rmd files in the same project have the same issue.
Robinlovelace commentedon May 20, 2022
When creating a new project the citation options are there in a totally blank .Rmd doc:
Robinlovelace commentedon May 20, 2022
OK progress: exactly the same file and project prevent citations being added when the contents of README.Rmd are overwritten by
usethis::use_readme_rmd().Robinlovelace commentedon May 20, 2022
Bingo, Pretty sure I've found the cause of this bug. Either the comments or the code chunk in the first 20 lines of this file mess with the citations dialogue making it fail for some reason:
[-]No sign of Citation interface in some projects/files[/-][+]No sign of Citation interface after opening README.Rmd template and similar files in visual mode[/+]8 remaining items
ronblum commentedon May 24, 2022
Created #11279 for the second issue (which is related to #10075).
jjallaire commentedon Jun 14, 2022
There was an issue where there are no citations available in README files. This has been addressed here: 36db347
Robinlovelace commentedon Jun 14, 2022
I can give it a spin. Thanks JJ!
ronblum commentedon Jun 15, 2022
FWIW, this now works in RStudio Desktop 2022.06.0-daily+528 on MacOS 12.5.
I'm marking this as verified, but @Robinlovelace it would be great let us know if it works for you, as well!
Robinlovelace commentedon Jun 15, 2022
Good news: this edge-case but important bug fixed in the latest daily version. Great job. A similarly important and annoying bug that is not yet fixed is #11313. I will comment on that as I see it as a major regression that for sure is reproducible and will bite lots of people.
ronblum commentedon Jun 16, 2022
@Robinlovelace Thank you for checking! Glad to hear it's working. I've also updated the other issue, and reached out internally for some more help. ("I don't know what I'm doing" is implied, so I won't say so outright.)