Skip to content

Commit

Permalink
Merge pull request #5 from CDK-R/202402-29
Browse files Browse the repository at this point in the history
Update CDK Jars to 2.9
  • Loading branch information
zachcp authored Mar 2, 2024
2 parents 55dbd00 + 34fc5f1 commit b46b264
Show file tree
Hide file tree
Showing 150 changed files with 88 additions and 23 deletions.
4 changes: 4 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ cdk/
cdk.zip
revdep/
^CRAN-SUBMISSION$
^_pkgdown\.yml$
^docs$
^pkgdown$
^\.github$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
48 changes: 48 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
release:
types: [published]
workflow_dispatch:

name: pkgdown

jobs:
pkgdown:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: docs
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
.RData
.Ruserdata
cdk/
revdep/
revdep/
docs
3 changes: 0 additions & 3 deletions CRAN-SUBMISSION

This file was deleted.

16 changes: 10 additions & 6 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
Package: rcdklibs
Version: 2.8
Date: 2022-09-20
Authors@R: c(person('Rajarshi', 'Guha', role=c('aut'), email='[email protected]'),
person('Zachary', 'Charlop-Powers', role=c('cre'), email='[email protected]'),
person('CDK Project', '', role=c('ctb', 'cph'), comment='CDK Java library contained in multiple jar files'))
Version: 2.9
Date: 2024-03-02
Authors@R: c(
person('Rajarshi', 'Guha', ,'[email protected]', role=c('aut'),
comment = c(ORCID = "0000-0001-7403-8819")),
person('Zachary', 'Charlop-Powers', ,'[email protected]',role=c('cre'),
comment = c(ORCID = "0000-0001-8816-4680")),
person('CDK Project', '', role=c('ctb', 'cph'), comment='CDK Java library contained in multiple jar files'))
Depends:
R (>= 2.0.0),
rJava
Expand All @@ -16,4 +19,5 @@ Description: An R interface to the Chemistry Development Kit, a Java library
interact with the CDK using 'rJava'. However 'rcdk' exposes functionality in a more
idiomatic way. The CDK library itself is released as LGPL and the sources can be
obtained from <https://github.com/cdk/cdk>.
RoxygenNote: 7.2.1
RoxygenNote: 7.3.1
URL: https://cdk-r.github.io/rcdklibs/
16 changes: 6 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

CDK_VERSION=2.8
JAR_DIR=cdk/cdk-cdk-$(CDK_VERSION)/bundle/target/cdk-bundle-2.8/WEB-INF/lib
CDK_VERSION=2.9
JAR_DIR=cdk/cdk-cdk-$(CDK_VERSION)/bundle/target/cdk-bundle-$(CDK_VERSION)/WEB-INF/lib

cdk.zip:
wget -O cdk.zip https://github.com/cdk/cdk/archive/refs/tags/cdk-$(CDK_VERSION).zip
Expand All @@ -10,17 +10,13 @@ build: cdk.zip
unzip cdk.zip -d cdk
# 88 - 92 is cdk-pdb
# 148-157 is cdk-builder3d and builder3d-tools
# 238-242 is cdk-pdbcml
# 343-337 is cdk-iordf
sed -i .bak -e '88,92d;148,157d;238,242d;343,347d;' cdk/cdk-cdk-$(CDK_VERSION)/bundle/pom.xml
# 248-252 is cdk-pdbcml
# 372-376 is cdk-iordf
sed -i .bak -e '88,92d;148,157d;248,252d;372,376d;' cdk/cdk-cdk-$(CDK_VERSION)/bundle/pom.xml
cd cdk/cdk-cdk-$(CDK_VERSION)/bundle && mvn compile war:war -P jdk11-plus && cd ../../..

# guava:
# wget -O inst/cont/guava-31.1-jre.jar https://repo1.maven.org/maven2/com/google/guava/guava/31.1-jre/guava-31.1-jre.jar
# wget -O inst/cont/failureaccess-1.0.1.jar https://repo1.maven.org/maven2/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar


