In this post here, the author asks how to show $X$ is irreducible if there exist a proper morphism $\pi:X \rightarrow Y$ between varieties where all the fibers of $f$ are irreducible and are equidimensional.
In one of the comments, a user posted a criterion for checking irreducibility by M. Mustaţă (link) where the assumption for properness of $\pi$ is dropped and only require $X$ to be equidimensional. However, the criterion was still only stated for algebraic varieties.
My question is, can the criterion be generalized for affine schemes of finite type over DVRs? In particular, suppose $R$ is an DVR with $\text{Spec}(R) = \{\eta,s\}$ where $\eta$ is the generic point and $s$ the special point and $$X = \text{Spec}(R[x_1,...,x_n]/(f_1,...,f_m)).$$ Let $\pi: X \rightarrow \text{Spec}(R)$ be the structure map. Suppose both the generic fiber $X_{\eta}$ and the special fiber $X_s$ of $X$ are irreducible and are of dimension $1$. Can we conclude that $X$ must also be irreducible and is of dimension $1$? (if the criterion in the notes applies then $X$ should automatically be equidimensional as the irreducible components of $X$ can only be $X_{\eta}$ or $X_{s}$ or $X_{\eta} \cup X_s$ according to the criterion?)