This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Example handling complex filter scenarios | |
| library(teal) | |
| library(teal.modules.general) | |
| library(teal.data) | |
| # Data with complex relationships for bookmark testing | |
| complex_data <- teal_data() | |
| complex_data <- within(complex_data, { | |
| # Parent dataset | |
| ADSL <- data.frame( | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Ensure bookmark compatibility across teal versions | |
| # Document teal version when creating important bookmarks | |
| # Check current teal version | |
| packageVersion("teal") | |
| packageVersion("teal.modules.general") | |
| packageVersion("teal.modules.clinical") | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Problem: Bookmark created with specific data may not work if data changes | |
| # Solution: Ensure data consistency or version control | |
| # Example of data-dependent bookmark issue: | |
| library(teal) | |
| library(teal.data) | |
| # Original data (when bookmark was created) | |
| original_data <- teal_data() | |
| original_data <- within(original_data, { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Practical example of bookmark workflow | |
| library(teal) | |
| library(teal.modules.general) | |
| library(teal.data) | |
| library(pharmaverseadam) | |
| data("adsl", package = "pharmaverseadam") | |
| data("adae", package = "pharmaverseadam") | |
| # Create application for bookmark workflow demonstration | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Example showing the breadth of bookmarked state | |
| library(teal) | |
| library(teal.modules.general) | |
| library(teal.data) | |
| library(pharmaverseadam) | |
| data("adsl", package = "pharmaverseadam") | |
| data("adae", package = "pharmaverseadam") | |
| # Create data with complex filtering scenarios | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | library(teal) | |
| library(teal.modules.general) | |
| library(teal.data) | |
| library(pharmaverseadam) | |
| # Enhanced bookmarking example with multiple modules | |
| data("adsl", package = "pharmaverseadam") | |
| data("adae", package = "pharmaverseadam") | |
| data("advs", package = "pharmaverseadam") | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | library(teal) | |
| library(teal.modules.general) | |
| library(teal.data) | |
| library(pharmaverseadam) | |
| # Load data for bookmarking demonstration | |
| data("adsl", package = "pharmaverseadam") | |
| data("adae", package = "pharmaverseadam") | |
| # Create teal_data object with join keys | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Practical example of bookmark workflow | |
| library(teal) | |
| library(teal.modules.general) | |
| library(teal.data) | |
| library(pharmaverseadam) | |
| data("adsl", package = "pharmaverseadam") | |
| data("adae", package = "pharmaverseadam") | |
| # Create application for bookmark workflow demonstration | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Example showing the breadth of bookmarked state | |
| library(teal) | |
| library(teal.modules.general) | |
| library(teal.data) | |
| library(pharmaverseadam) | |
| data("adsl", package = "pharmaverseadam") | |
| data("adae", package = "pharmaverseadam") | |
| # Create data with complex filtering scenarios | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | library(teal) | |
| library(teal.modules.general) | |
| library(teal.data) | |
| library(pharmaverseadam) | |
| # Enhanced bookmarking example with multiple modules | |
| data("adsl", package = "pharmaverseadam") | |
| data("adae", package = "pharmaverseadam") | |
| data("advs", package = "pharmaverseadam") | 
NewerOlder