Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subset #6

Open
ZeitgeberH opened this issue Apr 18, 2020 · 1 comment
Open

subset #6

ZeitgeberH opened this issue Apr 18, 2020 · 1 comment

Comments

@ZeitgeberH
Copy link

ZeitgeberH commented Apr 18, 2020

Hi
I am trying to run the example code, and got this error. It looks like subset.hxsurf somehow broken.

amygdala.codes = mousebrain$neuropil_full_names[grepl("amygdala",mousebrain$neuropil_full_names, ignore.case = TRUE)]
plot3d(outline, col = "pink", alpha = 0.1)
plot3d(subset(mousebrain$Vertices, amygdala.codes), alpha = 0.5)
Error in subset.data.frame(mousebrain$Vertices, amygdala.codes) :
'subset' must be logical

My sessioninfo() output:

sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.3 LTS

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1

locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] mouselightr_0.1.0 nat_1.10.1 rgl_0.100.54

loaded via a namespace (and not attached):
[1] igraph_1.2.5 Rcpp_1.0.4.6 knitr_1.28 magrittr_1.5
[5] nat.utils_0.5.1 xtable_1.8-4 R6_2.4.1 rlang_0.4.5
[9] filehash_2.4-2 fastmap_1.0.1 nabor_0.5.0 tools_3.6.3
[13] webshot_0.5.2 xfun_0.13 miniUI_0.1.1.1 htmltools_0.4.0
[17] crosstalk_1.1.0.1 yaml_2.2.1 digest_0.6.25 shiny_1.4.0.2
[21] later_1.0.0 codetools_0.2-16 htmlwidgets_1.5.1 promises_1.1.0
[25] manipulateWidget_0.10.1 mime_0.9 compiler_3.6.3 jsonlite_1.6.1
[29] httpuv_1.5.2 pkgconfig_2.0.3

@jefferis
Copy link
Collaborator

@alexanderbates I think your demo needs fixing – see also https://groups.google.com/forum/#!topic/nat-user/O5BAuM0LhTk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants