You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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?)
Expected or desired behavior:
Expected to see in the outline:
What I see
var2
,another variable
,what about this
and `var4} are missing from the outline.The text was updated successfully, but these errors were encountered: