# Complex Chunk Options
Test parsing and formatting of complex R expressions in chunk options.
## Simple Options
```{r}
#| label: simple-chunk
#| echo: true
#| warning: false
# Simple options should convert to hashpipe
plot(1:10)
```
## Nested Function Calls
```{r, dependson=c("foo", "bar")}
#| label: deps-chunk
# Complex R function calls with commas inside should stay inline
result <- combine_data(foo, bar)
```
## File Paths
```{r, cache.path=file.path("cache", "subdir")}
#| label: cache-chunk
# Function calls with nested strings
expensive_computation()
```
## Deeply Nested
```{r, data=list(a=c(1,2), b=c(3,4))}
#| label: nested-chunk
# Multiple levels of nesting
process_data(data)
```
## Mixed Simple and Complex
```{r, dependson=c("deps-chunk", "cache-chunk")}
#| label: mixed-chunk
#| echo: true
#| eval: false
#| warning: false
# Mix of simple (hashpipe) and complex (inline) options
final_result <- analyze(result)
```
## Brackets and Braces
```{r, rows=df[1:10, ], config=list(timeout=30, retries=3)}
#| label: bracket-chunk
# Different bracket types: indexing and list construction
subset_analysis(rows, config)
```