diff --git a/DESCRIPTION b/DESCRIPTION index bebadf1..6e22a94 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -5,7 +5,7 @@ Authors@R: c(person("Alain", "Quartier-la-Tente", role = c("aut", "cre"), email = "alain.quartier@yahoo.fr")) Description: 'JDemetra+' () is the seasonal adjustment software officially recommended to the members of the European Statistical System and the European System of Central Banks. Seasonal adjustment models performed - with 'JDemetra' can be stored into workspaces. 'JWSACruncher' () is a console tool that + with 'JDemetra+' can be stored into workspaces. 'JWSACruncher' () is a console tool that re-estimates all the multi-processing defined in a workspace and to export the result. 'rjwsacruncher' allows to launch easily the 'JWSACruncher'. URL: https://github.com/AQLT/rjwsacruncher BugReports: https://github.com/AQLT/rjwsacruncher/issues @@ -13,7 +13,6 @@ Imports: XML Suggests: knitr, - kableExtra, rmarkdown License: GPL-3 VignetteBuilder: knitr diff --git a/R/param_file.R b/R/param_file.R index 429c576..d990092 100644 --- a/R/param_file.R +++ b/R/param_file.R @@ -28,11 +28,14 @@ #' @seealso \code{\link{cruncher_and_param}}. #' @encoding UTF-8 #' @export -create_param_file <- function(dir_file_param = getwd(), bundle = 10000, csv_layout = "list", csv_separator = ";", +create_param_file <- function(dir_file_param, bundle = 10000, csv_layout = "list", csv_separator = ";", ndecs = 6, policy = "parameters", output = NULL, matrix_item = getOption("default_matrix_item"), tsmatrix_series = getOption("default_tsmatrix_series"), paths_path = NULL){ + if (missing(dir_file_param)) + stop("The parameter dir_file_param is missing") + first_line <- "" param_line <- paste("", sep = "\"") @@ -70,7 +73,3 @@ create_param_file <- function(dir_file_param = getwd(), bundle = 10000, csv_layo writeLines(file_param, con = paste0(dir_file_param,"/parameters.param")) return(invisible(paste0(dir_file_param,"/parameters.param"))) } - - - - diff --git a/README.Rmd b/README.Rmd index 60c8e91..9bc66b6 100644 --- a/README.Rmd +++ b/README.Rmd @@ -11,26 +11,29 @@ knitr::opts_chunk$set( fig.path = "README-", fig.align = "center" ) +library(rjwsacruncher) ``` # rjwsacruncher -[![Travis Build Status](https://travis-ci.org/AQLT/rjwsacruncher.svg?branch=master)](https://travis-ci.org/AQLT/rjwsacruncher) -[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/rjdemetra)](https://cran.r-project.org/package=rjdemetra) +[![Travis Build Status](https://img.shields.io/travis/AQLT/rjwsacruncher.svg?logo=travis)](https://travis-ci.org/AQLT/rjwsacruncher) +[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/rjwsacruncher)](https://cran.r-project.org/package=rjwsacruncher) +[![CRAN last release](http://www.r-pkg.org/badges/last-release/rjwsacruncher)](https://cran.r-project.org/package=rjwsacruncher) +[![CRAN monthly downloads](http://cranlogs.r-pkg.org/badges/rjwsacruncher?color=lightgrey)](https://cran.r-project.org/package=rjwsacruncher) +[![CRAN downloads](http://cranlogs.r-pkg.org/badges/grand-total/rjwsacruncher?color=lightgrey)](https://cran.r-project.org/package=rjwsacruncher) -The goal of rjwsacruncher is to launch quickly and easily the [JWSACruncher](https://github.com/jdemetra/jwsacruncher) of [JDemetra+](https://github.com/jdemetra/jdemetra-app). The JWSACruncher is a console tool that allows to update a JDemetra+ workspace's and to export the results without having to use JDemetra+. More details on the JWSACruncher can be found on . +The goal of rjwsacruncher is to launch quickly and easily the [JWSACruncher](https://github.com/jdemetra/jwsacruncher) of [JDemetra+](https://github.com/jdemetra/jdemetra-app). The JWSACruncher is a console tool that allows to update a JDemetra+ workspace and to export the results without having to open JDemetra+. More details on the JWSACruncher can be found on . ## Installation -```{r, include = FALSE} -library(rjwsacruncher) -``` - -The development version can be installed from GitHub: ```{r gh-installation, eval = FALSE} +# Install release version from CRAN +install.packages("rjwsacruncher") + +# Install development version from GitHub # install.packages("devtools") -devtools::install_github("AQLT/rjwsacruncher", build_vignettes = TRUE) +devtools::install_github("AQLT/rjwsacruncher") ``` The JWSACruncher is not included in the package. It can be downloaded from GitHub () or with the function `download_cruncher()`: diff --git a/README.md b/README.md index ad6061d..336744c 100644 --- a/README.md +++ b/README.md @@ -4,24 +4,32 @@ # rjwsacruncher [![Travis Build -Status](https://travis-ci.org/AQLT/rjwsacruncher.svg?branch=master)](https://travis-ci.org/AQLT/rjwsacruncher) -[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/rjdemetra)](https://cran.r-project.org/package=rjdemetra) +Status](https://img.shields.io/travis/AQLT/rjwsacruncher.svg?logo=travis)](https://travis-ci.org/AQLT/rjwsacruncher) +[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/rjwsacruncher)](https://cran.r-project.org/package=rjwsacruncher) +[![CRAN last +release](http://www.r-pkg.org/badges/last-release/rjwsacruncher)](https://cran.r-project.org/package=rjwsacruncher) +[![CRAN monthly +downloads](http://cranlogs.r-pkg.org/badges/rjwsacruncher?color=lightgrey)](https://cran.r-project.org/package=rjwsacruncher) +[![CRAN +downloads](http://cranlogs.r-pkg.org/badges/grand-total/rjwsacruncher?color=lightgrey)](https://cran.r-project.org/package=rjwsacruncher) The goal of rjwsacruncher is to launch quickly and easily the [JWSACruncher](https://github.com/jdemetra/jwsacruncher) of [JDemetra+](https://github.com/jdemetra/jdemetra-app). The JWSACruncher -is a console tool that allows to update a JDemetra+ workspace’s and to -export the results without having to use JDemetra+. More details on the +is a console tool that allows to update a JDemetra+ workspace and to +export the results without having to open JDemetra+. More details on the JWSACruncher can be found on . ## Installation -The development version can be installed from GitHub: - ``` r +# Install release version from CRAN +install.packages("rjwsacruncher") + +# Install development version from GitHub # install.packages("devtools") -devtools::install_github("AQLT/rjwsacruncher", build_vignettes = TRUE) +devtools::install_github("AQLT/rjwsacruncher") ``` The JWSACruncher is not included in the package. It can be downloaded diff --git a/docs/authors.html b/docs/authors.html index 60a0a94..24adfb5 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -83,7 +83,7 @@ diff --git a/docs/index.html b/docs/index.html index e50764b..05c6919 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,14 +5,14 @@ -Easy interface to launch the 'JWSACruncher' • rjwsacruncher +Interface to the 'JWSACruncher' of 'JDemetra+' • rjwsacruncher - +