Running examples in ‘tableParser-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: table2matrix
> ### Title: table2matrix
> ### Aliases: table2matrix
> 
> ### ** Examples
> 
> ## - Download example DOCX file
> d<-'https://github.com/ingmarboeschen/tableParser/raw/refs/heads/main/tableExamples.docx'
> download.file(d,paste0(tempdir(),"/","tableExamples.docx"))
trying URL 'https://github.com/ingmarboeschen/tableParser/raw/refs/heads/main/tableExamples.docx'
Content type 'application/octet-stream' length 9048 bytes
==================================================
downloaded 9048 bytes

> 
> # Extract tables from example file as matrices
> table2matrix(paste0(tempdir(),"/","tableExamples.docx"))
$`Table 1`
     [,1]       [,2]       [,3]      
[1,] "Column A" "Column B" "Column C"
[2,] "1"        "3"        "A"       
[3,] "2"        "4"        "B"       
attr(,"caption")
[1] "Single-way matrix example."
attr(,"footer")
[1] ""
attr(,"class")
[1] "tabled results"

$`Table 2`
     [,1]    [,2]       [,3]      
[1,] ""      "Column A" "Column B"
[2,] "Row A" "1"        "A"       
[3,] "Row B" "2"        "B"       
attr(,"caption")
[1] "Multi-way matrix example."
attr(,"footer")
[1] ""
attr(,"class")
[1] "tabled results"

$`Table 3`
     [,1]            [,2]            [,3]                 [,4]              
[1,] "Variable^bold" "Category^bold" "Frequency (%)^bold" "Mean (SD) Income"
[2,] "Age"           "20-25"         "78 (39.79)"         "1,345 (250)"     
[3,] ""              "26-31"         "65 (33.16)"         "1,825 (535)"     
[4,] ""              "32 and older"  "53 (27.05)"         "2,315 (930)"     
[5,] "Gender"        "Men"           "97 (49.49)"         "1,965 (550)"     
[6,] ""              "Women"         "99 (50.51)"         "1,685 (350)"     
attr(,"caption")
[1] "Table 1: An example of tabled descriptive statistics."
attr(,"footer")
[1] ""
attr(,"class")
[1] "tabled results"

$`Table 4`
     [,1]             [,2]        [,3]             [,4]        
[1,] "Variables^bold" "1^bold"    "2^bold"         "3^bold"    
[2,] "Mean"           "45 (11.2)" "5,200 (21,123)" "26.8 (5.2)"
[3,] "Median"         "40"        "3,200"          "25"        
[4,] "1. Gender"      "1"         ".38**"          ".04"       
[5,] "2. Income"      ""          "1"              ".21*"      
[6,] "3. Ext."        ""          ""               ".87"       
attr(,"caption")
[1] "Table 2: An example of tabled descriptive statistics and correlations with table notes."
attr(,"footer")
[1] "N=125, * p<.05, ** p<.01 Numbers in brackets represent standard deviations. Ext.: Extraversion."
attr(,"class")
[1] "correlation"

$`Table 5`
     [,1]                    [,2]                   [,3]          
[1,] "^bold"                 "Job performance^bold" ""            
[2,] "Variables^bold"        "Model 1^bold"         "Model 2^bold"
[3,] "Income"                "-0.26 (.16)"          "-0.39 (.21)" 
[4,] "Extraversion"          ""                     "0.12+ (.6)"  
[5,] "Income * Extraversion" ""                     ""            
[6,] "R2"                    "0.07"                 "0.22"        
[7,] "ΔR2"                   "0.07"                 "0.15"        
[8,] "ΔF"                    "2.16"                 "21.76**"     
     [,4]           
[1,] ""             
[2,] "Model 3^bold" 
[3,] "-0.36** (.1)" 
[4,] "0.16*** (.03)"
[5,] "-0.18** (.1)" 
[6,] "0.31"         
[7,] "0.9"          
[8,] "14.37*"       
attr(,"caption")
[1] "Table 3: An example of a multi model table with table notes."
attr(,"footer")
[1] "+ p=.075; * p<.05; ** p<.01; *** p<.001. Numbers in brackets represent standard errors."
attr(,"class")
[1] "multi-model with model statistics"

$`Table 6`
     [,1]            [,2]         [,3]       [,4]         [,5]         
[1,] "Variable^bold" "SSq^bold"   "df^bold"  "MSq^bold"   "F^bold"     
[2,] "Factor A"      "12^bold"    "2^bold"   "3^bold"     "9.09^bold"  
[3,] "Factor B"      "4.5^italic" "1^italic" "4.5^italic" "6.82^italic"
[4,] "Factor A * B"  "3"          "2"        "1.5"        "2.27"       
[5,] "Residuals"     "20"         "30"       "0.66"       ""           
[6,] "Total"         "39.5"       "35"       "1.13"       ""           
     [,6]        
[1,] "P(>F)^bold"
[2,] ".00^bold"  
[3,] ".01^italic"
[4,] ".12"       
[5,] ""          
[6,] ""          
attr(,"caption")
[1] "Table 4: An example of an ANOVA table with table notes."
attr(,"footer")
[1] "Italic values are p<.05. Bold valus are significant with p<.01."
attr(,"class")
[1] "tabled results"

> 
> ## - Download example HTML file
> h<-'https://github.com/ingmarboeschen/tableParser/raw/refs/heads/main/tableExamples.html'
> download.file(h,paste0(tempdir(),"/","tableExamples.html"))
trying URL 'https://github.com/ingmarboeschen/tableParser/raw/refs/heads/main/tableExamples.html'
Content type 'text/plain; charset=utf-8' length 50013 bytes (48 KB)
==================================================
downloaded 48 KB

