Thank you very much, After trying to figure it out, It turned out that Rstudio version was old and when I update it the error message was gone
Error while exporting GEOdataset ( Error in if (num_colors < 256) { : missing value where TRUE/FALSE needed)
Dear colleagues, I am trying to export GEO data series using get GEO, however, when I use this command, I get the following error
gset <- getGEO("GSE4600", GSEMatrix =TRUE, getGPL=FALSE)
**Found 1 file(s)
GSE4600_series_matrix.txt.gz
Using locally cached version: C:\Users\AppData\Local\Temp\RtmpuI3VFM/GSE4600_series_matrix.txt.gz
Error in if (num_colors < 256) { : missing value where TRUE/FALSE needed**
How to solve this? I do not understand what is the error
• 1,839 views
•
link
1 answer
This statement if (num_colors < 256) can be TRUE or FALSE only if num_colors is a number, because that number will make a statement go one way or the other. If num_colors is a non-number, say a string, the statement outcome will be undefined and therefore can't be evaluated.
In short, you need to find out what value is assigned to num_colors and make sure it is a number.
• 0 views
•
link
• 0 views
•
link
Log in to answer this question.