How to remove doucment outline for function

a <- tryCatch(
  anova(fit) %>% 
    as.data.frame(),
  error = function(cond){
    p_nonlinear <- "Not Available"
    return(p_nonlinear)
  }
)
p_nonlinear <- tryCatch(
  anova(fit) %>% 
    as.data.frame(),
  error = function(cond){
    p_nonlinear <- "Not Available"
    return(p_nonlinear)
  }
)

This is the code i wrote in my rstudio. However, in the document outline, it shows this


This makes the doucment outline show outline that i do not want. I am wondering that is there any way to remove the doucment outline for R function in the Rstudio?

This is a RStudio IDE feature. I don't know if it can be controlled. I moved to RStudio category.

You can also look into GitHub - rstudio/rstudio: RStudio is an integrated development environment (IDE) for R to find if there is already a report or a related feature request for such control.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.