#' @title function1
#'
#' @return
#' @export
function1 = function() {
cat("this is pkg2's function1 \n")
lm(c(1,2,3) ~ c(4,9,1))
}
#' @title function2
#'
#' @return
#' @export
function2 = function() {
cat("this is pkg2's function2 \n")
function1() #what if I had added an import of package1? would it know to use pkg1 or pkg2 function1? would this ambiguity even exist in real packages?
}
#' @title function3
#'
#' @return
#' @export
function3 = function() {
cat("this is pkg2's function3 \n")
function1()
testpkg1::function1()
testpkg1::function2()
}
#' @title function4
#'
#' @return
#' @export
function4 = function() {
cat("this is pkg2's function4 \n")
testpkg1::function1() %>% print()
}
#' @title function7
#'
#' @return
#' @export
function7 = function() {
cat("this is pkg2's function7 \n")
testpkg1::function8()
}
#' @title function24
#'
#' @return
#' @export
function24 = function() {
cat("this is pkg2's function24 that is imported in pkg1 \n")
if (0) {
function24()
}
}
function11 = function() {
cat("this is pkg2's function11 \n")
testpkg1::function1()
}
#' @importFrom magrittr %>%
#' @export %>%
NULL
#' @title function47
#'
#' @return
#' @export
function47 = function() {
cat("testpkg2's function47 \n")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.