In this paper we investigate the (g−2)μ discrepancy in the context of the R-parity conserving next-to-minimal supersymmetric Standard Model plus right-handed neutrinos superfields. The model has the ability to reproduce neutrino physics data and includes the interesting possibility to have the right-handed sneutrino as the lightest supersymmetric particle and a viable dark matter candidate. Since right-handed sneutrinos are singlets, no new contributions for δaμ with respect to the MSSM and NMSSM are present. However, the possibility to have the right-handed sneutrino as the lightest supersymmetric particle opens new ways to escape Large Hadron Collider and direct detection constraints. In particular, we find that dark matter masses within 10≲mν˜R≲600 GeV are fully compatible with current experimental constraints. Remarkably, not only spectra with light sleptons are needed, but we obtain solutions with mμ˜≳600 GeV in the entire dark matter mass range that could be probed by new (g−2)μ data in the near future. In addition, dark matter direct detection experiments will be able to explore a sizable portion of the allowed parameter space with mν˜R≲300 GeV, while indirect detection experiments will be able to probe a much smaller fraction within 200≲mν˜R≲350 GeV.