Giter Club home page Giter Club logo

Comments (8)

canholyavkin avatar canholyavkin commented on May 23, 2024 1

Sure. I'll check and write the results here.

from tidybulk.

stemangiola avatar stemangiola commented on May 23, 2024

Hello,

this message comes from edgeR (edgeR::filterByExpr), I would suggest to write to the maintainers.

All our messages are correctly wrapped under message() for this exact reason :)

from tidybulk.

mblue9 avatar mblue9 commented on May 23, 2024

@stemangiola or could it be coming from this line in tidybulk https://github.com/stemangiola/tidybulk/blob/master/R/functions.R#L2568

from tidybulk.

stemangiola avatar stemangiola commented on May 23, 2024

@stemangiola or could it be coming from this line in tidybulk https://github.com/stemangiola/tidybulk/blob/master/R/functions.R#L2568

Interesting! I have to double check although in that message there is no ## and is wrapped with the message() function which should respect the suppression.

from tidybulk.

stemangiola avatar stemangiola commented on May 23, 2024

The keep_variable() function prints out the following phrase by default:
## Getting the 500 most variable genes

While it is not important for scripting, the message stays at the R markdown document even I designate knitr::opts_chunk$set(message = F)

Is it possible to suppress this message?

@canholyavkin do you feel like trying to comment the line https://github.com/stemangiola/tidybulk/blob/master/R/functions.R#L2568 and see if that issue goes away?

The issue is that the message() function should allow for silencing with global parameters. I am a bit puzzled.

from tidybulk.

canholyavkin avatar canholyavkin commented on May 23, 2024

I commented the line at https://github.com/stemangiola/tidybulk/blob/master/R/functions.R#L2568.

When I set knitr::opts_chunk$set(message = F) or knitr::opts_chunk$set(message = T) the message of ## Getting the 500 most variable genes is gone now.

from tidybulk.

stemangiola avatar stemangiola commented on May 23, 2024

I commented the line at https://github.com/stemangiola/tidybulk/blob/master/R/functions.R#L2568.

When I set knitr::opts_chunk$set(message = F) or knitr::opts_chunk$set(message = T) the message of ## Getting the 500 most variable genes is gone now.

Alright, @mblue9 is right as usual. XD

Thanks for doing it. The standard way to suppress messages is to wrap a command in suppressMessages(). That should work. I am not sure why knitr does not gives the same result.

Our approach is correct (using message() to print messages), unless I am missing something big.

from tidybulk.

canholyavkin avatar canholyavkin commented on May 23, 2024

Thank you. :) suppressMessages() is worked. Have I nice day.

from tidybulk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.