Skip to content

Hide smart knit env values to prevent accidental deletion#1060

Merged
renkun-ken merged 2 commits intoREditorSupport:masterfrom
ElianHugh:rmd-env-fix
Apr 4, 2022
Merged

Hide smart knit env values to prevent accidental deletion#1060
renkun-ken merged 2 commits intoREditorSupport:masterfrom
ElianHugh:rmd-env-fix

Conversation

@ElianHugh
Copy link
Collaborator

Fix for #860.

Prevent the accidental deletion of env values necessary for smart knitting.

What problem did you solve?

Smart knitting will fail if the user attempts to delete the env values used for knitting. This PR makes it harder for users to accidentally delete these values.

(If you do not have screenshot) How can I check this pull request?

Try to knit the following:

```{r}
rm(list = ls(all.names = TRUE))
```

Copy link
Member

@renkun-ken renkun-ken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works nicely! LGTM.

@renkun-ken renkun-ken merged commit 89e9633 into REditorSupport:master Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants