Re: [R] Regarding Issue Running Parallel Computing on Linux RHEL version 8

2025-01-21 Thread Ivan Krylov via R-help
ttps://www.burns-stat.com/documents/books/the-r-inferno/> to find out how that happened. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the pos

Re: [R] Regarding Issue Running Parallel Computing on Linux RHEL version 8

2025-01-14 Thread Ivan Krylov via R-help
r N CPUs. Try running your script with the environment variable OPENBLAS_NUM_THREADS set to the string "1". It might be possible to speed up the script by setting OPENBLAS_NUM_THREADS=2 and dividing the number of child processes by the same number. -- Best regards, Ivan ___

Re: [R] Regarding Issue Running Parallel Computing on Linux RHEL version 8

2025-01-14 Thread Ivan Krylov via R-help
gt; library(lubridate) > library(tis) > library(tsoutliers) Could you identify and share the parts of the script that launch the computation in parallel? -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https

Re: [R] Help Parsing String? From HTML

2025-01-05 Thread Ivan Krylov via R-help
n-readable text, not machine readable JSON), but the good news is that mystring |> xml_text() |> jsonlite::parse_json() should give you a named list with the desired contents. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUB

Re: [R] mclapply hanging occasionally on macos

2024-12-31 Thread Ivan Krylov via R-help
ds on the BLAS. What's your sessionInfo()? If you don't get a good answer here, try r-sig-...@r-project.org. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-he

Re: [R] Mutate issue help needed

2024-12-17 Thread Ivan Krylov via R-help
ode from your messages, I would recommend composing in plain text: https://stat.ethz.ch/pipermail/r-help/2024-December/480371.html -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/li

Re: [R] Confirmation of no Electronic Communication functionality

2024-12-13 Thread Ivan Krylov via R-help
nality? (For example, does download.file() or install.packages() count as one?) There may be some documents useful for you at <https://www.r-project.org/certification.html>. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNS

Re: [R] Issue with non-standard file 'vert.txt' in R CMD check

2024-11-20 Thread Ivan Krylov via R-help
the current directory because the user may have a different important file named "vert.txt" in the current directory. Next time you have a similar question, it's better addressed to r-package-de...@r-project.org, not r-help@r-project.org. -- Best regards, Ivan [1] https://github.co

Re: [R] Invalid term in model formula with gmm after formula.tools is loaded

2024-11-04 Thread Ivan Krylov via R-help
eady reported to the 'formula.tools' maintainer [*], so there isn't much else to do about it. -- Best regards, Ivan [*] https://github.com/decisionpatterns/formula.tools/issues/11 __ R-help@r-project.org mailing list -- To

Re: [R] Invalid term in model formula with gmm after formula.tools is loaded

2024-11-01 Thread Ivan Krylov via R-help
to work once again (Is there a way to truly unregister an S3 method?) Perhaps gmm::getDat could be made more robust by working directly on the formula/call object instead of going through the string representation. -- Best regards, Ivan [*] https://stat.ethz.ch/pipermail/r-help/2024-October/48

Re: [R] The RV coinertia coefficient to interpret multivariate analysis plots

2024-10-15 Thread Ivan Krylov via R-help
Different scalings may have resulted in different subsets of related variables passing the "importance" threshold. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/lis

Re: [R] Warning object has offset 0. PDF file

2024-10-14 Thread Ivan Krylov via R-help
bout the file once again, but it will also produce a reconstructed file, which won't have this particular problem. "qpdf" tries very hard to be "loss-less" about its transformations, so once you verify that the reconstructed file is fine, you can replace the original with i

Re: [R] Time zones in POSIClt objects

2024-10-11 Thread Ivan Krylov via R-help
; do.call(c, args=_) Its 'tzone' attribute exists mostly for presentation purposes, so even if you lose it, the exact point in UTC-relative time is still intact. -- Best regards, Ivan [1] https://en.cppreference.com/w/c/chrono/mktime [2] https://pubs.opengroup.org/onlinepubs/979991979

Re: [R] apply

2024-10-04 Thread Ivan Krylov via R-help
ese. If you had a pair of vectors of _random variates_, the situation would be different, but those are more abstract mathematical concepts. You would need to sample every random variate, producing two matrices 'x' and 'y' in order to calculate a covar

Re: [R] apply

