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

Show parameters inside function in Send Regex To Console #18

Open
gorkang opened this issue May 29, 2019 · 1 comment
Open

Show parameters inside function in Send Regex To Console #18

gorkang opened this issue May 29, 2019 · 1 comment

Comments

@gorkang
Copy link

gorkang commented May 29, 2019

When hitting "Send Regex To Console" in the Output tab, the console shows something like the following:

pattern <- "\w+ " # perl=TRUE
replacement <- "NO "

Wouldn't be better to integrate the parameters into the actual function used? In this case, it could translate into:

sub(pattern = "\w+",
replacement = "NO ",
x = readr::read_file("LICENSE"),
perl = TRUE)

Or maybe:

sub(pattern = "\w+",
replacement = "NO ",
x = YOUR_CHARACTER_VECTOR_HERE,
perl = TRUE)

Thanks for the awesome package!

@gadenbuie
Copy link
Owner

Sorry it's been so long to get to this. This is a great idea and something I'll think about doing in the future. Thanks for the suggestion!

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

No branches or pull requests

2 participants