Skip to content

Commit d995c7a

Browse files
geom_neuron, ggneuron and friends moved to natverse/nat.ggplot2
* moved to: https://github.com/natverse/nat.ggplot
1 parent 807cae6 commit d995c7a

File tree

12 files changed

+47
-1251
lines changed

12 files changed

+47
-1251
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 28 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,51 @@
1-
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
2-
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
5-
branches:
6-
- main
7-
- master
5+
branches: [main, master]
86
pull_request:
9-
branches:
10-
- main
11-
- master
127

13-
name: R-CMD-check
8+
name: R-CMD-check.yaml
9+
10+
permissions: read-all
1411

1512
jobs:
1613
R-CMD-check:
17-
runs-on: ubuntu-latest
14+
runs-on: ${{ matrix.config.os }}
15+
16+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
config:
22+
- {os: macos-latest, r: 'release'}
23+
- {os: windows-latest, r: 'release'}
24+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
25+
- {os: ubuntu-latest, r: 'release'}
26+
- {os: ubuntu-latest, r: 'oldrel-1'}
27+
1828
env:
19-
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
2029
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
21-
CHUNKEDGRAPH_SECRET: ${{ secrets.CHUNKEDGRAPH_SECRET }}
22-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
23-
FLYTABLE_TOKEN: ${{ secrets.FLYTABLE_TOKEN }}
24-
RETICULATE_MINICONDA_PYTHON_VERSION: 3.8
25-
RGL_USE_NULL: TRUE
26-
_R_CHECK_DONTTEST_EXAMPLES_: FALSE
27-
_R_CHECK_TESTS_NLINES_: 0
28-
_R_CHECK_CRAN_INCOMING_REMOTE_: false
30+
R_KEEP_PKG_SOURCE: yes
2931

3032
steps:
3133
- uses: actions/checkout@v4
3234

35+
- uses: r-lib/actions/setup-pandoc@v2
36+
3337
- uses: r-lib/actions/setup-r@v2
3438
with:
39+
r-version: ${{ matrix.config.r }}
40+
http-user-agent: ${{ matrix.config.http-user-agent }}
3541
use-public-rspm: true
3642

37-
- uses: r-lib/actions/setup-pandoc@v2
38-
3943
- uses: r-lib/actions/setup-r-dependencies@v2
4044
with:
41-
extra-packages: any::rcmdcheck, any::pkgdown, catmaid=natverse/rcatmaid
45+
extra-packages: any::rcmdcheck
4246
needs: check
4347

44-
- name: Fix Conda permissions on macOS
45-
if: runner.os == 'macOS'
46-
run: sudo chown -R $UID $CONDA
47-
48-
- name: Install fafbseg + python
49-
run: |
50-
pak::local_install()
51-
pak::pak('natverse/coconatfly')
52-
library(bancr)
53-
library(fafbseg)
54-
simple_python()
55-
simple_python('none', pkgs='cloud-volume~=8.32.1')
56-
dr_banc()
57-
shell: Rscript {0}
58-
59-
- name: writetoken
60-
run: fafbseg::flywire_set_token(token=Sys.getenv("CHUNKEDGRAPH_SECRET"))
61-
shell: Rscript {0}
62-
6348
- uses: r-lib/actions/check-r-package@v2
64-
65-
- name: Upload check results
66-
if: failure()
67-
uses: actions/upload-artifact@v4
6849
with:
69-
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
70-
path: check
71-
72-
- name: Upload check log results
73-
if: failure()
74-
uses: actions/upload-artifact@v4
75-
with:
76-
name: ${{ matrix.config.tag }}-results
77-
path: ${{ github.event.repository.name }}.Rcheck/00check.log
78-
79-
- name: Test coverage
80-
# if: runner.os == 'macOS'
81-
if: ${{ runner.os == 'Linux' && matrix.config.r == 'release'}}
82-
run: covr::codecov(errorsAreFatal=FALSE)
83-
shell: Rscript {0}
50+
upload-snapshots: true
51+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

