# NOT RUN {
# }
# NOT RUN {
requires Macaulay2
getOption("m2r")
get_m2_path()
set_m2_path()
## each of these functions can be used statically as well
(m2_path <- get_m2_path())
set_m2_path("/path/to/m2/directory")
get_m2_path()
set_m2_path(m2_path) # undoes example
# if you'd like to use the cloud, after you library(m2r)
# and before you use m2() type
set_m2_path(NULL)
# alternatively, if you have already been using m2, do:
stop_m2()
set_m2_path(NULL)
m2("1+1")
# }
Run the code above in your browser using DataLab