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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: multiFSSEMiPALM
> ### Title: multiFSSEMiPALM
> ### Aliases: multiFSSEMiPALM
> 
> ### ** Examples
> 
> seed = 1234
> N = 100                                           # sample size
> Ng = 5                                            # gene number
> Nk = 5 * 3                                        # eQTL number
> Ns = 1                                            # sparse ratio
> sigma2 = 0.01                                     # sigma2
> set.seed(seed)
> library(fssemR)
> data = randomFSSEMdata(n = N, p = Ng, k = Nk, sparse = Ns, df = 0.3, sigma2 = sigma2,
+                        u = 5, type = "DG", nhub = 1, dag = TRUE)
> ## If we assume that different condition has different genetics perturbations (eQTLs)
> ## gamma = cv.multiRegression(data$Data$X, data$Data$Y, data$Data$Sk, ngamma = 20, nfold = 5,
> ##                            N, Ng, Nk)
> gamma = 0.6784248     ## optimal gamma computed by cv.multiRegression
> fit   = multiRegression(data$Data$X, data$Data$Y, data$Data$Sk, gamma, N, Ng, Nk,
+                       trans = FALSE)
> Xs    = data$Data$X
> Ys    = data$Data$Y
> Sk    = data$Data$Sk
> 
> 
> cvfitc <- cv.multiFSSEMiPALM(Xs = Xs, Ys = Ys, Bs = fit$Bs, Fs = fit$Fs, Sk = Sk,
+                              sigma2 = fit$sigma2, nlambda = 5, nrho = 5,
+                              nfold = 5, p = Ng, q = Nk, wt = TRUE)
Error in sample.int(length(x), size, replace, prob) : 
  invalid 'size' argument
Calls: cv.multiFSSEMiPALM -> sample -> sample.int
Execution halted
'LazyData' is specified without a 'data' directory
Running examples in ‘fssemR-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: multiFSSEMiPALM
> ### Title: multiFSSEMiPALM
> ### Aliases: multiFSSEMiPALM
> 
> ### ** Examples
> 
> seed = 1234
> N = 100                                           # sample size
> Ng = 5                                            # gene number
> Nk = 5 * 3                                        # eQTL number
> Ns = 1                                            # sparse ratio
> sigma2 = 0.01                                     # sigma2
> set.seed(seed)
> library(fssemR)
> data = randomFSSEMdata(n = N, p = Ng, k = Nk, sparse = Ns, df = 0.3, sigma2 = sigma2,
+                        u = 5, type = "DG", nhub = 1, dag = TRUE)
> ## If we assume that different condition has different genetics perturbations (eQTLs)
> ## gamma = cv.multiRegression(data$Data$X, data$Data$Y, data$Data$Sk, ngamma = 20, nfold = 5,
> ##                            N, Ng, Nk)
> gamma = 0.6784248     ## optimal gamma computed by cv.multiRegression
> fit   = multiRegression(data$Data$X, data$Data$Y, data$Data$Sk, gamma, N, Ng, Nk,
+                       trans = FALSE)
> Xs    = data$Data$X
> Ys    = data$Data$Y
> Sk    = data$Data$Sk
> 
> 
> cvfitc <- cv.multiFSSEMiPALM(Xs = Xs, Ys = Ys, Bs = fit$Bs, Fs = fit$Fs, Sk = Sk,
+                              sigma2 = fit$sigma2, nlambda = 5, nrho = 5,
+                              nfold = 5, p = Ng, q = Nk, wt = TRUE)
Error in sample.int(length(x), size, replace, prob) : 
  invalid 'size' argument
Calls: cv.multiFSSEMiPALM -> sample -> sample.int
Execution halted
installed size is 13.1Mb
  sub-directories of 1Mb or more:
    libs  12.4Mb
'LazyData' is specified without a 'data' directory
Running examples in ‘fssemR-Ex.R’ failed
The error most likely occurred in:

> ### Name: multiFSSEMiPALM
> ### Title: multiFSSEMiPALM
> ### Aliases: multiFSSEMiPALM
> 
> ### ** Examples
> 
> seed = 1234
> N = 100                                           # sample size
> Ng = 5                                            # gene number
> Nk = 5 * 3                                        # eQTL number
> Ns = 1                                            # sparse ratio
> sigma2 = 0.01                                     # sigma2
> set.seed(seed)
> library(fssemR)
> data = randomFSSEMdata(n = N, p = Ng, k = Nk, sparse = Ns, df = 0.3, sigma2 = sigma2,
+                        u = 5, type = "DG", nhub = 1, dag = TRUE)
> ## If we assume that different condition has different genetics perturbations (eQTLs)
> ## gamma = cv.multiRegression(data$Data$X, data$Data$Y, data$Data$Sk, ngamma = 20, nfold = 5,
> ##                            N, Ng, Nk)
> gamma = 0.6784248     ## optimal gamma computed by cv.multiRegression
> fit   = multiRegression(data$Data$X, data$Data$Y, data$Data$Sk, gamma, N, Ng, Nk,
+                       trans = FALSE)
> Xs    = data$Data$X
> Ys    = data$Data$Y
> Sk    = data$Data$Sk
> 
> 
> cvfitc <- cv.multiFSSEMiPALM(Xs = Xs, Ys = Ys, Bs = fit$Bs, Fs = fit$Fs, Sk = Sk,
+                              sigma2 = fit$sigma2, nlambda = 5, nrho = 5,
+                              nfold = 5, p = Ng, q = Nk, wt = TRUE)
Error in sample.int(length(x), size, replace, prob) : 
  invalid 'size' argument
Calls: cv.multiFSSEMiPALM -> sample -> sample.int
Execution halted
'LazyData' is specified without a 'data' directory
Running examples in ‘fssemR-Ex.R’ failed
The error most likely occurred in:

> ### Name: multiFSSEMiPALM
> ### Title: multiFSSEMiPALM
> ### Aliases: multiFSSEMiPALM
> 
> ### ** Examples
> 
> seed = 1234
> N = 100                                           # sample size
> Ng = 5                                            # gene number
> Nk = 5 * 3                                        # eQTL number
> Ns = 1                                            # sparse ratio
> sigma2 = 0.01                                     # sigma2
> set.seed(seed)
> library(fssemR)
> data = randomFSSEMdata(n = N, p = Ng, k = Nk, sparse = Ns, df = 0.3, sigma2 = sigma2,
+                        u = 5, type = "DG", nhub = 1, dag = TRUE)
> ## If we assume that different condition has different genetics perturbations (eQTLs)
> ## gamma = cv.multiRegression(data$Data$X, data$Data$Y, data$Data$Sk, ngamma = 20, nfold = 5,
> ##                            N, Ng, Nk)
> gamma = 0.6784248     ## optimal gamma computed by cv.multiRegression
> fit   = multiRegression(data$Data$X, data$Data$Y, data$Data$Sk, gamma, N, Ng, Nk,
+                       trans = FALSE)
> Xs    = data$Data$X
> Ys    = data$Data$Y
> Sk    = data$Data$Sk
> 
> 
> cvfitc <- cv.multiFSSEMiPALM(Xs = Xs, Ys = Ys, Bs = fit$Bs, Fs = fit$Fs, Sk = Sk,
+                              sigma2 = fit$sigma2, nlambda = 5, nrho = 5,
+                              nfold = 5, p = Ng, q = Nk, wt = TRUE)
Error in sample.int(length(x), size, replace, prob) : 
  invalid 'size' argument
Calls: cv.multiFSSEMiPALM -> sample -> sample.int
Execution halted
'LazyData' is specified without a 'data' directory
Running examples in 'fssemR-Ex.R' failed
The error most likely occurred in:

> ### Name: multiFSSEMiPALM
> ### Title: multiFSSEMiPALM
> ### Aliases: multiFSSEMiPALM
> 
> ### ** Examples
> 
> seed = 1234
> N = 100                                           # sample size
> Ng = 5                                            # gene number
> Nk = 5 * 3                                        # eQTL number
> Ns = 1                                            # sparse ratio
> sigma2 = 0.01                                     # sigma2
> set.seed(seed)
> library(fssemR)
> data = randomFSSEMdata(n = N, p = Ng, k = Nk, sparse = Ns, df = 0.3, sigma2 = sigma2,
+                        u = 5, type = "DG", nhub = 1, dag = TRUE)
> ## If we assume that different condition has different genetics perturbations (eQTLs)
> ## gamma = cv.multiRegression(data$Data$X, data$Data$Y, data$Data$Sk, ngamma = 20, nfold = 5,
> ##                            N, Ng, Nk)
> gamma = 0.6784248     ## optimal gamma computed by cv.multiRegression
> fit   = multiRegression(data$Data$X, data$Data$Y, data$Data$Sk, gamma, N, Ng, Nk,
+                       trans = FALSE)
> Xs    = data$Data$X
> Ys    = data$Data$Y
> Sk    = data$Data$Sk
> 
> 
> cvfitc <- cv.multiFSSEMiPALM(Xs = Xs, Ys = Ys, Bs = fit$Bs, Fs = fit$Fs, Sk = Sk,
+                              sigma2 = fit$sigma2, nlambda = 5, nrho = 5,
+                              nfold = 5, p = Ng, q = Nk, wt = TRUE)
Error in sample.int(length(x), size, replace, prob) : 
  invalid 'size' argument
Calls: cv.multiFSSEMiPALM -> sample -> sample.int
Execution halted
'LazyData' is specified without a 'data' directory
Running examples in 'fssemR-Ex.R' failed
The error most likely occurred in:

> ### Name: multiFSSEMiPALM
> ### Title: multiFSSEMiPALM
> ### Aliases: multiFSSEMiPALM
> 
> ### ** Examples
> 
> seed = 1234
> N = 100                                           # sample size
> Ng = 5                                            # gene number
> Nk = 5 * 3                                        # eQTL number
> Ns = 1                                            # sparse ratio
> sigma2 = 0.01                                     # sigma2
> set.seed(seed)
> library(fssemR)
> data = randomFSSEMdata(n = N, p = Ng, k = Nk, sparse = Ns, df = 0.3, sigma2 = sigma2,
+                        u = 5, type = "DG", nhub = 1, dag = TRUE)
> ## If we assume that different condition has different genetics perturbations (eQTLs)
> ## gamma = cv.multiRegression(data$Data$X, data$Data$Y, data$Data$Sk, ngamma = 20, nfold = 5,
> ##                            N, Ng, Nk)
> gamma = 0.6784248     ## optimal gamma computed by cv.multiRegression
> fit   = multiRegression(data$Data$X, data$Data$Y, data$Data$Sk, gamma, N, Ng, Nk,
+                       trans = FALSE)
> Xs    = data$Data$X
> Ys    = data$Data$Y
> Sk    = data$Data$Sk
> 
> 
> cvfitc <- cv.multiFSSEMiPALM(Xs = Xs, Ys = Ys, Bs = fit$Bs, Fs = fit$Fs, Sk = Sk,
+                              sigma2 = fit$sigma2, nlambda = 5, nrho = 5,
+                              nfold = 5, p = Ng, q = Nk, wt = TRUE)
Error in sample.int(length(x), size, replace, prob) : 
  invalid 'size' argument
Calls: cv.multiFSSEMiPALM -> sample -> sample.int
Execution halted
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
installed size is 16.0Mb
  sub-directories of 1Mb or more:
    libs  15.3Mb
'LazyData' is specified without a 'data' directory
installed size is 15.4Mb
  sub-directories of 1Mb or more:
    libs  14.7Mb
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
installed size is 15.4Mb
  sub-directories of 1Mb or more:
    libs  14.6Mb