I am trying to use the R Studio View() function programatically / in a package.
When I use utils::View(), a different viewer than the R Studio viewer (it appears to be the one built-in to R) is used, but if I use View() (without specifying where the function is exported from), issues come up during R CMD CHECK.
I checked the R Studio cheatsheet, but this did not show whether / from where the R Studio View() is exported.
View(readr::read_lines(script_filename))utils::View()vsView()I wouldn't know why, will have to see....<environment: namespace:utils>at the end of the print out when you typeViewin R console. As an aside, suggesting that the user use theView()function to view feels like over-optimization. Personally, I'd only go as far as to provide a print method and call it a day.