Error in library(sendmailR) : there is no package called 'sendmailR'

Hi,

The R script works fine from R studio ( in Windows), but I ran it from the command line I got the error shown below.
Error in library(sendmailR) : there is no package called 'sendmailR'
The package sendmailR is installed.

"C:\Program Files\R\R-3.6.2\bin\Rscript" -e "source('sendToOutlook.R')"
-- Attaching packages --------------------------------------- tidyverse 1.3.0 --
v ggplot2 3.2.1 v purrr 0.3.3
v tibble 2.1.3 v dplyr 0.8.3
v tidyr 1.0.0 v stringr 1.4.0
v readr 1.3.1 v forcats 0.4.0
-- Conflicts ------------------------------------------ tidyverse_conflicts() --
x dplyr::filter() masks stats::filter()
x dplyr::lag() masks stats::lag()
Error in library(sendmailR) : there is no package called 'sendmailR'
Calls: source -> withVisible -> eval -> eval -> library
Execution halted

Hi, can someone help please? Thanks.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.