How can you get links to tabbed sections to open and go to that tab?

I am trying to write a report that has links to various sections that are tabbed away, owever these links only work if the tabbed section is already open to that section.
Below is some code and had a header with an empty section open by default to hide the reports details and another section with all those details.
The links only go to the section if that sections is already open.
Is there someway to get the report to open that section when clicking on the link?

# Main Header  

  * Details 1 [link1](#link1) in sub section 2.
  * Details 2 [link2](#link2) in sub section 2.
  * Details 3 [link3](#link3) in sub section 2.
  * Details 4 [link4](#link4) in sub section 2.

# Click Here for more info {.tabset}

## Sub section 1

## Sub section 2

### Details 1  {#link1}

```{r}
hist(cars$speed)
```

### Details 2 {#link2} 

```{r}
hist(cars$speed)
```

### Details 3 {#link3}

```{r}
hist(cars$speed)
```

### Details 4 {#link4}

```{r}
hist(cars$speed)
```
1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.