Definition:
Let $A$ be a subspace of $X$ with an inclusion $i:A \to X$. Then $r:X \to A$ is called a retraction if $r \circ i = id_A$ that is $r(a)=a$ $\forall a \in A$.
I read the question Is the unit circle $S^1$ a retract of $\mathbb{R}^2$? in whose answer it is stated that the induced homomorphism $i_*$ on the injection $i$ has to be injective as well.
Let $x_0 = (1,0) \in S^1$, then $r:S^1 \to \{x_0\}$ is clearly continuous and a retraction according to the definition. However, the induced homomorphism $i_*:\pi_1(S^1) \to \pi_1(\{x_0\})$ cannot be injective since $\pi_1(S^1)=\mathbb{Z}$ and $\pi_1({\{x_0}\})=0$.
What is wrong with my reasoning?