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.
Asked
Active
Viewed 3,566 times
2

Ankit Raibole
- 35
- 2
- 7
-
1What directory did you install to and what directory is VS code looking in? – bstrain Feb 06 '21 at 10:09
-
Are you using a virtual machine or a desktop? – costebk08 Jun 14 '21 at 19:17
3 Answers
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

Israel Cortés
- 59
- 1