klmr / box

Write reusable, composable and modular R code
https://klmr.me/box/
MIT License
829 stars 47 forks source link

Document limitation of replacement functions in modules #337

Closed klmr closed 6 months ago

klmr commented 10 months ago

Document the following restriction:

box::use(so = SeuratObject)
# ... import object etc..

so$DefaultAssay(seurat) <- "RNA"

This yields this error:

Error in Seurat$DefaultAssay(seurat) <- assay : 
  invalid function in complex assignment

[…] having documentation that clearly outlines this would be helpful.

Originally posted by @rschauner in https://github.com/klmr/box/issues/136#issuecomment-1679123022

klmr commented 10 months ago