I'm trying to create a sideways column type based on column type c. At the moment it looks like this: 
I want to put the expression "long word" in the vertical middle of the column and remove the error droping my text text text ... field. I searched and tried but I didn't succed.
This is my minmal working example:
\documentclass[11pt, a4paper]{article}
\usepackage{lmodern}
\usepackage{array}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{tabularx}
\usepackage{rotating}
\newcolumntype{R}{>{\begin{sideways}}c<{\end{sideways}}}
\begin{document}
\begin{tabularx}{\textwidth}{|R|X|}
\hline
\rotatebox{270}{1234} & text\\
\hline
long word & text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text \\
\hline
\end{tabularx}
\end{document}

