I want to solve this equation x^2= 4 mod 3 in R, I tried many commands but that commands are not related to this equation. Please help me to find the command. For example, I tried
modlin(2,4,3)
# [1] 2
modpower(2,4,3)
# [1] 1
and five other commands.