Running examples in 'horseshoe-Ex.R' failed
The error most likely occurred in:

> ### Name: HS.normal.means
> ### Title: The horseshoe prior for the sparse normal means problem
> ### Aliases: HS.normal.means
> 
> ### ** Examples
> 
> #Empirical Bayes example with 20 signals, rest is noise
> #Posterior mean for the signals is plotted
> #And variable selection is performed using the credible intervals
> #And the credible intervals are plotted
> truth <- c(rep(0, 80), rep(8, 20))
> data <-  truth + rnorm(100, 1)
> tau.hat <- HS.MMLE(data, Sigma2 = 1)
> res.HS1 <- HS.normal.means(data, method.tau = "fixed", tau = tau.hat,
+ method.sigma = "fixed", Sigma2 = 1)
[1] 1000
[1] 2000
[1] 3000
[1] 4000
[1] 5000
[1] 6000
> #Plot the posterior mean against the data (signals in blue)
> plot(data, res.HS1$BetaHat, col = c(rep("black", 80), rep("blue", 20)))
> #Find the selected betas (ideally, the last 20 are equal to 1)
> HS.var.select(res.HS1, data, method = "intervals")
  [1] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
 [38] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0
 [75] 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
> #Plot the credible intervals
> library(Hmisc)
Loading required package: lattice
Loading required package: survival
Loading required package: Formula
Loading required package: ggplot2
Error: package or namespace load failed for 'Hmisc' in namespaceExport(ns, exports):
 undefined exports: %s!=%, %s!==%, %s+%, %s<%, %s<=%, %s==%, %s===%, %s>%, %s>=%, %stri!=%, %stri!==%, %stri+%, %stri<%, %stri<=%, %stri==%, %stri===%, %stri>%, %stri>=%, stri_datetime_add<-, stri_sub<-, stri_subset<-, stri_subset_charclass<-, stri_subset_coll<-, stri_subset_fixed<-, stri_subset_regex<-, stri_c, stri_c_list, stri_cmp, stri_cmp_eq, stri_cmp_equiv, stri_cmp_ge, stri_cmp_gt, stri_cmp_le, stri_cmp_lt, stri_cmp_neq, stri_cmp_nequiv, stri_compare, stri_conv, stri_count, stri_count_boundaries, stri_count_charclass, stri_count_coll, stri_count_fixed, stri_count_regex, stri_count_words, stri_datetime_add, stri_datetime_create, stri_datetime_fields, stri_datetime_format, stri_datetime_fstr, stri_datetime_now, stri_datetime_parse, stri_datetime_symbols, stri_detect, stri_detect_charclass, stri_detect_coll, stri_detect_fixed, stri_detect_regex, stri_dup, stri_duplicated, stri_duplicated_any, stri
Execution halted