DESCRIPTION

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: bancr
33
Title: R Client Access to the Brain And Nerve Cord (BANC) Dataset
4-
Version: 0.2.1
4+
Version: 0.2.2
55
Authors@R:
66
c(person(given = "Alexander",
77
family = "Bates",
@@ -37,7 +37,8 @@ Imports:
3737
dplyr,
3838
magrittr,
3939
utils,
40-
reticulate
40+
reticulate,
41+
nat.ggplot
4142
Suggests:
4243
testthat (>= 3.0.0),
4344
readobj,
@@ -81,7 +82,8 @@ Remotes:
8182
tidyverse/ggplot2,
8283
eliocamp/ggnewscale,
8384
natverse/coconat,
84-
natverse/coconatfly
85+
natverse/coconatfly,
86+
natverse/nat.ggplot
8587
Config/testthat/edition: 3
8688
LazyDataCompression: xz
8789
Encoding: UTF-8

NAMESPACE

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,6 @@ S3method(banc_decapitate,neuron)
1414
S3method(banc_decapitate,neuronlist)
1515
S3method(banc_reroot,neuron)
1616
S3method(banc_reroot,neuronlist)
17-
S3method(geom_neuron,"NULL")
18-
S3method(geom_neuron,data.frame)
19-
S3method(geom_neuron,dotprops)
20-
S3method(geom_neuron,hxsurf)
21-
S3method(geom_neuron,list)
22-
S3method(geom_neuron,matrix)
23-
S3method(geom_neuron,mesh3d)
24-
S3method(geom_neuron,neuron)
25-
S3method(geom_neuron,neuronlist)
26-
S3method(geom_neuron,splitneuron)
27-
S3method(geom_neuron,synapticneuron)
28-
S3method(ggplot2_neuron_path,"NULL")
29-
S3method(ggplot2_neuron_path,mesh3d)
30-
S3method(ggplot2_neuron_path,neuron)
31-
S3method(ggplot2_neuron_path,neuronlist)
3217
export(banc_add_synapses)
3318
export(banc_all_synapses)
3419
export(banc_annotate_backbone_proofread)
@@ -48,7 +33,6 @@ export(banc_codex_search)
4833
export(banc_decapitate)
4934
export(banc_edgelist)
5035
export(banc_front_view)
51-
export(banc_ggneuron)
5236
export(banc_ids)
5337
export(banc_islatest)
5438
export(banc_latestid)
@@ -99,9 +83,6 @@ export(choose_banc)
9983
export(dr_banc)
10084
export(elastix_xform)
10185
export(franken_meta)
102-
export(geom_neuron)
103-
export(ggneuron)
104-
export(ggplot2_neuron_path)
10586
export(navis_elastix_xform)
10687
export(register_banc_coconat)
10788
export(with_banc)
@@ -125,7 +106,6 @@ importFrom(reticulate,conda_list)
125106
importFrom(reticulate,import)
126107
importFrom(reticulate,py_install)
127108
importFrom(reticulate,use_condaenv)
128-
importFrom(rlang,.data)
129109
importFrom(stats,na.omit)
130110
importFrom(utils,browseURL)
131111
importFrom(utils,capture.output)

R/cave-tables.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ Please ask for help on #annotation_infrastructure https://flywire-forum.slack.co
100100
#' distributed neural control and behaviour-centric neural modules across the
101101
#' brain-VNC boundary.
102102
#' @export
103-
banc_edgelist <- function(edgelist_view = c("synapses_250226_backbone_proofread_and_peripheral_nerves_counts",
103+
banc_edgelist <- function(edgelist_view = c("synapses_v2_backbone_proofread_and_peripheral_nerves_counts",
104+
"synapses_v2_backbone_proofread_counts",
105+
"synapses_250226_backbone_proofread_and_peripheral_nerves_counts",
104106
"synapses_250226_backbone_proofread_counts",
105107
"synapses_v1_backbone_proofread_counts"),
106108
...){

0 commit comments

Comments
 (0)