# Passing options to GraphicsRow

I'm trying to pass the options to a simple function based on GraphicsRow as in the example below, but I get a long list of errors.

showResults[list_, opts : OptionsPattern[]] :=
GraphicsRow[list,  FilterRules[{opts}, Options[GraphicsRow]]]

showResults[{1, 1}]


I cannot spot any error in the syntax of my function. Is it a bug?

I'm using MMA 11.3 on Windows 10.

• The cause of the bug is that GraphicsRow can take a second argument, spacing, which can be a List. So the empty list returned by FilterRules gets interpreted as spacings, and the internal code fails very poorly when it isn't the right shape. – Jason B. Jun 26 '18 at 15:22
• you can also do: showResults[list_, opts : OptionsPattern[GraphicsRow]] := GraphicsRow[list, opts] – kglr Jun 27 '18 at 4:36

showResults[list_, opts : OptionsPattern[ImageSize -> 444]] :=

• @OlegSoloviev The problem was that you submitted a list of rules insead of a sequence of rules to GraphicsRow. Some built-in functions allow for that; others do not. – Henrik Schumacher Jun 26 '18 at 10:32