acorg / Racmacs

Racmacs R package for performing antigenic cartography
https://acorg.github.io/Racmacs/
GNU Affero General Public License v3.0
20 stars 9 forks source link

`titerTableFlat` function not found #135

Closed bamueh closed 1 year ago

bamueh commented 2 years ago

I'm getting this error when trying to use the titerTableFlat function:

> titerTableFlat(m)
Error in titerTableFlat(m) : could not find function "titerTableFlat"
drserajames commented 2 years ago

The function isn't exported. It's a simple fix for the next update (also there's a typo in the helpful "effecting" should be "affecting")

As a workaround:

  1. If you have your own version of Racmacs that you edit, you can add the line #' @export just above #' @rdname titerTable on line 104 of map_props.R
  2. Depending on what you're trying to achieve, you could make a new map object and use titerTable so that the layers are preserved on the old map map object.
bamueh commented 2 years ago

Thanks a lot, Sarah!

shwilks commented 1 year ago

This is a bit of a backend function which I would imagine is very rarely used and likely to be confusing to most people so I'm not keen to export it, but happy to hear arguments otherwise. You can still access unexported functions using the ::: syntax, i.e. Racmacs:::titerTableFlat()