Displaying 20 results from an estimated 172 matches for "gettextf".
Did you mean:
gettext
2015 May 09
1
PATCH: library(..., quietly=TRUE) still outputs "Loading required package: ..." (forgot to pass down 'quietly')
...in some cases, e.g.
> library("R.utils", quietly=TRUE)
Loading required package: R.methodsS3
[...]
I traced this to base:::.getRequiredPackages2(), which forgets to pass
'quietly' to an internal library() call:
if (!attached) {
if (!quietly)
packageStartupMessage(gettextf("Loading required package: %s",
pkg), domain = NA)
library(pkg, character.only = TRUE, logical.return = TRUE,
lib.loc = lib.loc) || stop(gettextf("package %s could not be loaded",
sQuote(pkg)), call. = FALSE, domain = NA)
}
It's from that libr...
2005 Sep 27
2
Error in "make check-all"
...rmissions ... OK
* checking DESCRIPTION meta-information ... OK
* checking package dependencies ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking S3 generic/method consistency ... WARNING
Erro: .First.lib failed for 'tcltk'
Call sequence:
2: stop(gettextf(".First.lib failed for '%s'", libraryPkgName(package)),
domain = NA)
1: library(package, lib.loc = lib.loc, character.only = TRUE, verbose =
FALSE)
Interrupted execution
See section 'Generic functions and methods' of the 'Writing R Extensions'
manual.
* che...
2011 Mar 29
1
Typo in tools:::format.check_Rd_metadata()
...se of
a typo in the tools:::format.check_Rd_metadata() function:
format.check_Rd_metadata <-
function(x, ...)
{
c(character(),
if(length(bad <- x$files_with_duplicated_name)) {
unlist(lapply(names(bad)),
function(nm) {
c(gettextf("Rd files with duplicated name '%s':",
nm),
.pretty_format(bad[[nm]]))
})
},
if(length(bad <- x$files_with_duplicated_aliases)) {
unlist(lapply(names(bad)),
fun...
2012 Oct 20
1
R-2.15.1 CMD CHECK output: "Call Sequence"
...ation, where I installed R from CRAN via pkg. Is this a problem unique to me?
cheers,
Mark
heres' a snippet from testing one of my packages under development:
* checking for unstated dependencies in R code ... WARNING
Error: package/namespace load failed for ?metaGSEA?
Call sequence:
2: stop(gettextf("package/namespace load failed for %s", sQuote(package)),
call. = FALSE, domain = NA)
1: library(package, lib.loc = lib.loc, character.only = TRUE, verbose = FALSE)
Execution halted
See the information on DESCRIPTION files in the chapter ?Creating R
packages? of the ?Writing R Exte...
2005 Oct 11
1
Error: .First.lib failed for 'SBMLodeSolveR'
...ile in the src directory which works if loaded
with
dyn.load("/data/devel/SBMLodeSolveR/SBMLodeSolveR/src/SBMLodeSolveR.so")
The error/warning messages are:
* checking S3 generic/method consistency ... WARNING
Error: .First.lib failed for 'SBMLodeSolveR'
Call sequence:
2: stop(gettextf(".First.lib failed for '%s'", libraryPkgName(package)),
domain = NA)
1: library(package, lib.loc = lib.loc, character.only = TRUE, verbose = FALSE)
Execution halted
See section 'Generic functions and methods' of the 'Writing R Extensions'
manual.
* checking...
2009 Nov 02
1
two small wishes (with code sugegstions) for R-core
...be even be forbidden)
# Code suggestion no. 2: please use
write.csv <-
function (...)
{
Call <- match.call(write.table, expand.dots = TRUE)
for (argname in c("col.names", "sep", "dec", "qmethod")) if (!is.null(Call[[argname]]))
warning(gettextf("attempt to set '%s' ignored", argname),
domain = NA)
rn <- eval.parent(Call$row.names)
ap <- eval.parent(Call$append)
Call$col.names <- if (is.logical(ap) && ap) FALSE else {if (is.logical(rn) && !rn) TRUE else NA}
Call$sep <...
2005 Dec 22
1
(no subject)
....First.lib:
.First.lib <- function(lib, pkg) {
library.dynam("anovaGSL", pkg, lib)
}
I think these two things are enough. then I just run R CMD check
anovaGSL (my package name)
followed is the error message:
Error: .First.lib failed for 'anovaGSL'
Call sequence:
2: stop(gettextf(".First.lib failed for '%s'", libraryPkgName(package)),
domain = NA)
1: library(package, lib.loc = lib.loc, character.only = TRUE, verbose
= FALSE)
Execution halted
See section 'Generic functions and methods' of the 'Writing R
Extensions'
manual.
* chec...
2009 May 27
1
"Error: package/namespace load failed"
I am writing my first R package, and I have been getting the following series of errors when I run R CMD check:
* checking S3 generic/method consistency ... WARNING
Error: package/namespace load failed for 'REEMtree'
Call sequence:
2: stop(gettextf("package/namespace load failed for '%s'", libraryPkgName(package)),
call. = FALSE, domain = NA)
1: library(package, lib.loc = lib.loc, character.only = TRUE, verbose = FALSE)
Execution halted
See section 'Generic functions and methods' of the 'Writing R Extensi...
2024 Apr 24
1
Question regarding .make_numeric_version with non-character input
...function. As far as I can understand, the current code (https://github.com/wch/r-source/blob/66b91578dfc85140968f07dd4e72d8cb8a54f4c6/src/library/base/R/version.R#L50-L56) runs the following steps in case of non-character input:
>>> |
>>> | 1. It creates a message named msg using gettextf.
>>> | 2. Such object is then passed to stop(msg) or warning(msg) according to the following condition
>>> |
>>> | tolower(Sys.getenv("_R_CHECK_STOP_ON_INVALID_NUMERIC_VERSION_INPUTS_") != "false")
>>> |
>>> | However, I don't und...
2009 May 26
1
Bug in "$<-.data.frame" yields corrupt data frame (PR#13724)
...base
registered S3 method for $<- from namespace base
namespace:base
with value
function (x, i, value)
{
cl <- oldClass(x)
class(x) <- NULL
nrows <- .row_names_info(x, 2L)
if (!is.null(value)) {
N <- NROW(value)
if (N > nrows)
stop(gettextf("replacement has %d rows, data has %d",
N, nrows), domain = NA)
if (N < nrows && N > 0L)
if (nrows%%N == 0L && length(dim(value)) <= 1L)
value <- rep(value, length.out = nrows)
else stop(gettext...
2024 Apr 25
1
Question regarding .make_numeric_version with non-character input
...as I can understand, the current code (https://github.com/wch/r-source/blob/66b91578dfc85140968f07dd4e72d8cb8a54f4c6/src/library/base/R/version.R#L50-L56) runs the following steps in case of non-character input:
>> |
>> | 1. It creates a message named msg using gettextf.
>> | 2. Such object is then passed to stop(msg) or warning(msg) according to the following condition
>> |
>> | tolower(Sys.getenv("_R_CHECK_STOP_ON_INVALID_NUMERIC_VERSION_INPUTS_") != "false")
>> |
>...
2005 Aug 15
2
R CMD check failure on minimal code
...ectories ... WARNING
Subdirectory 'src' contains no source files.
* checking R files for syntax errors ... OK
* checking R files for library.dynam ... OK
* checking S3 generic/method consistency ... WARNING
Error: unable to load R code in package 'ExpressCGH1'
Call sequence:
2: stop(gettextf("unable to load R code in package '%s'",
libraryPkgName(package
)),
call. = FALSE, domain = NA)
1: library(package, lib.loc = lib.loc, character.only = TRUE, verbose =
FALSE)
Execution halted
See section 'Generic functions and methods' of the 'Writing R Extensi...
2024 Mar 29
1
Question regarding .make_numeric_version with non-character input
...on of .make_numeric_version() function. As far as I can understand, the current code (https://github.com/wch/r-source/blob/66b91578dfc85140968f07dd4e72d8cb8a54f4c6/src/library/base/R/version.R#L50-L56) runs the following steps in case of non-character input:
1. It creates a message named msg using gettextf.
2. Such object is then passed to stop(msg) or warning(msg) according to the following condition
tolower(Sys.getenv("_R_CHECK_STOP_ON_INVALID_NUMERIC_VERSION_INPUTS_") != "false")
However, I don't understand the previous code since the output of Sys.getenv("_R_CHECK_S...
2024 Apr 25
2
Question regarding .make_numeric_version with non-character input
...n. As far as I can understand, the current code (https://github.com/wch/r-source/blob/66b91578dfc85140968f07dd4e72d8cb8a54f4c6/src/library/base/R/version.R#L50-L56) runs the following steps in case of non-character input:
> |
> | 1. It creates a message named msg using gettextf.
> | 2. Such object is then passed to stop(msg) or warning(msg) according to the following condition
> |
> | tolower(Sys.getenv("_R_CHECK_STOP_ON_INVALID_NUMERIC_VERSION_INPUTS_") != "false")
> |
> | Howe...
2010 Jun 16
1
Problems loading RWeka and rJava under R 2.10.1
...and the RWeka package 0.4-1 and rJava 0.8-4. are successfully
installed.
I get two error messages while loading both packages.
library(RWeka)
Error in get(Info[i, 1], envir = env) :
internal error -3 in R_decompress1
Error: package/namespace load failed for 'RWeka'
2: stop(gettextf("package/namespace load failed for '%s'", package),
call. = FALSE, domain = NA)
1: library(RWeka)
library(rJava)
Error in get(Info[i, 1], envir = env) :
internal error -3 in R_decompress1
Error: package/namespace load failed for 'rJava'
2: stop(gettext...
2006 Jan 20
1
R CMD check, NAMESPACE, import: bad error?
...development (unstable) (2006-01-15 r37092)
* checking for file 'DNAhelperseth/DESCRIPTION' ... OK
[snip]
* checking R files for library.dynam ... OK
* checking S3 generic/method consistency ... WARNING
Error: package/namespace load failed for 'DNAhelperseth'
Call sequence:
2: stop(gettextf("package/namespace load failed for '%s'", libraryPkgName(package)), call. = FALSE, domain = NA)
1: library(package, lib.loc = lib.loc, character.only = TRUE, verbose = FALSE)
Execution halted
See section 'Generic functions and methods' of the 'Writing R Extensio...
2015 Jun 08
2
Bug in loadNamespace?
...and I get an error. For example, in a new
session started with R --vanilla from the terminal:
> Sys.setlocale(locale='en_US.UTF-8');grid::gpar()
[1] "en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_CA.UTF-8"
Error in if (R_version_built_under < "3.0.0") stop(gettextf("package %s
was built before R 3.0.0: please re-install it", :
missing value where TRUE/FALSE needed
I've tried debugging this, and the bad lines are these, in loadNamespace:
R_version_built_under <- as.numeric_version(built$R)
if (R_version_built_under < "3.0.0")...
2006 Feb 22
1
unused factor levels in reshape
When reshaping a dataframe in which there are unused factor levels in the id variable, I get the following error:
Error in if (!all(really.constant)) warning(gettextf("some constant variables (%s) are really varying", :
missing value where TRUE/FALSE needed
For example,
> df <- data.frame(i = factor(rep(1:5, each = 2)), t = factor(rep(1:2, 5)), x = rep(rbinom(5, 1, 0.5), each = 2), y = rpois(10, 10))
> subdf <- subset(df, i %in...
2020 Jan 10
2
SUGGESTION: Settings to disable forked processing in R, e.g. parallel::mclapply()
...value <- switch(value,
"1"=, "TRUE"=, "true"=, "True"=, "yes"=, "Yes"= TRUE,
"0"=, "FALSE"=,"false"=,"False"=, "no"=, "No" = FALSE,
stop(gettextf("invalid environment variable value: %s==%s",
"R_FORK_ALLOWED", value)))
value <- as.logical(value)
} else {
value <- TRUE
}
value <- getOption("fork.allowed", value)
if (is.na(value)) {
stop(gettextf("invalid op...
2006 Jun 06
1
vague errors on R CMD check for very minimal S4-style package
...checking index information ... OK
* checking package subdirectories ... OK
* checking R files for syntax errors ... OK
* checking R files for library.dynam ... OK
* checking S3 generic/method consistency ... WARNING
Error: package/namespace load failed for 'simplepkg'
Call sequence:
2: stop(gettextf("package/namespace load failed for '%s'",
libraryPkgName(package)),
call. = FALSE, domain = NA)
1: library(package, lib.loc = lib.loc, character.only = TRUE, verbose =
FALSE)
Execution halted
See section 'Generic functions and methods' of the 'Writing R
Extensi...