-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Find/Replace doesn't work with gsub statements #14704
Comments
@baderstine Thank you for raising this! I can't reproduce this, though. Can you provide a minimal example of an R Markdown file that causes the failure? It'll help with trying to reproduce, in case I'm not using the code in a way that causes the problem. |
I just updated to RStudio version 2024.04.1 Build 748 and that seemed to fix it. Nevermind! |
@baderstine That's great! Though if the problem returns, please let us know. |
ah no, this is actually just me being an idiot (PEBCAK). If you try to use keyboard shortcuts for almost everything, you can get tripped up... Steps to reproduce (On a Mac):
What i should have done in step 5 is hit tab a few more times to move selection over to the "replace" button and then hit enter. |
@baderstine Ah! Honestly, I'm sure that I've done the same, too. 🙂 Also, TIL the acronym PEBCAK. |
System details
Steps to reproduce the problem
In a .Rmd file containing a gsub function call.
e.g.,
gsub("blah","","sdfoiwje")
In "Source" view, Edit > Replace and Find
Search for "," and attempt to replace it with ", " (i.e., add a space after the comma).
Describe the problem in detail
When you click replace, it doesn't actually change anything.
Describe the behavior you expected
I would expect this code to become:
gsub("blah", "", "sdfoiwje")
The text was updated successfully, but these errors were encountered: