Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@
^dsBase_6.3.1.tar.gz$
^dsBase_6.3.1-permissive.tar.gz$
^dsDanger_6.3.1.tar.gz$
^\.circleci$
^\.circleci/config\.yml$
43 changes: 43 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Copyright (c) 2024 Arjuna Technologies, Newcastle upon Tyne. All rights reserved.

version: 2.1

jobs:
dsbaseclient:
docker:
- image: cimg/base:current
resource_class: small
steps:
- checkout
- setup_remote_docker:
docker_layout_caching: true
- run: |
echo "Building"
echo " Repo Name: " $CIRCLE_PROJECT_REPONAME
echo " Branch: " $CIRCLE_BRANCH
echo " Tag: " $CIRCLE_TAG
- run:
command: |
sudo apt-get update -y
sudo apt-get install -y r-base-core cmake
- run:
command: |
sudo apt-get install -y libxml2-dev
- run:
command: |
sudo Rscript -e "install.packages('fields', dependencies=TRUE)"
sudo Rscript -e "install.packages('metafor', dependencies=TRUE)"
sudo Rscript -e "install.packages('meta', dependencies=TRUE)"
sudo Rscript -e "install.packages('ggplot2', dependencies=TRUE)"
sudo Rscript -e "install.packages('gridExtra', dependencies=TRUE)"
sudo Rscript -e "install.packages('data.table', dependencies=TRUE)"
sudo Rscript -e "install.packages('panelaggregation', dependencies=TRUE)"
sudo Rscript -e "install.packages('methods', dependencies=TRUE)"
sudo Rscript -e "install.packages('dplyr', dependencies=TRUE)"
- run:
command: |
sudo Rscript -e 'library(covr); covr::codecov(token = "'$CODECOV_TOKEN'")'
workflows:
build:
jobs:
- dsbaseclient
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Maintainer: DataSHIELD Developers <datashield@liverpool.ac.uk>
Description: DataSHIELD client functions for the client side.
License: GPL-3
Depends:
R (>= 3.5.0),
DSI (>= 1.3.0)
R (>= 4.0.0),
DSI (>= 1.7.1)
Imports:
fields,
metafor,
Expand Down
2 changes: 1 addition & 1 deletion R/ds.glm.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
#' The \code{data} argument avoids you having to specify the name of the
#' data frame in front of each covariate in the formula.
#' For example, if the data frame is called \code{DataFrame} you
#' avoid having to write: \eqn{DataFrame$y~DataFrame$a+DataFrame$b+DataFrame$c+DataFrame$d}
#' avoid having to write: \eqn{DataFrame\$y ~ DataFrame\$a + DataFrame\$b + DataFrame\$c + DataFrame\$d}
#'
#' The \code{checks} argument verifies that the variables in the model are all defined (exist)
#' on the server-side at every study
Expand Down
2 changes: 1 addition & 1 deletion R/ds.glmSLMA.R
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
#' The \code{dataName} argument avoids you having to specify the name of the
#' data frame in front of each covariate in the formula.
#' For example, if the data frame is called \code{DataFrame} you
#' avoid having to write: \eqn{DataFrame$y~DataFrame$a+DataFrame$b+DataFrame$c+DataFrame$d}
#' avoid having to write: \eqn{DataFrame\$y ~ DataFrame\$a + DataFrame\$b + DataFrame\$c + DataFrame\$d}
#'
#' The \code{checks} argument verifies that the variables in the model are all defined (exist)
#' on the server-site at every study
Expand Down
2 changes: 1 addition & 1 deletion R/ds.glmerSLMA.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#' The \code{dataName} argument avoids you having to specify the name of the
#' data frame in front of each covariate in the formula.
#' For example, if the data frame is called \code{DataFrame} you avoid having to write:
#' \eqn{DataFrame$y~DataFrame$a+DataFrame$b+(1|DataFrame$c)}.
#' \eqn{DataFrame\$y ~ DataFrame\$a + DataFrame\$b + (1 | DataFrame\$c)}.
#'
#' The \code{checks} argument verifies that the variables in the model are all defined (exist)
#' on the server-site at every study
Expand Down
12 changes: 6 additions & 6 deletions R/ds.lmerSLMA.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@
#'
#' In \code{formula} most shortcut notation allowed by \code{lmer()} function is
#' also allowed by \code{ds.lmerSLMA}. Many LMEs can be fitted very simply using a formula like:
#' \deqn{y~a+b+(1|c)}
#' \deqn{y ~ a + b + (1 | c)}
#' which simply means fit an LME with \code{y} as the outcome variable with \code{a} and \code{b}
#' as fixed effects, and \code{c} as a random effect or grouping factor.
#'
#' It is also possible to fit models with random slopes by specifying a model such as
#' \deqn{y~a+b+(1+b|c)}
#' \deqn{y ~ a + b + (1 + b | c)}
#' where the effect of \code{b} can vary randomly between groups defined by \code{c}.
#' Implicit nesting can be specified with formulae such as \eqn{y~a+b+(1|c/d)}
#' or \eqn{y~a+b+(1|c)+(1|c:d)}.
#' Implicit nesting can be specified with formulae such as \eqn{y ~ a + b + (1 | c / d)}
#' or \eqn{y ~ a + b + (1 | c) + (1 | c : d)}.
#'
#' The \code{dataName} argument avoids you having to specify the name of the
#' data frame in front of each covariate in the formula.
#' For example, if the data frame is called \code{DataFrame} you avoid having to write:
#' \eqn{DataFrame$y~DataFrame$a+DataFrame$b+(1|DataFrame$c)}.
#' \eqn{DataFrame\$y ~ DataFrame\$a + DataFrame\$b + (1 | DataFrame\$c)}.
#'
#' The \code{checks} argument verifies that the variables in the model are all defined (exist)
#' on the server-site at every study
Expand Down Expand Up @@ -192,7 +192,7 @@
#'
#' # Fit the lmer
#'
#' ds.lmerSLMA(formula = "BMI ~ incid_rate + diabetes + (1 | Male)",
#' ds.lmerSLMA(formula = "BMI ~ incid_rate + diabetes + (1 | Male)",
#' dataName = "D.comp",
#' datasources = connections)
#'
Expand Down
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@ dsBaseClient

