Skip to content

Commit

Permalink
Calls to internal functions in examples corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
mpru committed Apr 24, 2024
1 parent 8496952 commit 9024f2c
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions R/lang_wrappers_en.R
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ turn_around <- function() .turn_around(lang = "en")
#'
#' This function returns the environment called pkg_env created by the package.
#' It's useful for debugging and checking. It's an internal function, not
#' thought to be used by students, but can be used with karel::get_pkg_env().
#' thought to be used by students, but can be used with karel:::get_pkg_env().
#'
#' @return An enviroment with objects that represent Karel's world.
#'
Expand Down Expand Up @@ -349,7 +349,7 @@ turn_around <- function() .turn_around(lang = "en")
#'
#' @examples
#' generate_world("mundo001")
#' if (FALSE) karel::get_pkg_env()
#' if (FALSE) karel:::get_pkg_env()
#'
get_pkg_env <- function() .get_pkg_env()

Expand All @@ -362,13 +362,13 @@ get_pkg_env <- function() .get_pkg_env()
#' time is stored in \code{pkg_env$moment}. This function is useful for
#' debugging and to get static images to be used in the examples in the handouts
#' for students. It's an internal function, not thought to be used by students,
#' but can be used with karel::plot_static_world().
#' but can be used with karel:::plot_static_world().
#'
#' @param time The requested time
#'
#' @return Prints the plot.
#'
#' @examples
#' if (FALSE) plot_static_world(1)
#' if (FALSE) karel:::plot_static_world(1)
#'
plot_static_world <- function(time) .plot_static_world(time = time, lang = "en")
8 changes: 4 additions & 4 deletions R/lang_wrappers_es.R
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ darse_vuelta <- function() .turn_around(lang = "es")
#' Esta función devuelve un ambiente (R environment) llamado pkg_env, que es
#' creado por el paquete. Se puede usar para probar el funcionamiento del
#' paquete. Es una función interna, no está pensada para ser usada por
#' estudiantes, pero se puede usar con karel::conseguir_amb().
#' estudiantes, pero se puede usar con karel:::conseguir_amb().
#'
#' @return Un ambiente de R con objetos que representan al mundo de Karel.
#'
Expand Down Expand Up @@ -359,7 +359,7 @@ darse_vuelta <- function() .turn_around(lang = "es")
#'
#' @examples
#' generar_mundo("mundo001")
#' if (FALSE) karel::conseguir_amb()
#' if (FALSE) karel:::conseguir_amb()
#'
conseguir_amb <- function() .get_pkg_env()

Expand All @@ -373,14 +373,14 @@ conseguir_amb <- function() .get_pkg_env()
#' útil para revisar el código y para obtener imágenes estáticas que pueden
#' usarse al crear ejemplos y ejercicios en los materiales de estudio para los
#' estudiantes. Es una función interna, no está pensada para ser usada por
#' estudiantes, pero se puede usar con karel::graficar_mundo_estatico().
#' estudiantes, pero se puede usar con karel:::graficar_mundo_estatico().
#'
#' @param momento El momento que se desea graficar.
#'
#' @return Imprime el gráfico.
#'
#' @examples
#' if (FALSE) graficar_mundo_estatico(1)
#' if (FALSE) karel:::graficar_mundo_estatico(1)
#'
graficar_mundo_estatico <- function(momento) {
.plot_static_world(time = momento, lang = "es")
Expand Down
4 changes: 2 additions & 2 deletions man/conseguir_amb.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/get_pkg_env.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/graficar_mundo_estatico.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/plot_static_world.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified tests/testthat/Rplots.pdf
Binary file not shown.

0 comments on commit 9024f2c

Please sign in to comment.