Last updated: 2024-08-07

Checks: 7 0

Knit directory: fastTopics-experiments/analysis/

This reproducible R Markdown analysis was created with workflowr (version 1.7.1). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.

Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.

The command set.seed(1) was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.

Great job! Recording the operating system, R version, and package versions is critical for reproducibility.

Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.

Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.

The results in this page were generated with repository version 269b84d. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    analysis/.sos/
    Ignored:    data/20news-bydate/
    Ignored:    data/droplet.RData
    Ignored:    data/nips_1-17.mat
    Ignored:    data/pbmc_68k.RData
    Ignored:    output/droplet/fits-droplet.RData
    Ignored:    output/droplet/lda-droplet.RData
    Ignored:    output/newsgroups/de-newsgroups.RData
    Ignored:    output/newsgroups/fits-newsgroups.RData
    Ignored:    output/newsgroups/lda-newsgroups.RData
    Ignored:    output/newsgroups/rds/
    Ignored:    output/nips/fits-nips.RData
    Ignored:    output/nips/lda-nips.RData
    Ignored:    output/pbmc68k/fits-pbmc68k.RData
    Ignored:    output/pbmc68k/rds/

Untracked files:
    Untracked:  analysis/lda-eb-newsgroups-em-k=10.rds
    Untracked:  analysis/lda-eb-newsgroups-scd-ex-k=10.rds
    Untracked:  analysis/lda-newsgroups-em-k=10.rds
    Untracked:  analysis/lda-newsgroups-scd-ex-k=10.rds
    Untracked:  analysis/maptpx-newsgroups-em-k=10.rds
    Untracked:  analysis/maptpx-newsgroups-scd-ex-k=10.rds
    Untracked:  plots/

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


These are the previous versions of the repository in which changes were made to the R Markdown (analysis/newsgroups_more.Rmd) and HTML (docs/newsgroups_more.html) files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view the files as they were in that past version.

File Version Author Date Message
Rmd 269b84d Peter Carbonetto 2024-08-07 workflowr::wflow_publish("newsgroups_more.Rmd")

Here we take a closer look at some of the results on the newsgroups data.

Load the packages used in this analysis.

library(Matrix)
library(fastTopics)
library(ggplot2)
library(cowplot)
set.seed(1)

Load the newsgroups data.

load("../data/newsgroups.RData")

sessionInfo()
# R version 4.3.3 (2024-02-29)
# Platform: aarch64-apple-darwin20 (64-bit)
# Running under: macOS Sonoma 14.5
# 
# Matrix products: default
# BLAS:   /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib 
# LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.11.0
# 
# locale:
# [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
# 
# time zone: America/Chicago
# tzcode source: internal
# 
# attached base packages:
# [1] stats     graphics  grDevices utils     datasets  methods   base     
# 
# other attached packages:
# [1] cowplot_1.1.3      ggplot2_3.5.0      fastTopics_0.6-184 Matrix_1.6-5      
# 
# loaded via a namespace (and not attached):
#  [1] gtable_0.3.4        xfun_0.42           bslib_0.6.1        
#  [4] htmlwidgets_1.6.4   ggrepel_0.9.5       lattice_0.22-5     
#  [7] quadprog_1.5-8      vctrs_0.6.5         tools_4.3.3        
# [10] generics_0.1.3      parallel_4.3.3      tibble_3.2.1       
# [13] fansi_1.0.6         pkgconfig_2.0.3     data.table_1.15.2  
# [16] SQUAREM_2021.1      RcppParallel_5.1.7  lifecycle_1.0.4    
# [19] truncnorm_1.0-9     compiler_4.3.3      stringr_1.5.1      
# [22] git2r_0.33.0        progress_1.2.3      munsell_0.5.0      
# [25] RhpcBLASctl_0.23-42 httpuv_1.6.14       htmltools_0.5.7    
# [28] sass_0.4.8          yaml_2.3.8          lazyeval_0.2.2     
# [31] plotly_4.10.4       crayon_1.5.2        later_1.3.2        
# [34] pillar_1.9.0        jquerylib_0.1.4     whisker_0.4.1      
# [37] tidyr_1.3.1         uwot_0.1.16         cachem_1.0.8       
# [40] gtools_3.9.5        tidyselect_1.2.1    digest_0.6.34      
# [43] Rtsne_0.17          stringi_1.8.3       dplyr_1.1.4        
# [46] purrr_1.0.2         ashr_2.2-66         rprojroot_2.0.4    
# [49] fastmap_1.1.1       grid_4.3.3          colorspace_2.1-0   
# [52] cli_3.6.2           invgamma_1.1        magrittr_2.0.3     
# [55] utf8_1.2.4          withr_3.0.0         prettyunits_1.2.0  
# [58] scales_1.3.0        promises_1.2.1      rmarkdown_2.26     
# [61] httr_1.4.7          workflowr_1.7.1     hms_1.1.3          
# [64] pbapply_1.7-2       evaluate_0.23       knitr_1.45         
# [67] viridisLite_0.4.2   irlba_2.3.5.1       rlang_1.1.3        
# [70] Rcpp_1.0.12         mixsqp_0.3-54       glue_1.7.0         
# [73] jsonlite_1.8.8      R6_2.5.1            fs_1.6.3