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

Run line should load code chunk #27

Closed
Ikuyadeu opened this issue Oct 3, 2017 · 1 comment · Fixed by #31 or #32
Closed

Run line should load code chunk #27

Ikuyadeu opened this issue Oct 3, 2017 · 1 comment · Fixed by #31 or #32
Assignees

Comments

@Ikuyadeu
Copy link
Member

Ikuyadeu commented Oct 3, 2017

In #26, It's very useful function.

Okay, I found the way to run a line (just like RStudio, its Cmd + Enter, and the run source utility is useful. However, I'm wondering about running just individual code chunks, e.g.

code_chunk <- function(x) {
cat("I am a chunk")
}

code_chunk_2 <- x %>%
mutate(...) %>%
transmute(...)

If I play my cursor at the beginning of line 1 with the first code_chunk, and enter C-c (aka Ctrl+c, or some other shortcut, say to run a region, like Ctrl+r) then it would run all three lines at once (the whole chunk), and not run code_chunk_2, and if this could be done without necessarily highlighting the chunk prior to running the code.

Just wondering if you might have some insight on how this could be done, or alternately if this could be implemented in an update?

@Ladvien
Copy link
Collaborator

Ladvien commented Oct 27, 2017

I'm starting work on this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants