Rsdoctor is a build analysis tool that can visually display the compilation time of each loaders and plugins.
When you need to debug Rstest's build outputs or build processes, you can use Rsdoctor for troubleshooting.
In Rstest, you can enable Rsdoctor analysis as follows:
RSDOCTOR=true
env variable before the CLI command:As Windows does not support the above usage, you can also use cross-env to set environment variables. This ensures compatibility across different systems:
After running the above commands, Rstest will automatically register the Rsdoctor plugin, and after the build is completed, it will open the build analysis page. For complete features, please refer to Rsdoctor document.