2024-10-04 Thread Ivan Krylov via R-help
one number. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.html and provide comme

Re: [R] when installing packages for R on Linux, is it better to use my distro's package manager, or install.packages()?

2024-09-29 Thread Ivan Krylov via R-help
n old compiler, old third-party dependencies, and so on. To summarise, for Linux Mint, binary *.deb packages (especially r2u) offer great convenience, but the more dependencies your project has, the more effort it will take to reproduce it later, when the binaries are

Re: [R] How to install this package

2024-09-25 Thread Ivan Krylov via R-help
t work because 'termstrc' requires 'rgl' to load and your 'rgl' installation doesn't work. Try following the instructions in the README of the 'rgl' package regarding the OpenGL support. Perhaps it needs to be reinstalled after some updates you

Re: [R] Question about Date Object and time zones

2024-09-25 Thread Ivan Krylov via R-help
her than UTC) and keeping it a Date object? Not with a plain 'Date'. What should a date in a timezone mean? Start of day? End of day? The whole 24-hour interval (except when it lasts 23 or 25 hours due to DST)? Perhaps you could store one (or two for an interval) POSIXt

Re: [R] store list objects in data.table

2024-09-22 Thread Ivan Krylov via R-help
Try wrapping the lm() expression in an extra list(): carsreg <- carsdt[, .(fit = list(lm(mpg ~ disp + hp + wt))), by = .(cyl)] # [1] 3 carsreg # cyl fit # # 1: 6 # 2: 4 # 3: 8 -- Best regards, Ivan __ R-help@r-proje

Re: [R] "And" condition spanning over multiple columns in data frame

2024-09-12 Thread Ivan Krylov via R-help
our "exit" columns in bulk: ( c10Dt$id != 1 & # will be recycled column-wise, as we need is.na(c10Dt[-1]) ) |> # ...and then convert back into a data.frame, as.data.frame() |> # rename the columns... (\(x) setNames(x, sub('cp', 'exit', names(x() |>

Re: [R] non-conformable arrays

2024-09-11 Thread Ivan Krylov via R-help
ot; "56" "59" "114" ... ..$ : chr "Year" - attr(*, "assign")= int 1 Browse[1]> t(random[['Year']]) |> str() num [1:19, 1:10] 0.175 0.181 0.102 0.119 0.158 ... ...and they are indeed non-conformable. Why is random$Year a matrix? -

Re: [R] Stop or limit to console printing large list and so on

2024-09-11 Thread Ivan Krylov via R-help
p in your case. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/posting-guide.html and provide commented,

Re: [R] aggregating data with quality control

2024-08-31 Thread Ivan Krylov via R-help
'C', 'D')) Since the factor is ordered and can be subject to comparison like status[1] < status[2], you can now use max() on your groups. If the sample contains any 'D's, max() will return a 'D', because it's larger than any 'C's. If th

Re: [R] boxplot of raster and shapefile

2024-08-27 Thread Ivan Krylov via R-help
method for 'depth' applied to an object of class > "NULL" > In addition: Warning message: > Removed 452451 rows containing non-finite outside the scale range > (`stat_boxplot()`). Thank you for providing a runnable example! Could you please also show the output of st

Re: [R] checking for unstated dependencies in examples ... ERROR

2024-08-25 Thread Ivan Krylov via R-help
/gRain-Ex.R, try to find out which help page does the line 77 correspond to. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https:

Re: [R] paired raster boxplots

2024-08-24 Thread Ivan Krylov via R-help
s' is a list of rasters, 'r' could also contain more than one layer, resulting in stack(r, s) containing more than two layers. In order to avoid the error, you need to see names(rs) and either give the same number of names to the object instead of two, or additionally extract one

Re: [R] paired raster boxplots

2024-08-23 Thread Ivan Krylov via R-help
s a lot of generic-R troubleshooting advice, which should help you progress past errors like this one without waiting for someone on R-help to reply. -- Best regards, Ivan [1] https://www.burns-stat.com/documents/books/the-r-inferno/ __ R-help@r-projec

Re: [R] Linear regression and stand deviation at the Linux command line

2024-08-23 Thread Ivan Krylov via R-help
t from which you can extract the values you are interested in (see ?summary.lm). When in doubt, call help(name_of_the_function). -- Best regards, Ivan [1] https://cran.r-project.org/doc/manuals/R-intro.html [2] http://web.archive.org/web/20230106210646/http://ashipunov.info/shipunov/sch

