enblacar / SCpubr

Generate high quality, publication ready visualizations for single cell transcriptomics data.
https://enblacar.github.io/SCpubr-book/
GNU General Public License v3.0
155 stars 12 forks source link

Error with Sankey Plot #12

Closed JessicaP94 closed 1 year ago

JessicaP94 commented 1 year ago

Hello, I am trying to do a Sankey Plot but I receive this error and no plot is done.

Error: 'do_SankeyPlot' is not an exported object from 'namespace:SCpubr'

How can I solve it?

Thanks

enblacar commented 1 year ago

Hi @JessicaP94, thanks for using my package!

That error is basically due to the fact that there are some functions outside the official CRAN package, due to several reasons beyond my capability to fix them (they make use of a github package, they write to the file system, etc).

SCpubr::do_SankeyPlot() is one of them. If you want to make use of these functions, please always refer to SCpubr's GitHub releases and always download the latest development stable release (denoted by "-dev-stable" in the name). Those are exactly the same as the latest CRAN release, but with the additional functions. Follow the instructions here to download it!

In your specific case, please have a look at SCpubr::do_AlluvialPlot(), as this will become the official CRAN replacement of SCpubr::do_SankeyPlot() once update 1.1.0 goes to CRAN.

Hope this helps! Enrique

JessicaP94 commented 1 year ago

Hello Enrique, so for now is it normal that I get the same error if I try to do an Alluvial Plot?

Thank you!

On Mon, 12 Dec 2022 at 11:30, Enrique Blanco Carmona < @.***> wrote:

Hi @JessicaP94 https://github.com/JessicaP94, thanks for using my package!

That error is basically due to the fact that there are some functions outside the official CRAN package, due to several reasons beyond my capability to fix them (they make use of a github package, they write to the file system, etc).

SCpubr::do_SankeyPlot() is one of them. If you want to make use of these functions, please always refer to SCpubr's GitHub releases https://github.com/enblacar/SCpubr/releases and always download the latest development stable release (denoted by "-dev-stable" in the name). Those are exactly the same as the latest CRAN release, but with the additional functions. Follow the instructions here https://github.com/enblacar/SCpubr/releases/tag/v1.0.4-dev-stable to download it!

In your specific case, please have a look at SCpubr::do_AlluvialPlot() https://enblacar.github.io/SCpubr-book/13-AlluvialPlot.html, as this will become the official CRAN replacement of SCpubr::do_SankeyPlot() once update 1.1.0 goes to CRAN.

Hope this helps! Enrique

— Reply to this email directly, view it on GitHub https://github.com/enblacar/SCpubr/issues/12#issuecomment-1346239770, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3D7PXJXVJ5PS32POGTYAULWM35DBANCNFSM6AAAAAAS3HPGWM . You are receiving this because you were mentioned.Message ID: @.***>

enblacar commented 1 year ago

Hi @JessicaP94,

Yes, as it will only be available after update 1.1.0 or if you install the most recent commit of the package (might be prone to errors). But installing the latest release should allow you to use do_SankeyPlot().

Best, Enrique

enblacar commented 1 year ago

Hi @JessicaP94,

SCpubr version 1.1.0 is already on CRAN!

Please consider updating to get all the new functionalities:

install.packages("SCpubr")

Thanks again for using the package! Enrique