How to find a script to demonstrate in a read package?

I installed the package bayessand performed the demo as follows:

library(bayess)
demo(Chapter.1)

I wonder how to find a script to read a demo, for example, an R-terminal or, preferably, emacs, gedit, ...?

Thank!

+4
source share
1 answer

Give it a try system.file(package='bayess').

This will give you the path to the folder where the library is bayessstored on your system. Inside this folder, you should see a folder demothat should contain all the demo scripts.

+5
source

Source: https://habr.com/ru/post/1540247/


All Articles