-
Notifications
You must be signed in to change notification settings - Fork 34
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
Automatically update chunk name #54
Comments
first the low hanging fruit Q3: we didn't write a function for this, but it shouldn't be a problem to create one. i am not sure how you are creating the new chunks, since there are several ways to do this now. can you explain again what addins/functions you are using? using the addin if you have two chunks lets say
and remove the first one
then move the cursor above the remaining chunk and add a chunk the counter will work right
but if the cursor is below the counter will not pick it up that it needs to skip 02
on the other hand the chunkname first counts how many chunks you have and adjusts the Since chunkname came a bit later in development than chunk, they arent synched yet, but i'll add it to the list of issues to solve for the next release. thank you for bringing up this issue! |
Thanks for the reply! Very helpful. |
There must be some answers to this in {namer}: https://github.com/lockedata/namer |
This feature predated {namer}. It is on the TODO list of things to fix |
Thanks for the great tool!
Q1: Suppose I created the following two chunks:
```{r MyOwesomeCodeChunk1} plot(cars) ```
```{r MyOwesomeCodeChunk2} plot(cars) ```
I deleted the first code chunk, and then create a new chunk.
The new chunk automatically get a name as MyOwesomeCodeChunk2. However, the previous second chunk MyOwesomeCodeChunk2 (which is now the first chunk) stay as MyOwesomeCodeChunk2. Therefore, there are now two chunks with the same name as MyOwesomeCodeChunk2.
How to fix this?
Q2: Some of my chunks got names like MyOwesomeCodeChunk001, MyOwesomeCodeChunk002, ... some of them got names like MyOwesomeCodeChunk08, MyOwesomeCodeChunk09. How to fix them?
Q3: Can I automatically delet all the chunk names?
Q4: How to disable automatically naming chunk?
Thanks!
The text was updated successfully, but these errors were encountered: