FreeBSD failed to install WINS

Steps to reproduce the problem

JupyterLab install on FreeBSD.

Run JupyterLab on the background and connection is okay.

Install R and R kernel for JupyterLab.

R icon displayed in JupyterLab.

Describe the problem in detail

Installation of R package of WINS. Many related packaged failed to install.

also installing the dependencies ‘fracdiff’, ‘lmtest’, ‘timeDate’, ‘urca’, ‘zoo’, ‘RcppArmadillo’, ‘Deriv’, ‘forecast’, ‘modelr’, ‘microbenchmark’, ‘rbibutils’, ‘doBy’, ‘SparseM’, ‘MatrixModels’, ‘Rdpack’, ‘minqa’, ‘nloptr’, ‘reformulas’, ‘RcppEigen’, ‘utf8’, ‘backports’, ‘carData’, ‘abind’, ‘Formula’, ‘pbkrtest’, ‘quantreg’, ‘lme4’, ‘cpp11’, ‘farver’, ‘labeling’, ‘R6’, ‘RColorBrewer’, ‘tidyselect’, ‘generics’, ‘pillar’, ‘broom’, ‘corrplot’, ‘car’, ‘pkgconfig’, ‘colorspace’, ‘gsl’, ‘ADGofTest’, ‘stabledist’, ‘mvtnorm’, ‘pcaPP’, ‘pspline’, ‘numDeriv’, ‘cli’, ‘gtable’, ‘isoband’, ‘lifecycle’, ‘rlang’, ‘S7’, ‘scales’, ‘vctrs’, ‘withr’, ‘ggrepel’, ‘ggsci’, ‘tidyr’, ‘purrr’, ‘dplyr’, ‘cowplot’, ‘ggsignif’, ‘gridExtra’, ‘glue’, ‘polynom’, ‘rstatix’, ‘tibble’, ‘magrittr’, ‘plyr’, ‘Rcpp’, ‘stringi’, ‘viridisLite’, ‘copula’, ‘ggplot2’, ‘ggpubr’, ‘reshape2’, ‘stringr’, ‘viridis’

Warning message in install.packages("WINS"):
“installation of package ‘gsl’ had non-zero exit status”
Warning message in install.packages("WINS"):
“installation of package ‘Rcpp’ had non-zero exit status”
Warning message in install.packages("WINS"):
“installation of package ‘RcppArmadillo’ had non-zero exit status”
Warning message in install.packages("WINS"):
“installation of package ‘minqa’ had non-zero exit status”
Warning message in install.packages("WINS"):
“installation of package ‘RcppEigen’ had non-zero exit status”
Warning message in install.packages("WINS"):
“installation of package ‘plyr’ had non-zero exit status”
...

You need to install the required system packages, e.g. libgsl, probably more.