Re: [R] fcaR not for latest R version

2024-08-22 Thread Ivan Krylov via R-help
n one of its dependencies, which I didn't look at. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide https://www.R-project.org/p

Re: [R] paired raster boxplots

2024-08-22 Thread Ivan Krylov via R-help
'ggplot2' packages would make them much easier. You will need to reshape your data into long format, with the "value" column for the r/r2 value, the "kind" column saying "r" or "r2", and the "s" column: https://stackoverflow.com/q/20172560

Re: [R] Force conversion of (POSIXct) time zone with base R

2024-08-22 Thread Ivan Krylov via R-help
27;) set: # time zone information successfully lost and replaced by UTC Sys.time() |> format() |> as.POSIXct(tz = 'UTC') -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/m

Re: [R] Terminating a cmd windows from R

2024-08-17 Thread Ivan Krylov via R-help
ystem() returns (or is interrupted, terminating the process). You can specify a timeout for a foreground process using the 'timeout' argument of the system() function. If you'd like to manage a background process, consider the 'processx' CR

Re: [R] allequal diff

2024-08-16 Thread Ivan Krylov via R-help
mask1 | mask2 # drops elements 1, 3, 4, 8 # [1] TRUE FALSE TRUE TRUE FALSE FALSE FALSE TRUE FALSE FALSE -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-he

Re: [R] allequal diff

2024-08-16 Thread Ivan Krylov via R-help
(), using is.na(getValues(...)) should definitely work. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/po

Re: [R] allequal diff

2024-08-16 Thread Ivan Krylov via R-help
Use is.na() on getValues() outputs, combine the two masks using the | operator to get a mask of values that are missing in either raster, then negate the mask to choose the non-missing values: all.equal(getValues(r1)[!mask], getValues(r2)[!mask]) -- Best regards, Ivan

Re: [R] Printing

2024-08-11 Thread Ivan Krylov via R-help
(printing) branch? Then you would be able to always return(invisible(list("ei"=ap,"vi"=vap))), whether printing is TRUE or not. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.et

Re: [R] WDI package commands timing out and not working

2024-08-09 Thread Ivan Krylov via R-help
ss discriminated against by Cloudflare. Maybe petition the WDI maintainer to export a function that parses a JSON file manually downloaded with a browser? -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https:

Re: [R] WDI package commands timing out and not working

2024-08-09 Thread Ivan Krylov via R-help
st by accessing it through Tor. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.ht

Re: [R] Difference between stats.steps() and MuMIn.dredge() to select best fit model

2024-08-01 Thread Ivan Krylov via R-help
pick d before a. A greedy algorithm for K variables out N tests N + (N-1) + ... + (N-K+1) = N*K - K(K-1)/2 models. An exhaustive search would have to test choose(N,K) = N!/(N-K)!/K! models. -- Best regards, Ivan __ R-help@r-project.org mailing

Re: [R] Using optim() function to find MLE

2024-07-28 Thread Ivan Krylov via R-help
optim() doesn't support the truncated (line search) Newton-CG method. See the 'optimx' and 'nloptr' packages for an implementation of a truncated Newton method (not necessarily exactly the same one). -- Best regards, Ivan __

Re: [R] plotting nnet function....

2024-07-27 Thread Ivan Krylov via R-help
; package: https://cran.r-project.org/package=caret/vignettes/caret.html If you do encounter an error on your way or get stuck not knowing how exactly to continue, please ask a more specific question. -- Best regards, Ivan __ R-help@r-project.org ma

Re: [R] grDevices segfault when building R4.4.0 on RHEL 9.1.

2024-07-17 Thread Ivan Krylov via R-help
y emails, seems the RHEL9 system lapack > packages are broken. Will test a bit more. Simon Andrews has also shown me how to reproduce the crash on AlmaLinux: https://stat.ethz.ch/pipermail/r-help/2024-May/479321.html Looks like an ABI incompatibility between gfortran-11 and blas-dev

Re: [R] reticulate + virtual environments

2024-07-15 Thread Ivan Krylov via R-help
on3, so reticulate is likely thinking that it's the same Python. Thus Python is not initialised again, but you also don't see an error. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.c

