镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
0aef5e3
Update DESCRIPTION
SermetPekin Jun 24, 2024
a3d57f2
Update Information.R
SermetPekin Jun 24, 2024
07aaf5d
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
9479636
Update DESCRIPTION
SermetPekin Jun 24, 2024
1893a2a
Update codemeta.json
actions-user Jun 24, 2024
5560917
Update DESCRIPTION
SermetPekin Jun 24, 2024
18bfd95
Update codemeta.json
actions-user Jun 24, 2024
5133095
Update DESCRIPTION
SermetPekin Jun 24, 2024
5915c3c
Update codemeta.json
actions-user Jun 24, 2024
d1d8169
Update DESCRIPTION
SermetPekin Jun 24, 2024
2616417
Update codemeta.json
actions-user Jun 24, 2024
19184eb
Update DESCRIPTION
SermetPekin Jun 24, 2024
3f509e7
Update codemeta.json
actions-user Jun 24, 2024
5043700
Update DESCRIPTION
SermetPekin Jun 24, 2024
59a346a
Update codemeta.json
actions-user Jun 24, 2024
77b18d6
Update DESCRIPTION
SermetPekin Jun 24, 2024
843f86f
Update codemeta.json
actions-user Jun 24, 2024
1dcabb9
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
9e30e14
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
aef77a6
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
c845717
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
37948c2
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
589a5ac
Update DESCRIPTION
SermetPekin Jun 24, 2024
3fd0eee
Update codemeta.json
actions-user Jun 24, 2024
28c729c
Update DESCRIPTION
SermetPekin Jun 24, 2024
e50a9ee
Update codemeta.json
actions-user Jun 24, 2024
4d63e48
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
b92a7b4
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
c654b11
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
8cbbbdb
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
424452c
Update DESCRIPTION
SermetPekin Jun 24, 2024
d945243
Update codemeta.json
actions-user Jun 24, 2024
13b0a03
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
46abb5b
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
f636cac
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
cd0850d
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
b3b6160
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
5f20d7b
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
719f0e6
Update DESCRIPTION
SermetPekin Jun 24, 2024
11de7ef
Update codemeta.json
actions-user Jun 24, 2024
90457fa
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
4da7cd9
Update DESCRIPTION
SermetPekin Jun 24, 2024
91898f3
Update codemeta.json
actions-user Jun 24, 2024
49c24f6
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
01da897
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
3ab5187
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
ac40c71
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
8d18225
Update DESCRIPTION
SermetPekin Jun 24, 2024
7b4cb5e
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
3644bd3
Update R-CMD-check.yml
SermetPekin Jun 24, 2024
e72f4ff
Update DESCRIPTION
SermetPekin Jun 24, 2024
3d4d31f
dockerfile
SermetPekin Jun 25, 2024
e80fa74
dockerfile
SermetPekin Jun 25, 2024
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
94 changes: 33 additions & 61 deletions .github/workflows/R-CMD-check.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,34 @@
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
name: Check Package with Latest Rcpp

on:
schedule:
- cron: "24 06 * * 1"
push:
branches:
- main
- master
paths-ignore:
- "Meta**"
- "memcheck**"
- "docs**"
- "**.git"
- "**.json"
- "**.md"
- "**.yml"
- "!**R-CMD-check.yml"
- "**.R[dD]ata"
- "**.Rpro*"
pull_request:
branches:
- main
- master
paths-ignore:
- "Meta**"
- "memcheck**"
- "docs**"
- "**.git"
- "**.json"
- "**.md"
- "**.yml"
- "!**R-CMD-check.yml"
- "**.R[dD]ata"
- "**.Rpro*"

