I suggest that this is a non-trivial problem.
I observe it too, but it arises seemingly unpredictably.
"Unknown or unitialised column: XXX"
appears after commands that make no reference to a variable with the name/column XXX.
POSSIBLY the warnings were generated earlier, but the notification of them comes after a different REPL command?
The lack replicable examples reflects the seeming randomness of the error message, alas. I worry it has something to do with a memory violation at a low level, because weird thing like this happen in the RStudio REPL:
warnings()
no warnings yet
expect q_i to be just a numeric vector:
dim(q_i)
NULL
warnings() # still no warnings
head(q_i) # as expected
[1] 1 1 1 1 1 1
length(q_i) #spawns warning naming a column 'pooled' that is in a different variable/df
[1] 400
Warning messages:
1: Unknown or uninitialised column: 'pooled'.
2: Unknown or uninitialised column: 'pooled'.
3: Unknown or uninitialised column: 'pooled'.
4: Unknown or uninitialised column: 'pooled'.
5: Unknown or uninitialised column: 'pooled'.
confirm q_i is just a numeric vector:
str(q_i)
num [1:400] 1 1 1 1 1 1 1 1 1 1 ...
warnings() # 5 warnings still there
Warning messages:
1: Unknown or uninitialised column: 'pooled'.
2: Unknown or uninitialised column: 'pooled'.
3: Unknown or uninitialised column: 'pooled'.
4: Unknown or uninitialised column: 'pooled'.
5: Unknown or uninitialised column: 'pooled'.