Check the length of the popup vector. It must match the number of rows of the dataset.
checkDimPop(x, data)
x
The popup vector
data
The dataset