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

Ark: Blocks in function calls should be included in outline #5241

Open
rmflight opened this issue Nov 1, 2024 · 0 comments
Open

Ark: Blocks in function calls should be included in outline #5241

rmflight opened this issue Nov 1, 2024 · 0 comments
Labels
area: kernels Issues related to Jupyter kernels and LSP servers lang: r

Comments

@rmflight
Copy link

rmflight commented Nov 1, 2024

System details:

Positron and OS details:

Positron Version: 2024.11.0 build 69
Code - OSS Version: 1.93.0
Commit: 4cde19a
Date: 2024-10-21T02:40:21.993Z
Electron: 30.4.0
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Linux x64 6.9.3-76060903-generic

Interpreter details:

R 4.4.1

Describe the issue:

When creating a targets workflow using tarchetypes::tar_assign , items that should be in the outline pane (thanks for the recent work on parsing outline items!) aren't.

Steps to reproduce the issue:

Create an R file with these contents (and tarchetypes installed, maybe?)

# this is an item -----
source("./packages.R")

## and this is another -----
var1 = rnorm(200)

tar_assign(
{
  # another variable -----
  var2 = rnorm(400) |>
    tar_target()
}
)

var3 = function(){
  # does this work? -----
  something = "crap"
}

tar_plan(
  # what about this ------
  var4 = tar_target("crap")
)

Expected or desired behavior:

Expected to see in the outline:

this is an item
and this is another
{} var1
another variable
{} var2
var3
  does this work
  {} something
what about this
{} var4

What I see

var2, another variable, what about this and `var4} are missing from the outline.

this is an item
and this is another
{} var1
var3
  does this work
  {} something

Image

@lionel- lionel- changed the title outline items missing when wrapped in tar_assign Ark: Blocks in function calls should be included in outline Nov 4, 2024
@lionel- lionel- added lang: r area: kernels Issues related to Jupyter kernels and LSP servers labels Nov 4, 2024
@lionel- lionel- added this to the 2025.01.0 Pre-Release milestone Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: kernels Issues related to Jupyter kernels and LSP servers lang: r
Projects
None yet
Development

No branches or pull requests

2 participants