Re: [R] Reinterpret data without saving it to a file 1st? Check for integer stopping at 1st decimal?

2024-07-14 Thread Ivan Krylov via R-help
test the whole column in two function calls. R also has a type.convert function that may be useful in this case: https://search.r-project.org/R/refmans/utils/html/type.convert.html -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE

Re: [R] Problem loading BiodiversityR, Error: package ‘tcltk’ could not be loaded

2024-07-14 Thread Ivan Krylov via R-help
;t help, make sure to provide your sessionInfo() output. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/

Re: [R] Weird R Studio behaviour...

2024-07-09 Thread Ivan Krylov via R-help
his configuration any more. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provid

Re: [R] Bug? plot.formula does need support plot.first / plot.last param in plot.default

2024-07-06 Thread Ivan Krylov via R-help
nes. (1) sounds especially brittle since plot.formula() may dispatch to other plot.* methods. Additionally, great care will need to be taken not to break existing code that calls plot.formula, even if it's already full of workarounds for plot.formula's behaviour. -- Best regards, Iva

Re: [R] simple problem with unquoting argument

2024-07-03 Thread Ivan Krylov via R-help
); for (i in 1:11) SS[i] <- sum(adds[[i]]) you can write SS <- vapply(adds, sum, numeric(1)) ...and it will perform the same loop inside it, verifying each time that sum(adds[[i]]) returns a single number. -- Best regards, Ivan P.S. I'm sorry for letting our project lapse. __

Re: [R] Referencing Sys.Date to a different time zone

2024-06-28 Thread Ivan Krylov via R-help
e # [1] "2024-06-28" format(Sys.time(), '%Y-%m-%d', tz = 'Asia/Vladivostok') # [1] "2024-06-29" -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/ma

Re: [R] Regarding the Security Vulnerability CVE 2024 - 27322

2024-06-27 Thread Ivan Krylov via R-help
in/windows/base/howto-R-devel.html -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

Re: [R] Regarding the Security Vulnerability CVE 2024 - 27322

2024-06-26 Thread Ivan Krylov via R-help
files you trust, you've never been in danger from this so-called vulnerability. Feel free to keep running older versions of R. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listi

Re: [R] Naming output file

2024-06-24 Thread Ivan Krylov via R-help
, instead of manually assigning variables using assign(name, value) and manually reading variables using get(name). -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLE

Re: [R] Naming output file

2024-06-24 Thread Ivan Krylov via R-help
a file using saveRDS(bop, 'bop.rds'). Lists also compose better with lapply(), parLapply(), and many other functions that operate on collections of R objects. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and m

Re: [R] Bug with writeClipboard in {utils}

2024-06-21 Thread Ivan Krylov via R-help
В Thu, 20 Jun 2024 18:39:34 +0300 Ivan Krylov via R-help пишет: > > Is there a way to test this patch or will there soon be a published > > patched R version available for download? > > Not directly. Now that the bug is fixed in R-devel (thanks Tomas!), a Windows build

Re: [R] unable to get barchart of censored subjects from ggsurvplot() in survminer package, if there is no predcitor

2024-06-20 Thread Ivan Krylov via R-help
ot;Time in days", ncensor.plot = TRUE ) p$ncensor.plot$layers[[1]]$aes_params # $colour # [1] "strata" # # $fill # [1] "strata" This can be traced further but I'm not sure how to fix the bug without strata. Giving an explicit argument color = 'black' to ggsurvplot()

Re: [R] What is the HEX code for "transparent" color?

2024-06-20 Thread Ivan Krylov via R-help
derPlot. The documentation [*] says that the arguments are passed to plotPNG(...) and, eventually, to ragg::agg_png(...) / png(...) / Cairo::CairoPNG(), all of which should support the parameter. -- Best regards, Ivan [*] https://search.r-project.org/CRAN/refmans/shiny/html/renderPlot.html _

Re: [R] Bug with writeClipboard in {utils}

2024-06-20 Thread Ivan Krylov via R-help
-- Best regards, Ivan [1] https://cran.r-project.org/bin/windows/base/howto-R-devel.html#building-r-from-source-using-rtools44 [2] https://github.com/r-devel/rdevguide/issues/170 [3] https://github.com/r-devel/r-svn/actions/runs/8749727418 __ R-he

Re: [R] Integration of functions with a vector argument