DataSHIELD client side base R library.

| Branch | dsBase status | dsBase tests | dsBaseClient status | dsBaseClient tests |
| -------- | ------------- | ------------ | ------------------- | ------------------ |
| Master | [![Build Status](https://dev.azure.com/datashield-testing/datashield/_apis/build/status/datashield.dsBase?branchName=master)](https://dev.azure.com/datashield-testing/datashield/_build/latest?definitionId=3&branchName=master) | | [![Build Status](https://dev.azure.com/datashield-testing/datashield/_apis/build/status/datashield.dsBaseClient?branchName=master)](https://dev.azure.com/datashield-testing/datashield/_build/latest?definitionId=1&branchName=master) | [Tests](https://datashield.github.io/testStatus/dsBaseClient/master/latest/) |
| 6.0 | [![Build Status](https://dev.azure.com/datashield-testing/datashield/_apis/build/status/datashield.dsBase?branchName=v6.0)](https://dev.azure.com/datashield-testing/datashield/_build/latest?definitionId=3&branchName=v6.0) | | [![Build Status](https://dev.azure.com/datashield-testing/datashield/_apis/build/status/datashield.dsBaseClient?branchName=v6.0)](https://dev.azure.com/datashield-testing/datashield/_build/latest?definitionId=1&branchName=v6.0) | [Tests](https://datashield.github.io/testStatus/dsBaseClient/v6.0/latest/) |
| 6.0.1 | [![Build Status](https://dev.azure.com/datashield-testing/datashield/_apis/build/status/datashield.dsBase?branchName=v6.0.1)](https://dev.azure.com/datashield-testing/datashield/_build/latest?definitionId=3&branchName=v6.0.1) | | [![Build Status](https://dev.azure.com/datashield-testing/datashield/_apis/build/status/datashield.dsBaseClient?branchName=v6.0.1)](https://dev.azure.com/datashield-testing/datashield/_build/latest?definitionId=1&branchName=v6.0.1) | [Tests](https://datashield.github.io/testStatus/dsBaseClient/v6.0.1/latest/) |
| 6.1 | [![Build Status](https://dev.azure.com/datashield-testing/datashield/_apis/build/status/datashield.dsBase?branchName=v6.1)](https://dev.azure.com/datashield-testing/datashield/_build/latest?definitionId=3&branchName=v6.1) | [Tests](https://datashield.github.io/testStatus/dsBase/v6.1/latest/) | [![Build Status](https://dev.azure.com/datashield-testing/datashield/_apis/build/status/datashield.dsBaseClient?branchName=v6.1)](https://dev.azure.com/datashield-testing/datashield/_build/latest?definitionId=1&branchName=v6.1) | [Tests](https://datashield.github.io/testStatus/dsBaseClient/v6.1/latest/) |
| 6.1.1 | [![Build Status](https://dev.azure.com/datashield-testing/datashield/_apis/build/status/datashield.dsBase?branchName=v6.1.1)](https://dev.azure.com/datashield-testing/datashield/_build/latest?definitionId=3&branchName=v6.1.1) | [Tests](https://datashield.github.io/testStatus/dsBase/v6.1.1/latest/) | [![Build Status](https://dev.azure.com/datashield-testing/datashield/_apis/build/status/datashield.dsBaseClient?branchName=v6.1.1)](https://dev.azure.com/datashield-testing/datashield/_build/latest?definitionId=1&branchName=v6.1.1) | [Tests](https://datashield.github.io/testStatus/dsBaseClient/v6.1.1/latest/) |
| 6.2 | [![Build Status](https://dev.azure.com/datashield-testing/datashield/_apis/build/status/datashield.dsBase?branchName=v6.2)](https://dev.azure.com/datashield-testing/datashield/_build/latest?definitionId=3&branchName=v6.2) | [Tests](https://datashield.github.io/testStatus/dsBase/v6.2/latest/) | [![Build Status](https://dev.azure.com/datashield-testing/datashield/_apis/build/status/datashield.dsBaseClient?branchName=v6.2)](https://dev.azure.com/datashield-testing/datashield/_build/latest?definitionId=1&branchName=v6.2) | [Tests](https://datashield.github.io/testStatus/dsBaseClient/v6.2/latest/) |


[![License](https://img.shields.io/badge/license-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.html)

About
Expand Down
5 changes: 2 additions & 3 deletions armadillo_azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- job: build_and_run_tests
timeoutInMinutes: 360
pool:
vmImage: ubuntu-22.04
vmImage: ubuntu-24.04

steps:
#####################################################################################
Expand Down Expand Up @@ -125,11 +125,10 @@ jobs:
# Install R and all the dependencies dsBaseClient requires.
# If previous steps have failed then don't run.
- bash: |

sudo apt-get update -qq
sudo apt-get install --no-install-recommends software-properties-common dirmngr
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
sudo apt-get update -qq
sudo apt-get upgrade -y

sudo apt-get install -qq libxml2-dev libcurl4-openssl-dev libssl-dev libgsl-dev libgit2-dev r-base -y
Expand Down
Loading