Questions tagged [suppressmessage]
39 questions
2
votes
1 answer
Why do "Joining, by =" messages bleed through in Rmarkdown code blocks despite using warning=FALSE? Should I report as a bug?
A helpful sequence here (suppress comment "joining by..." when running dplyr::left_join) shows that you can suppress the message by explicitly stipulating the joining variable or by wrapping the whole dplyr block in suppressWarnings to get rid of…

cpsyctc
- 41
- 5
2
votes
0 answers
R: How to suppress print output when the user assigns output of your function to a variable?
Background
The t.test() function returns printed output as follows:
set.seed(2)
dat = rnorm(n = 50, mean = 0, sd = 1)
t.test(x = dat, mu = 0)
One Sample t-test
data: dat
t = 0.43276, df = 49, p-value = 0.6671
alternative hypothesis: true mean…

pomodoro
- 297
- 3
- 12
2
votes
1 answer
SonarQube C# SuppressMessage, Category for S1871
I'm trying to use the System.Diagnostics.CodeAnalysis.SuppressMessage attribute to stop sonarqube raising this issue on a specific method in our codebase. I'm not sure exactly what form the suppress message attribute should take. I have tried a few…

jbutcher
- 23
- 1
- 7
2
votes
1 answer
R - Suppress try() output to console when trapping an Rselenium expression
The following code sends output to the console when the expression fails even though the try() argument silent = TRUE.
dd = try(unlist(remDr$findElement("css", "#ctl00_mainA")), silent = TRUE)
suppressMessages() does not suppress the output.
dd =…

LWRMS
- 547
- 8
- 18
2
votes
1 answer
Stylecop SuppressMessage on specific namespace
i got my enums collected in a namespace. Because of that, i have a *.cs file, that contains enums, no classes. Stylecop complains, and i want to supress it, but just for this file/namespace. Not globally, so i dont want to turn off the rule.
…

Otterprinz
- 459
- 3
- 10
2
votes
3 answers
SP2101: Method body must not contain more than 120 code lines - How can I suppress this?
I have a method that goes through loads of file types like so:
case ".jpg":
res = "image/jpeg";
break;
case ".pdf":
res = "application/pdf";
break;
case ".doc":
res = "application/msword";
break;
..this goes on for a…

DevDave
- 6,700
- 12
- 65
- 99
1
vote
3 answers
Powershell Get-Service (Stop) but NOT display status "waiting for service to stop..."
Basically, I don't have an issue with the action being taken. My question is about the status output of the action "waiting for..." message. Is there a way to suppress that message?
Example:
PS C:\Users\a.real.person.maybe> Get-Service…

Kazic
- 47
- 3
1
vote
0 answers
Python docx2pdf : How to suppress the output message HBox(children=(FloatProgress(value=0.0, max=6.0), HTML(value='')))
When running the following code
from docx2pdf import convert
convert(path)
it prints the following output followed by a blank line
HBox(children=(FloatProgress(value=0.0, max=6.0), HTML(value='')))
Is there a way to suppress this output message?

ASE
- 1,702
- 2
- 21
- 29
1
vote
3 answers
How to suppress gradle warning about Deprecated Gradle features?
I am using the latest Gradle v7.2
When I compile it gave me warning
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and…

Paul Verest
- 60,022
- 51
- 208
- 332
1
vote
1 answer
Suppress (hard to catch) output of an R function
Is there any way to suppress the output generated by the function layer_dense() of the R package keras?
Any of the four variants below leads to the following output on the first layer_dense() call, which I want to avoid:
2020-12-25 22:52:32.777776:…

Marius Hofert
- 6,546
- 10
- 48
- 102
1
vote
1 answer
Using VBA how to prevent a message from appearing when opening a file?
I'm creating a macro which opens numerous files, refreshes them, and then saves and closes. All is running smoothly however for 2 of the files when they are opened a message pops up which reads "Files run on an inclusion list - titles may be…

R. Patrick-White
- 83
- 1
- 2
- 12
1
vote
2 answers
VS2010 / Code Analysis: Turn off a rule for a project without custom ruleset
...any change?
The scenario is this:
For our company we develop a standard how code should look.
This will be the MS full rule set as it looks now.
For some specific projects we may want to turn off specific rules. Simply because for a specific…

TomTom
- 61,059
- 10
- 88
- 148
1
vote
1 answer
Filtering rules based on functionality
I am pretty sure what I am about to ask is not possible, but I am hoping experts on Code Analysis may be able to suggest a workaround.
I am trying to find a way to exclude Code Analysis warning in GlobalSuppressions.cs based on functionality. For…

zam6ak
- 7,229
- 11
- 46
- 84
1
vote
0 answers
Exclude namespace from FxCop code analysis
Possible Duplicate:
StyleCop/FxCop 10 - How do you properly suppress a message only on a namespace level?
How do I suppress FxCop rule 'DoNotCatchGeneralExceptionTypes' with SupressMessage?
I have a namespace ABC.Schema which has some classes.…

Jugal Panchal
- 1,448
- 16
- 20
0
votes
0 answers
BAT Suppress MOVE result Within For
FOR /F "tokens=*" %%g IN ('move a.txt b.txt') do (SET VAR=%%g)
How can I suppress error message of MOVE? Without FOR, I can do >nul. But in FOR, >nul is getting error.
Thanks!
I tried to put >nul before move, within single quote, or after single…

qazzzlyt
- 9
- 2