2024-06-20 Thread Ivan Krylov via R-help
formation about the underlying code for 'cubature' can be found at <https://github.com/stevengj/cubature> and <https://feynarts.de/cuba/>. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] Bug with writeClipboard in {utils}

2024-06-19 Thread Ivan Krylov via R-help
example! I was able to reproduce it both with R-4.3.1 on Windows 7 and with a fresh R-devel build on Windows 10. Bug reported at <https://bugs.r-project.org/show_bug.cgi?id=18747>. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To U

Re: [R] Integration of functions with a vector argument

2024-06-13 Thread Ivan Krylov via R-help
for many evaluations of the function and to return vectors of the resulting values, you'll be able to use the CRAN package 'cubature' <https://CRAN.R-project.org/package=cubature> to integrate it over multiple variables at once. -- Best regards, Ivan ___

Re: [R] Integration of functions with a vector argument

2024-06-12 Thread Ivan Krylov via R-help
tter performance will require rewriting the function F to be "vectorised", i.e. to accept vectors for arguments and return a vector of the same length. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see h

Re: [R] R Shiny Help - Trouble passing user input columns to emmeans after ANOVA analysis

2024-06-06 Thread Ivan Krylov via R-help
st one of selected_graph(), cols$column2, selected_model() is a zero-length object (maybe NULL) at this point, which makes the result of the whole expression zero-length too. if (...) only accepts logical scalars, hence the error. -- Best regards, Ivan __ R

Re: [R] Tools to modify highlighted areas in pdf documents?

2024-06-02 Thread Ivan Krylov via R-help
ee and available on Windows (including from outside Microsoft store). Its annotation features include all kinds of highlights, arrows and lines, both straight and arbitrarily-shaped, quickly available from the "annotations" panel. -- Best regards, Ivan __

Re: [R] wrtiteBin in conjunction with seek : the position in the file is not good when writing

2024-05-21 Thread Ivan Krylov via R-help
nt', 'read'), 'start', 'write') to set the write pointer to the read pointer before issuing writes. This seems to give me the expected result. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRI

Re: [R] Description of error is untranslated when R_XLEN_T_MAX is exceeded by only 1 element.

2024-05-13 Thread Ivan Krylov via R-help
t a patch on r-de...@r-project.org or https://bugs.r-project.org ? -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-pr

Re: [R] Is there some way to customize colours for the View output?

2024-05-13 Thread Ivan Krylov via R-help
column headers. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented

Re: [R] duplicated() on zero-column data frames returns empty

2024-05-12 Thread Ivan Krylov via R-help
/contributor.r-project.org/> can be helpful. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-gui

Re: [R] R CMD check vs RStudio check