prepare: build guava
prepare: build
# find cdk/ -name "*.jar" | parallel "cp {} inst/cont/{/}"
cp $(JAR_DIR)/*jar inst/cont/

Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v2.9

- Update to CDK 2.9 libraries.
- Removing a number of less-used jars prior to upload to CRAN. See the Makefile


# v2.8

- Update to CDK 2.8 libraries.
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The goal of rcdklibs is to provide the [CDK](https://github.com/cdk/cdk) jarfile
and thereby facilitate chemoinformatic analysis within the R ecosystem. The
primary consumer of `rcdklibs` is the [rcdk](https://github.com/CDK-R/cdkr) package
but all of CDK's functionality can be accessed by the standard [rJava]( https://CRAN.R-project.org/package=rJava)
API. The libs provided in this release correspond to the [2.8 Release](https://github.com/cdk/cdk/releases/tag/cdk-2.8)
API. The libs provided in this release correspond to the [2.9 Release](https://github.com/cdk/cdk/releases/tag/cdk-2.9)


```
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ ecosystem. The primary consumer of `rcdklibs` is the
[rcdk](https://github.com/CDK-R/cdkr) package but all of CDK’s
functionality can be accessed by the standard
[rJava](https://CRAN.R-project.org/package=rJava) API. The libs provided
in this release correspond to the [2.8
Release](https://github.com/cdk/cdk/releases/tag/cdk-2.8)
in this release correspond to the [2.9
Release](https://github.com/cdk/cdk/releases/tag/cdk-2.9)

# Example
library(rcdklibs)
Expand Down
8 changes: 8 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
url: https://cdk-r.github.io/rcdklibs/
template:
bootstrap: 5
bslib:
primary: "#0054AD"
border-radius: 0.5rem
btn-border-radius: 0.25rem

Binary file removed inst/cont/beam-core-1.3.4.jar
Binary file not shown.
Binary file added inst/cont/beam-core-1.3.5.jar
Binary file not shown.
Binary file removed inst/cont/beam-func-1.3.4.jar
Binary file not shown.
Binary file added inst/cont/beam-func-1.3.5.jar
Binary file not shown.
Binary file removed inst/cont/cdk-atomtype-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-atomtype-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-charges-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-charges-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-cip-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-cip-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-control-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-control-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-core-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-core-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-ctab-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-ctab-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-data-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-data-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-datadebug-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-datadebug-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-depict-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-depict-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-dict-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-dict-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-diff-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-diff-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-extra-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-extra-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-fingerprint-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-fingerprint-2.9.jar
Binary file not shown.
Binary file not shown.
Binary file removed inst/cont/cdk-formula-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-formula-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-fragment-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-fragment-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-group-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-group-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-hash-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-hash-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-inchi-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-inchi-2.9.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed inst/cont/cdk-ioformats-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-ioformats-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-ionpot-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-ionpot-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-isomorphism-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-isomorphism-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-jniinchi-support-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-jniinchi-support-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-legacy-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-legacy-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-libiocml-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-libiocml-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-libiomd-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-libiomd-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-model-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-model-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-pcore-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-pcore-2.9.jar
Binary file not shown.
Binary file not shown.
Binary file removed inst/cont/cdk-pdbcml-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-qm-2.9.jar
Binary file not shown.
Binary file not shown.
Binary file removed inst/cont/cdk-qsaratomic-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-qsaratomic-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-qsarbond-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-qsarbond-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-qsarcml-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-qsarcml-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-qsarionpot-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-qsarionpot-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-qsarmolecular-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-qsarmolecular-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-qsarprotein-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-qsarprotein-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-reaction-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-reaction-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-render-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-render-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-renderawt-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-renderawt-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-renderbasic-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-renderbasic-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-renderextra-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-renderextra-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-sdg-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-sdg-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-signature-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-signature-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-silent-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-silent-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-smarts-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-smarts-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-smiles-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-smiles-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-standard-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-standard-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-structgen-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-structgen-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-tautomer-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-tautomer-2.9.jar
Binary file not shown.
Binary file removed inst/cont/cdk-valencycheck-2.8.jar
Binary file not shown.
Binary file added inst/cont/cdk-valencycheck-2.9.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed inst/cont/jna-inchi-core-1.1.jar
Binary file not shown.
Binary file added inst/cont/jna-inchi-core-1.2.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added inst/cont/jna-inchi-linux-aarch64-1.2.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed inst/cont/joda-time-2.11.0.jar
Binary file not shown.
Binary file added inst/cont/joda-time-2.12.5.jar
Binary file not shown.
Binary file not shown.
Binary file removed inst/cont/log4j-api-2.18.0.jar
Binary file not shown.
Binary file added inst/cont/log4j-api-2.20.0.jar
Binary file not shown.
Binary file not shown.
Binary file removed inst/cont/serializer-2.7.2.jar
Binary file not shown.
Binary file removed inst/cont/xalan-2.7.2.jar
Binary file not shown.
Binary file removed inst/cont/xercesImpl-2.12.2.jar
Binary file not shown.
Binary file added inst/cont/xml-apis-1.0.b2.jar
Binary file not shown.
Binary file removed inst/cont/xml-apis-1.4.01.jar
Binary file not shown.
Binary file renamed inst/cont/xom-1.3.7.jar → inst/cont/xom-1.3.9.jar
Binary file not shown.
Binary file added pkgdown/favicon/apple-touch-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkgdown/favicon/apple-touch-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkgdown/favicon/apple-touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkgdown/favicon/apple-touch-icon-60x60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkgdown/favicon/apple-touch-icon-76x76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkgdown/favicon/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkgdown/favicon/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkgdown/favicon/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pkgdown/favicon/favicon.ico
Binary file not shown.

0 comments on commit b46b264

Please sign in to comment.