../inst/include/Eigen/src/Core/MathFunctions.h:487:16: error: no member named 'Rlog1p' in namespace 'std'; did you mean 'log1p'?
As mentioned in conda-forge/r-base-feedstock#163 (comment), I successfully installed sctransform in Mac silicon M1 Max by first run
export PKG_CPPFLAGS="-DHAVE_WORKING_LOG1P"
in the terminal and then install the package in R.