2024-05-10 Thread Ivan Krylov via R-help
t; up inst/doc when building a source package. Set it to TRUE to force >> a cleanup. See the clean_doc argument. (I didn't know that either, just searched their source code for "inst.*doc".) -- Best regards, Ivan __ R-help@r-project.

Re: [R] Compilation problems with R4.4.0

2024-05-09 Thread Ivan Krylov via R-help
ifferent causes elsewhere. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide c

Re: [R] Using intervals() function for nlme model - Statistics Lab ETHZ

2024-05-09 Thread Ivan Krylov via R-help
r models in the manual worries me. I don't know if it's intended to work with 'nlme' models. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PL

Re: [R] Compilation problems with R4.4.0

2024-05-08 Thread Ivan Krylov via R-help
s-devel and configure --with-blas (to replace Rblas with OpenBLAS), the double complex BLAS test will pass, the build won't crash, and you will get even better performance. -- Best regards, Ivan [*] https://stat.ethz.ch/pipermail/r-devel/2024-March/083302.html __

Re: [R] Compilation problems with R4.4.0

2024-05-08 Thread Ivan Krylov via R-help
inker flags explicitly with --with-blas=-lwhatever, --with-lapack=-lwhatever. If you're fine with reference BLAS & LAPACK that come with R, try ./configure --without-blas --without-lapack. Normally, R's ./configure tries to prevent linking to an external LAPACK without linking

Re: [R] Compilation problems with R4.4.0

2024-05-08 Thread Ivan Krylov via R-help
subdirectory: _R_COMPILE_PKGS_=1 R_COMPILER_SUPPRESS_ALL=1 \ R_DEFAULT_PACKAGES=NULL LC_ALL=C \ ../../../bin/R -d gdb --vanilla --no-echo -e \ 'tools:::makeLazyLoading("grDevices")' -- Best regards, Ivan __ R-help@r-project.org ma

Re: [R] Problem with creating a PCA graph in a loop

2024-05-08 Thread Ivan Krylov via R-help
d). Something like the following should work, untested: geom_label_repel( mapping = aes(label = current_rownames, colour = Treatment), data = data.frame( current_rownames = current_rownames, Treatment = wine.data.filt$Treatment ), # more arguments here ) -- Best regards, Ivan _

Re: [R] Is there some way to customize colours for the View output?

2024-05-07 Thread Ivan Krylov via R-help
ect on the edit() window. -- Best regards, Ivan [1] https://svn.r-project.org/R/trunk/src/library/utils/src/windows/dataentry.c __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do r

Re: [R] Using intervals() function for nlme model - Statistics Lab ETHZ

2024-05-06 Thread Ivan Krylov via R-help
n nlme model without any problems. It may help to see if the intervals() output agrees with the bootstrap results from nlraa::boot_nlme(). -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch

Re: [R] R CMD check vs RStudio check

2024-05-03 Thread Ivan Krylov via R-help
ting confused > and not interpreting .. as the parent directory? "..Rcheck" is built from the argument of R CMD check . followed by ".Rcheck". -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, se

Re: [R] grDevices segfault when building R4.4.0 on RHEL 9.1.

2024-05-03 Thread Ivan Krylov via R-help
; to include the contents of local variables. The first few entries are probably the most important ones. Not sure what to do with this information yet, but it might provide more clues. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSU

Re: [R] strange behavior in base::as.double

2024-05-01 Thread Ivan Krylov via R-help
hat the fix will become part of R-4.4.1 when it's released. -- Best regards, Ivan [*] https://github.com/r-devel/r-svn/commit/9069a729f5bf69de8250a4c91dd482fcf64e1154 __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://sta

Re: [R] De-serialization vulnerability?

2024-05-01 Thread Ivan Krylov via R-help
t even read some of my data correctly, but I believe it's a secure way forward: https://codeberg.org/aitap/unserializeData -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/

Re: [R] function import file csv Openair

2024-04-30 Thread Ivan Krylov via R-help
package uses utils::read.csv to import the CSV files. Which particular functionality you are currently missing from the openair package? If all else fails, you can go to https://cran.r-project.org/src/contrib/Archive/openair/ and try to install an older version of the package (

Re: [R] Tidyverse/dplyr solution for filling values of a tibble/dataframe from a column with a nested list.

2024-04-19 Thread Ivan Krylov via R-help
, Map( \(row, cols) rbind(row, simplify2array(cols)), seq_along(tibble$nestedvals), tibble$nestedvals )) sparse <- Matrix::sparseMatrix(spec[1,], spec[2,], x = spec[3,]) -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

Re: [R] Import multiple tif raster

2024-04-18 Thread Ivan Krylov via R-help
g: path = r"{C:\Users\Sibylle Stöckli\Desktop\NCCS_Impacts_Lot2_2022\InVEST\Species_Input\valpar_bee_presence}" These two options are explained in help(Quotes). 3. Instead of typing the path, use choose.dir() (Windows only, I think) and select it interactively.

Re: [R] Import multiple tif raster

2024-04-18 Thread Ivan Krylov via R-help
re giving to list.files (the one starting with /NCCS_Impacts_Lot2_2022/InVEST/...) exists on your computer. Did you mean to start it with a slash, making it an absolute path starting from the root of the filesystem? -- Best regards, Ivan __ R-help@r-project.org mail

Re: [R] Debugging functions defined (locally) inside another functions

2024-04-12 Thread Ivan Krylov via R-help
at = 4) f() # exists("g") so far is FALSE # Tracing f() step 4 # <-- at this point debug(g) is run # about to run g() # debugging in: g() # debug at #3: { #flag <- TRUE # if (flag) # stop("an error") # } help(trace)

Re: [R] Debugging functions defined (locally) inside another functions

2024-04-12 Thread Ivan Krylov via R-help
er if I reach into the environment of the publicly available method: Adder <- ggproto(...) # from the example debug(environment(Adder$add)$add) Adder$add(1234) # debugging in: add(..., self = self) # debug на #3: { # self$x <- self$x + n # self$x # } -- Best regards, Ivan ___