name: R-CMD-check

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: windows-latest, r: 'release'}
- {os: macOS-latest, r: 'release'}
- {os: ubuntu-20.04, r: '4.1', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- { os: windows-latest, r: 'release' }
- { os: macOS-latest, r: 'release' }
- { os: ubuntu-20.04, r: '4.4.0', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }
- { os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest" }


env:
_R_CHECK_CRAN_INCOMING_: true # Seemingly not set by --as-cran
_R_CHECK_FORCE_SUGGESTS_: false # CRAN settings
_R_CHECK_CRAN_INCOMING_: true
_R_CHECK_FORCE_SUGGESTS_: false
R_COMPILE_AND_INSTALL_PACKAGES: 'never'
_R_CHECK_THINGS_IN_CHECK_DIR_: false
R_REMOTES_STANDALONE: true
Expand All @@ -75,37 +49,35 @@ jobs:
- name: Install apt packages (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get install \
texlive-latex-base texlive-fonts-recommended libcurl4-openssl-dev
sudo apt-get update
sudo apt-get install -y texlive-latex-base texlive-fonts-recommended libcurl4-openssl-dev libglpk40

- name: Set up R dependencies (Windows)
if: runner.os == 'Windows'
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
ms609/TreeDistData
needs: |
check
coverage
- name: Set up R dependencies (Non-Windows)
if: runner.os != 'Windows'
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
ms609/TreeDistData
phangorn=?ignore-before-r=4.1.0
RcppCore/Rcpp
needs: |
check
- name: Install devtools and remotes
run: Rscript -e 'install.packages(c("devtools", "remotes"))'

- name: Install pak
run: Rscript -e 'install.packages("pak")'

- name: Install covr
run: Rscript -e 'install.packages("covr")'

- name: Install latest Rcpp from GitHub
run: Rscript -e 'remotes::install_github("RcppCore/Rcpp")'

- name: Install TreeDistData from GitHub
run: Rscript -e 'devtools::install_github("ms609/TreeDistData")'

- name: Install dependencies
run: Rscript -e 'pak::pkg_install(c("fGarch", "univariateML", "kdensity"))'

- name: Install remaining dependencies
run: Rscript -e 'pak::pkg_install(c("TreeDist", "phangorn", "Rcpp"))'

- name: Set up pandoc
uses: r-lib/actions/setup-pandoc@v2

- name: Check package
uses: r-lib/actions/check-r-package@v2

- name: Code coverage
if: runner.os == 'Windows'
run: covr::codecov()
shell: Rscript {0}
run: Rscript -e 'covr::codecov()'
7 changes: 3 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ URL: https://ms609.github.io/TreeDist/, https://github.com/ms609/TreeDist/
BugReports: https://github.com/ms609/TreeDist/issues/
Additional_repositories: https://ms609.github.io/packages/
Depends:
R (>= 3.4.0),
R (>= 4.4.0),
stats,
Imports:
ape (>= 5.0),
Expand All @@ -48,13 +48,12 @@ Imports:
Rdpack (>= 0.7),
shiny,
shinyjs,
TreeTools (>= 1.7.2),
TreeTools (>= 1.7.2)
Suggests:
bookdown,
cluster,
ggplot2,
hypervolume,
kdensity,
knitr,
MASS,
parallel,
Expand All @@ -70,7 +69,7 @@ Suggests:
spelling,
testthat (>= 3.0),
Ternary (>= 1.1.2),
TreeDistData (> 0.1.0),
TreeDistData (>= 0.1.0),
TreeSearch (>= 1.4.0),
Umatrix,
uwot,
Expand Down
42 changes: 42 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
FROM rocker/r-ver:4.4.0

RUN apt-get update && apt-get install -y \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
libfontconfig1-dev \
libharfbuzz-dev \
libfribidi-dev \
libfreetype6-dev \
libpng-dev \
libtiff5-dev \
libjpeg-dev \
libgit2-dev \
texlive-latex-base \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-latex-extra \
pandoc \
pandoc-citeproc \
libglpk40 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN R -e "install.packages(c('devtools', 'remotes', 'pak', 'covr'), repos='https://cloud.r-project.org/')"

RUN R -e "remotes::install_github('RcppCore/Rcpp')"

RUN R -e "pak::pkg_install(c('fGarch', 'univariateML', 'kdensity'))"

RUN R -e "remotes::install_github('ms609/TreeDistData')"

RUN R -e "pak::pkg_install(c('TreeDist', 'phangorn'))"

WORKDIR /usr/local/src/TreeDist

COPY . /usr/local/src/TreeDist/


RUN R CMD INSTALL .

CMD ["R"]
1 change: 1 addition & 0 deletions R/Information.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ SplitSharedInformation <- function(n, A1, A2 = A1) {
Log2TreesMatchingSplit(A2, n - A2)
}


#' @describeIn SplitSharedInformation Different information between two splits.
#' @importFrom TreeTools SplitInformation
#' @export
Expand Down
22 changes: 5 additions & 17 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": "R",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 4.4.0 (2024-04-24)",
"runtimePlatform": "R version 4.4.1 (2024-06-14)",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
Expand Down Expand Up @@ -127,18 +127,6 @@
},
"sameAs": "https://CRAN.R-project.org/package=hypervolume"
},
{
"@type": "SoftwareApplication",
"identifier": "kdensity",
"name": "kdensity",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=kdensity"
},
{
"@type": "SoftwareApplication",
"identifier": "knitr",
Expand Down Expand Up @@ -319,7 +307,7 @@
"@type": "SoftwareApplication",
"identifier": "TreeDistData",
"name": "TreeDistData",
"version": "> 0.1.0"
"version": ">= 0.1.0"
},
{
"@type": "SoftwareApplication",
Expand Down Expand Up @@ -377,7 +365,7 @@
"@type": "SoftwareApplication",
"identifier": "R",
"name": "R",
"version": ">= 3.4.0"
"version": ">= 4.4.0"
},
"2": {
"@type": "SoftwareApplication",
Expand All @@ -388,7 +376,7 @@
"@type": "SoftwareApplication",
"identifier": "ape",
"name": "ape",
"version": ">= 5.0",
"version": ">= 5.6",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
Expand Down Expand Up @@ -500,7 +488,7 @@
"SystemRequirements": "C++17, pandoc-citeproc"
},
"keywords": ["phylogenetics", "tree-distance"],
"fileSize": "1455.331KB",
"fileSize": "1455.355KB",
"citation": [
{
"@type": "ScholarlyArticle",
Expand Down