2

I have installed R in vscode and all its extensions. I tried installing packages through vscode terminal.But after successfull installation when run the code it says no package called "reshape2"(i used library("reshape2")) to import the library.

Ankit Raibole
  • 35
  • 2
  • 7

3 Answers3

1

Just try to install in command prompt and then try to install in vs code editor.

ABS
  • 46
  • 4
1

Try the following command in your terminal,

install.packages(x) library(x)

NB: Replace x with your library name

Codemaker2015
  • 12,190
  • 6
  • 97
  • 81
1

Try the following command in your terminal,

"C:\Program Files\R\R-4.1.0\bin\x64\R.exe" --vanilla -e  "install.packages('reshape2', repos='http://cran.us.r-project.org')"

Note: With the path of your R executable