vscode-R icon indicating copy to clipboard operation
vscode-R copied to clipboard

Could not find tools necessary to compile a package Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.

Open zdlspace0528 opened this issue 3 years ago • 0 comments
trafficstars

When I install R packages in vscode radian,it always gets an error,for example,

r$> remotes::install_github("REditorSupport/languageserver") Downloading GitHub repo REditorSupport/languageserver@HEAD Error: Failed to install 'languageserver' from GitHub: Could not find tools necessary to compile a package Call pkgbuild::check_build_tools(debug = TRUE) to diagnose the problem.

but when I run the same codes in iterm2 radian,it can install the package successfully. 截屏2022-04-04 06 32 16

Environment (please complete the following information):

  • OS: [macOS M1]
  • VSCode Version: [1.66.0]
  • R Version: [4.1.3]
  • vscode-R version: [2.4.0]

Additional context Add any other context about the problem here.

zdlspace0528 avatar Apr 03 '22 23:04 zdlspace0528