Sorry for a novice question.
My intuition is that for every ring $R$ in algebraic geometry, $\text{Spec}(R)$ is a concept like a manifold.
In manifold theory, we can consider the notion of the Lie group.
Finally, I find 'The algebraic group theory' like the Lie group in manifold theory. (is it correct intuition?)
My question: Is there an easier way to make $\text{Spec}(R)$ into a topological group or ring? Or is there a theory for that?
Yes! There are several important examples of groups that are also affine schemes (the spectrum of a ring). These are called affine group-schemes, and I bet that you already know many examples of these.
One particularly nice example is the matrix group $\mathsf{GL}_n$. To define it, consider the polynomial ring $\mathbf{Z}[x_{11}, \dots, x_{nn}, t]$ with $n^2 + 1$ variables. Call $\det$ the polynomial obtained by taking the determinant of the matrix whose entries are the variables $x_{ij}$ and form the quotient ring $R = \mathbf{Z}[x_{11}, \dots, x_{nn}, t]/(t\cdot \det -1)$. Then, one can show that $\mathsf{GL}_n = \mathrm{Spec}(R)$ is an affine-group scheme. (Think first about the case $n = 1$).
A great (free) reference to start learning about these is Milne's notes: https://www.jmilne.org/math/CourseNotes/iAG200.pdf
More generally, you might be interested in learning about the functorial perspective of a group object in a category; of which Lie groups, affine group-schemes, topological groups, groups, algebraic groups, and more are all examples.
https://en.wikipedia.org/wiki/Group_object#:~:text=In%20category%20theory%2C%20a%20branch,the%20group%20operations%20are%20continuous.