browseVignettes(“ggplot2”) error - When copy/pasting class problem.

Hi, I'm working on a class assignment and would like some help, if possible. I am just learning analytics and cannot determine what the problem is. please see following:
────── tidyverse 2.0.0 ──
:heavy_check_mark: dplyr 1.1.4 :heavy_check_mark: readr 2.1.5
:heavy_check_mark: forcats 1.0.0 :heavy_check_mark: stringr 1.5.1
:heavy_check_mark: ggplot2 3.5.0 :heavy_check_mark: tibble 3.2.1
:heavy_check_mark: lubridate 1.9.3 :heavy_check_mark: tidyr 1.3.1
:heavy_check_mark: purrr 1.0.2
── Conflicts ────────────────────────────────────────────────────────────────────────── tidyverse_conflicts() ──
:heavy_multiplication_x: dplyr::filter() masks stats::filter()
:heavy_multiplication_x: dplyr::lag() masks stats::lag()
:information_source: Use the conflicted package to force all conflicts to become errors

browseVignettes(“ggplot2”)
Error: unexpected input in "browseVignettes(“"
library(ggplot2)
browseVignettes(“ggplot2”)
Error: unexpected input in "browseVignettes(“"
Connected to your session in progress, last started 2024-Apr-19 21:05:42 UTC (9 minutes ago)
browseVignettes(“ggplot2”)
Error: unexpected input in "browseVignettes(“"
?unexpected input in "browseVignettes"
Error: unexpected symbol in "?unexpected input"

Thank You,
Val

Take a close look at the quotation marks surrounding ggplot2. I suspect you copied the command from a typeset source. Type the command browseVignettes("ggplot2") (or paste what you have, delete the quotation marks and replace them with typed quotation marks), and the command should work.

1 Like

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.