Skip to content

Commit

Permalink
Merge branch 'master' into vreijs/vectorization
Browse files Browse the repository at this point in the history
  • Loading branch information
rstub authored May 30, 2024
2 parents a6736d1 + f30c162 commit ba91f34
Show file tree
Hide file tree
Showing 130 changed files with 8,614 additions and 106,574 deletions.
11 changes: 8 additions & 3 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
^README\.Rmd$
^CRAN-RELEASE$
^cran-comments\.md$
^Meta$
^doc$
external
^external$
^revdep$

^\.travis\.yml$
^appveyor\.yml$
^codecov\.yml$
^.*\.Rproj$
^\.Rproj\.user$
docker
^\.github$
^CRAN-SUBMISSION$
5 changes: 5 additions & 0 deletions .aspell/defaults.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# saveRDS(c("BCE", "Ephemeris", "JPL", "Moshier", "ephemerides", "ephemeris", "repos", "swephRdata"), file="swephR.rds")
Rd_files <- vignettes <- R_files <- description <-
list(encoding = "UTF-8",
language = "en",
dictionaries = c("en_stats", "swephR"))
Binary file added .aspell/swephR.rds
Binary file not shown.
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
56 changes: 56 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# 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
#
# NOTE: This workflow is overkill for most R packages and
# check-standard.yaml is likely a better choice.
# usethis::use_github_action("check-standard") will install it.
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

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: macos-latest, r: 'release'}

- {os: windows-latest, r: 'release'}

- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v3

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

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true
extra-repositories: https://rstub.r-universe.dev

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
47 changes: 47 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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 }}
steps:
- uses: actions/checkout@v3

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

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
extra-repositories: https://rstub.r-universe.dev

- 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
51 changes: 51 additions & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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]

name: test-coverage

jobs:
test-coverage:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
extra-repositories: https://rstub.r-universe.dev

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr
needs: coverage

- name: Test coverage
run: |
covr::codecov(
quiet = FALSE,
clean = FALSE,
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
)
shell: Rscript {0}

- name: Show testthat output
if: always()
run: |
## --------------------------------------------------------------------
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash

- name: Upload test results
if: failure()
uses: actions/upload-artifact@v3
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
doc
^doc$
Meta
inst/doc
.Rhistory
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "external/swisseph"]
path = external/swisseph
url = https://github.com/aloistr/swisseph.git
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

22 changes: 12 additions & 10 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
Package: swephR
Type: Package
Title: High Precision Swiss Ephemeris
Version: 0.1.0
Version: 0.3.1.1
Authors@R: c(
person("Ralf", "Stubner", email = "[email protected]", role = c("aut", "cre")),
person("Victor", "Reijs", role = "aut"),
person("Authors of the Swiss Ephemeris", role = "aut"))
Description: The Swiss Ephemeris is a high precision ephemeris based upon the
DE431 ephemerides from NASA's JPL. It covers the time range 13201 BC to
AD 17191. This package uses the semi-analytic theory by Steve Moshier.
person("Authors and copyright holder of the Swiss Ephemeris", role = c("aut", "cph")))
Description: The Swiss Ephemeris (version 2.10.03) is a high precision ephemeris based upon the
DE431 ephemerides from NASA's JPL. It covers the time range 13201 BCE to
17191 CE. This package uses the semi-analytic theory by Steve Moshier.
For faster and more accurate calculations, the compressed Swiss Ephemeris
data is available in the 'swephRdata' package. To access this data package,
run 'install.packages("swephRdata", repos = "https://rstub.github.io/drat/",
run 'install.packages("swephRdata", repos = "https://rstub.r-universe.dev",
type = "source")'. The size of the 'swephRdata' package is approximately
115 MB. The user can also use the original JPL DE431 data.
License: AGPL | file LICENSE
License: AGPL
Imports: Rcpp (>= 0.12.18)
LinkingTo: Rcpp
RoxygenNote: 6.1.1
RoxygenNote: 7.2.3
Suggests:
testthat,
swephRdata,
knitr,
rmarkdown
Encoding: UTF-8
URL: https://github.com/rstub/swephR/, http://www.astro.com/swisseph/
URL: https://github.com/rstub/swephR/, https://rstub.github.io/swephR/, http://www.astro.com/swisseph/
BugReports: https://github.com/rstub/swephR/issues/
Additional_repositories: https://rstub.github.io/drat
Additional_repositories: https://rstub.r-universe.dev
VignetteBuilder: knitr
LazyData: true
Language: en-US
61 changes: 0 additions & 61 deletions LICENSE

This file was deleted.

29 changes: 29 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,56 @@ export(swe_deltat_ex)
export(swe_fixstar2)
export(swe_fixstar2_mag)
export(swe_fixstar2_ut)
export(swe_gauquelin_sector)
export(swe_get_ayanamsa_ex)
export(swe_get_ayanamsa_ex_ut)
export(swe_get_ayanamsa_name)
export(swe_get_library_path)
export(swe_get_orbital_elements)
export(swe_get_planet_name)
export(swe_get_tid_acc)
export(swe_heliacal_angle)
export(swe_heliacal_pheno_ut)
export(swe_heliacal_ut)
export(swe_house_name)
export(swe_house_pos)
export(swe_houses_armc)
export(swe_houses_ex)
export(swe_jdet_to_utc)
export(swe_jdut1_to_utc)
export(swe_julday)
export(swe_lat_to_lmt)
export(swe_lmt_to_lat)
export(swe_lun_eclipse_how)
export(swe_lun_eclipse_when)
export(swe_lun_eclipse_when_loc)
export(swe_lun_occult_when_glob)
export(swe_lun_occult_when_loc)
export(swe_lun_occult_where)
export(swe_nod_aps)
export(swe_nod_aps_ut)
export(swe_orbit_max_min_true_distance)
export(swe_pheno)
export(swe_pheno_ut)
export(swe_refrac)
export(swe_refrac_extended)
export(swe_revjul)
export(swe_rise_trans_true_hor)
export(swe_set_delta_t_userdef)
export(swe_set_ephe_path)
export(swe_set_jpl_file)
export(swe_set_sid_mode)
export(swe_set_tid_acc)
export(swe_set_topo)
export(swe_sidtime)
export(swe_sol_eclipse_how)
export(swe_sol_eclipse_when_glob)
export(swe_sol_eclipse_when_loc)
export(swe_sol_eclipse_where)
export(swe_time_equ)
export(swe_topo_arcus_visionis)
export(swe_utc_time_zone)
export(swe_utc_to_jd)
export(swe_version)
export(swe_vis_limit_mag)
export(vec_azalt)
Expand Down
Loading

0 comments on commit ba91f34

Please sign in to comment.