DTedit icon indicating copy to clipboard operation
DTedit copied to clipboard

Edit button leaves warning message on the console each time is pressed

Open andresrcs opened this issue 2 years ago • 5 comments

Whenever the Edit button is pressed it leaves this warning message in the console, this is an issue since it prevents the app logs to get automatically deleted (because there is always a warning).

Warning in grepl("selectize", inputTypes) && !is.null(selectize.options) :
  'length(x) = 2 > 1' in coercion to 'logical(1)'

andresrcs avatar Sep 23 '22 16:09 andresrcs

Okay, thanks, I think this is an issue with R >=4.2.0

as in https://stackoverflow.com/questions/72848442/r-warning-lengthx-2-1-in-coercion-to-logical1

I'll need to find a machine with R >= 4.2.0 to test a solution!

DavidPatShuiFong avatar Oct 02 '22 11:10 DavidPatShuiFong

You could use rig for multiple versions on the same machine

https://github.com/r-lib/rig

andresrcs avatar Oct 02 '22 12:10 andresrcs

Okay, tested this on a R 4.2.2 machine at last.

Error message confirmed

Thanks for the report @andresrcs !

DavidPatShuiFong avatar Nov 01 '22 07:11 DavidPatShuiFong

Fix to this problem now in the latest develop commit. Feel free to test!

DavidPatShuiFong avatar Nov 02 '22 19:11 DavidPatShuiFong

I have tested the fix, the warning message is gone. I don't know if you are planning to close this issue when merging develop into main so I'm going to leave it open so you can close it when you prefer.

andresrcs avatar Nov 20 '22 17:11 andresrcs