Re: [R] Problem with base::order

2024-04-10 Thread Ivan Krylov via R-help
/main/radixsort.c treats the argument as a scalar (using asLogical(...), not LOGICAL(...) on the R value). -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE d

Re: [R] How to set the correct libomp for R

2024-04-09 Thread Ivan Krylov via R-help
out of ideas for now, but if I get any, I'll send another message. If you don't get an answer here, try r-sig-...@r-project.org. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mai

Re: [R] CEoptim problems

2024-04-09 Thread Ivan Krylov via R-help
iven to the || operator. Good luck! -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and pr

Re: [R] Exceptional slowness with read.csv

2024-04-08 Thread Ivan Krylov via R-help
cond call read.csv() should probably include header = FALSE. Bert's advice to try scan() is on point, though. It's likely that the default-enabled header is not the most serious problem here. -- Best regards, Ivan __ R-help@r-project.org

Re: [R] How to set the correct libomp for R

2024-04-08 Thread Ivan Krylov via R-help
.table/issues/5957) The debugger may be able to shed more light on the problem than just "yes, this is due to OpenMP": https://github.com/rstudio/rstudio/issues/14517#issuecomment-2040231196 When you reproduce the crash, what does the backtrace say? -- Best regards, Ivan __

Re: [R] duplicated() on zero-column data frames returns empty

2024-04-07 Thread Ivan Krylov via R-help
x for 1-column input str(duplicated(matrix(0, 5, 1))) # logi [1:5, 1] FALSE TRUE TRUE TRUE TRUE # a dim-1 array for >1-column input str(duplicated(matrix(0, 5, 10))) # logi [1:5(1d)] FALSE TRUE TRUE TRUE TRUE -- Best regards, Ivan __ R-help@r-project

Re: [R] duplicated() on zero-column data frames returns empty vector

2024-04-05 Thread Ivan Krylov via R-help
, we only get the plain text version automatically prepared by your mailer. This one didn't look so good: https://stat.ethz.ch/pipermail/r-help/2024-April/479143.html Composing your messages to the list in plain text will help avoid the problem. -- Best regards, Ivan _

Re: [R] Problem with new version of R: Mutated vocals

2024-03-22 Thread Ivan Krylov via R-help
write.table) containing mutated vowels are not read-in > correctly by the function read.table. In a similar manner, try read.table(..., fileEncoding = 'CP1252'). Setting encoding = 'latin1' may also work, even if it's technically a different encoding. -- Best regards, Iva

Re: [R] Error message

2024-03-22 Thread Ivan Krylov via R-help
ar results with saveRDS(datafilename, 'X1.rds') and data2 <- readRDS('X1.rds')? Does this happen with other R objects that you try to save or in your other scripts? -- Best regards, Ivan __ R-help@r-project.org mailing list -

Re: [R] Error message

2024-03-22 Thread Ivan Krylov via R-help
and xxd -l 128 X1.RData will give the same output in a more readable manner, but the readBin(...) output from R should be fine too. -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/li

Re: [R] Error message

2024-03-22 Thread Ivan Krylov via R-help
en R tries to load the file, right at the first few bytes. Is "X1.RData" large? Can you share it, or at least a hexadecimal dump of the first few hundred bytes? -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and mor

Re: [R] Building Packages.

2024-03-21 Thread Ivan Krylov via R-help
) to my .Rprofile, and it broke quite a few things related to package development until I fixed my .Rprofile. Congratulations on solving the problem! -- Best regards, Ivan __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see htt

Re: [R] Building Packages.

2024-03-20 Thread Ivan Krylov via R-help
t;CMD", "INSTALL") from the `args` vector and give the rest as the argument to .install_packages() in a fresh process, will it break in a similar manner? Browse[2]> command [1] "/usr/lib/R/bin/R" Browse[2]> args [1] "CMD" "INSTALL" "-l" &q

Re: [R] Building Packages.

2024-03-20 Thread Ivan Krylov via R-help
ibrary() calls. Generally, packages should not be calling library(). 2. Try a "binary search" approach. Make a copy of your package code but remove half of the files (or half of the functions if they live in a single file). Keep removing a half (or go to the other half) dependi

  1   2   3   4   5   6   7   8   9   10   >