'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
Running examples in ‘hsm-Ex.R’ failed
The error most likely occurred in:

> ### Name: hsm
> ### Title: Solves proximal operator of latent group lasso in Hierarchical
> ###   Sparse Modeling.
> ### Aliases: hsm
> 
> ### ** Examples
> 
> # The following example appears in Figure 7 of Yan & Bien (2015).
> # Generate map defining DAG.
> map <- matrix(0, ncol=2, nrow=8)
> map[1, ] <- c(1, 2)
> map[2, ] <- c(2, 7)
> map[3, ] <- c(3, 4)
> map[4, ] <- c(4, 6)
> map[5, ] <- c(6, 7)
> map[6, ] <- c(6, 8)
> map[7, ] <- c(3, 5)
> map[8, ] <- c(5, 6)
> # Assume one parameter per node.
> # Let parameter and node share the same index.
> var <- as.list(1:8)
> set.seed(100)
> y <- rnorm(8)
> result <- hsm(y=y, lam=0.5, map=map, var=var, get.penalval=TRUE)
Error in !index %in% map[, 1] || is.na(map[which(map[, 1] == index), 2]) : 
  'length = 2' in coercion to 'logical(1)'
Calls: hsm -> paths -> path.find
Execution halted
Error(s) in re-building vignettes:
--- re-building ‘hsm-vignette.Rmd’ using rmarkdown
Quitting from lines 139-144 (hsm-vignette.Rmd) 
Error: processing vignette 'hsm-vignette.Rmd' failed with diagnostics:
'length = 2' in coercion to 'logical(1)'
--- failed re-building ‘hsm-vignette.Rmd’

SUMMARY: processing the following file failed:
  ‘hsm-vignette.Rmd’

Error: Vignette re-building failed.
Execution halted
'LazyData' is specified without a 'data' directory
Running examples in ‘hsm-Ex.R’ failed
The error most likely occurred in:

> ### Name: hsm
> ### Title: Solves proximal operator of latent group lasso in Hierarchical
> ###   Sparse Modeling.
> ### Aliases: hsm
> 
> ### ** Examples
> 
> # The following example appears in Figure 7 of Yan & Bien (2015).
> # Generate map defining DAG.
> map <- matrix(0, ncol=2, nrow=8)
> map[1, ] <- c(1, 2)
> map[2, ] <- c(2, 7)
> map[3, ] <- c(3, 4)
> map[4, ] <- c(4, 6)
> map[5, ] <- c(6, 7)
> map[6, ] <- c(6, 8)
> map[7, ] <- c(3, 5)
> map[8, ] <- c(5, 6)
> # Assume one parameter per node.
> # Let parameter and node share the same index.
> var <- as.list(1:8)
> set.seed(100)
> y <- rnorm(8)
> result <- hsm(y=y, lam=0.5, map=map, var=var, get.penalval=TRUE)
Error in !index %in% map[, 1] || is.na(map[which(map[, 1] == index), 2]) : 
  'length = 2' in coercion to 'logical(1)'
Calls: hsm -> paths -> path.find
Execution halted
Error(s) in re-building vignettes:
--- re-building ‘hsm-vignette.Rmd’ using rmarkdown
Quitting from lines 139-144 (hsm-vignette.Rmd) 
Error: processing vignette 'hsm-vignette.Rmd' failed with diagnostics:
'length = 2' in coercion to 'logical(1)'
--- failed re-building ‘hsm-vignette.Rmd’

SUMMARY: processing the following file failed:
  ‘hsm-vignette.Rmd’

Error: Vignette re-building failed.
Execution halted
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory