Skip to content

Commit

Permalink
Revert "tests for ambiguity"
Browse files Browse the repository at this point in the history
This reverts commit be3cec2.
  • Loading branch information
deeenes committed Nov 18, 2024
1 parent be3cec2 commit d206f0f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 49 deletions.
48 changes: 0 additions & 48 deletions R/log.R
Original file line number Diff line number Diff line change
Expand Up @@ -396,51 +396,3 @@ has_logfile <- function(pkg = 'OmnipathR'){
omnipath_set_console_loglevel('trace')

}


#' Include a welcome message in the log with the package version
#'
#' @importFrom logger log_info
#' @noRd
log_welcome <- function(pkg) {

log_info('Welcome to OmnipathR!')
log_info('OmnipathR version: %s', packageVersion(pkgname))

}


#' Log appender that stores the messages for later use
#'
#' @importFrom magrittr %<>%
#' @noRd
appender_delay <- function(pkg) {

force(pkg)

structure(
function(lines) {

pkg_env(pkg)$delayed_log %<>% c(lines)

},
generator = deparse(match.call()),
pkg = pkg
)

}


#' Changes the logfile of a loaded package
#'
#' In `init_logger` we set up two log appanders, one for the console and one
#' for a file output. In the beginning, we may not know the file yet, hence we
#' temporarily use an `appender_delay` instead. This function should be called
#' once the target file become known. Then we copy the delayed and stored
#' messages into the log file, create an appender for it, and continue logging
#' as normal.
#'
#' @noRd
switch_logfile <- function(pkg, path) {

}
2 changes: 1 addition & 1 deletion tests/testthat/test_import.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# This file is part of the `OmnipathR` R package
#
# Copyright
# 2018-2024
# 2018-2020
# Saez Lab, Uniklinik RWTH Aachen, Heidelberg University
#
# File author(s): Alberto Valdeolivas
Expand Down

0 comments on commit d206f0f

Please sign in to comment.