> 
> # Extract tables from example file as matrices
> table2matrix(paste0(tempdir(),"/","tableExamples.html"),rm.html=TRUE)
$`Table 1`
     [,1]       [,2]       [,3]      
[1,] "Column A" "Column B" "Column C"
[2,] "1"        "3"        "A"       
[3,] "2"        "4"        "B"       
attr(,"class")
[1] "tabled results"
attr(,"caption")
[1] "Single-way matrix example."
attr(,"footer")
[1] ""

$`Table 2`
     [,1]    [,2]       [,3]      
[1,] ""      "Column A" "Column B"
[2,] "Row A" "1"        "A"       
[3,] "Row B" "2"        "B"       
attr(,"class")
[1] "tabled results"
attr(,"caption")
[1] "Multi-way matrix example."
attr(,"footer")
[1] ""

$`Table 3`
     [,1]       [,2]           [,3]            [,4]              
[1,] "Variable" "Category"     "Frequency (%)" "Mean (SD) Income"
[2,] "Age"      "20-25"        "78 (39.79)"    "1,345 (250)"     
[3,] ""         "26-31"        "65 (33.16)"    "1,825 (535)"     
[4,] ""         "32 and older" "53 (27.05)"    "2,315 (930)"     
[5,] "Gender"   "Men"          "97 (49.49)"    "1,965 (550)"     
[6,] ""         "Women"        "99 (50.51)"    "1,685 (350)"     
attr(,"class")
[1] "tabled results"
attr(,"caption")
[1] "Table 1: An example of tabled descriptive statistics."
attr(,"footer")
[1] ""

$`Table 4`
     [,1]        [,2]        [,3]             [,4]        
[1,] "Variables" "1^bold"    "2^bold"         "3^bold"    
[2,] "Mean"      "45 (11.2)" "5,200 (21,123)" "26.8 (5.2)"
[3,] "Median"    "40"        "3,200"          "25"        
[4,] "1. Gender" "1"         ".38**"          ".04"       
[5,] "2. Income" ""          "1"              ".21*"      
[6,] "3. Ext."   ""          ""               ".87"       
attr(,"class")
[1] "matrix"
attr(,"caption")
[1] "Table 2: An example of tabled descriptive statistics and correlations with table notes."
attr(,"footer")
[1] "N=125, * p<.05, ** p<.01 Numbers in brackets represent standard deviations. Ext.: Extraversion"

$`Table 5`
     [,1]                    [,2]                           [,3]          
[1,] "Variables"             "Job performance Model 1^bold" "Model 2^bold"
[2,] "Income"                "-0.26 (.16)"                  "-0.39 (.21)" 
[3,] "Extraversion"          ""                             "0.12^+ (.6)" 
[4,] "Income * Extraversion" ""                             ""            
[5,] "R2"                    "0.07"                         "0.22"        
[6,] "ΔR2"                   "0.07"                         "0.15"        
[7,] "ΔF"                    "2.16"                         "21.76**"     
     [,4]           
[1,] "Model 3^bold" 
[2,] "-0.36** (.1)" 
[3,] "0.16*** (.03)"
[4,] "-0.18** (.1)" 
[5,] "0.31"         
[6,] "0.9"          
[7,] "14.37*"       
attr(,"class")
[1] "multi-model with model statistics"
attr(,"caption")
[1] "Table 3: An example of a multi model table with table notes."
attr(,"footer")
[1] "+ p=.075; * p<.05; ** p<.01; *** p<.001 Numbers in brackets represent standard errors."

$`Table 6`
     [,1]           [,2]         [,3]       [,4]         [,5]        [,6]      
[1,] "Variable"     "SSq"        "df"       "MSq"        "F"         "P(>F)"   
[2,] "Factor A"     "12^bold"    "2^bold"   "3^bold"     "9.09^bold" ".00^bold"
[3,] "Factor B"     "4.5^italic" "1^italic" "4.5^italic" "6.82"      ".01"     
[4,] "Factor A * B" "3"          "2"        "1.5"        "2.27"      ".12"     
[5,] "Residuals"    "20"         "30"       "0.66"       ""          ""        
[6,] "Total"        "39.5"       "35"       "1.13"       ""          ""        
attr(,"class")
[1] "tabled results"
attr(,"caption")
[1] "Table 4: An example of an ANOVA table with table notes."
attr(,"footer")
[1] "Italic values are p<.05. Bold valus are significant with p<.01."

> 
> ## - Download example PDF file
> p<-'https://github.com/ingmarboeschen/tableParser/raw/refs/heads/main/tableExamples.pdf'
> download.file(p,paste0(tempdir(),"/","tableExamples.pdf"))
trying URL 'https://github.com/ingmarboeschen/tableParser/raw/refs/heads/main/tableExamples.pdf'
Warning in download.file(p, paste0(tempdir(), "/", "tableExamples.pdf")) :
  cannot open URL 'https://github.com/ingmarboeschen/tableParser/raw/refs/heads/main/tableExamples.pdf': HTTP status was '502 Bad Gateway'
Error in download.file(p, paste0(tempdir(), "/", "tableExamples.pdf")) : 
  cannot open URL 'https://github.com/ingmarboeschen/tableParser/raw/refs/heads/main/tableExamples.pdf'
Execution halted