Re: [R] Problem when trying to install packages

2024-03-16 Thread Uwe Ligges
tware would be Rtools43 + R-4.3.3 Best, Uwe Ligges #RTools #RStudio #DataScience) - YouTube <https://www.youtube.com/watch?v=h2IPWVXaUuU> " Sincerely On Sat, Mar 16, 2024 at 10:15 AM Bert Gunter wrote: Though Navigator may mess up any Rtools stuff because it handles the direc

Re: [R] anyone having trouble accesing CRAN?

2023-11-15 Thread Uwe Ligges
Yes, the sysadmins at WU Vienna are upgrading the CRAN master. The mirrors should not be affected. Best, Uwe Ligges On 15.11.2023 20:25, Rui Barradas wrote: Às 19:13 de 15/11/2023, Christopher W. Ryan via R-help escreveu: at https://cran.r-project.org/ I get this error message

Re: [R] Dependency errors for package pracma

2023-11-09 Thread Uwe Ligges
verse suggests and the recursive strong dependencies of these (by tools::package_dependencies(reverse = TRUE, which = "most", recursive = "strong")). " Best, Uwe Ligges Okay, I can leave it as is and wait until it gets thrown off CRAN (because of some new syntax

Re: [R] Linear discriminant analysis

2023-10-12 Thread Uwe Ligges
performance of LDA as a reference to compare better and more modern techniques with. I think you should ask some trained local statistician for advise on both, the LDA theory and for prediction in general. Best, Uwe Ligges __ R-help@r-project.org mailing list

Re: [R] Problem with compatible library versions

2023-10-11 Thread Uwe Ligges
system as is (but then there are security updates etc). Best, Uwe Ligges On 11.10.2023 14:54, Ebert,Timothy Aaron wrote: Is that a method where a program that I write today would still run without changes in 10 years? Tim -Original Message- From: R-help On Behalf Of Richard O'Keefe

Re: [R] Problem with compatible library versions

2023-10-11 Thread Uwe Ligges
by one from sources, unfortunately. Best, Uwe Ligges installed are still the newest ones. I was able to install dplyr 1.0.7. manually but there are error messages on incompatibility when loading this version. Is there a possibility to load older library versions which alre compatible ? Thank

Re: [R] R Gigs

2023-10-07 Thread Uwe Ligges
employment, but we do not even know the country nor what the capabilities are. Honestly, given that mail message, I would not even offer to supervise any voluntary tasks. My personal classification was "spam", hence not replying to the OP. Best, Uwe Ligges el On 2023-10-06 22:35 , Ber

Re: [R] Installing R 3.1.2

2023-09-06 Thread Uwe Ligges
See https://cran.r-project.org/bin/windows/base/old/ Version 4.1.3 is the latest that supports 32 bit WIndows, as far as I remember. A passwort is not required. Best, Uwe Ligges On 06.09.2023 05:53, Ali Mahdi wrote: Hi I get trouble in installing R programing language as a newest

Re: [R] Style guide when using "R" in a title

2023-07-26 Thread Uwe Ligges
ct. Is this accurate? Is there a particular font I should use? You can simply write the title as is. Best, Uwe Ligges Thanks, Spencer [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://

Re: [R] OK, next Q - a sort of factorial on a vector

2023-06-20 Thread Uwe Ligges
vf <- function(x){ o <- outer(x, x) as.vector(na.omit(o[lower.tri(o)])) } vf(1:5) vf(c(1,2,NA,4,5)) Best, Uwe Ligges On 20.06.2023 19:13, Philip Rhoades via R-help wrote: People, What I mean is, is there an elegant way to do this: This:   !(1,2,3,4,5) would give this:   (2

Re: [R] Help sourcing datasets (.csv)

2023-06-02 Thread Uwe Ligges
See ?data On 28.05.2023 10:53, james carrigan wrote: Dear Sir or Madam I’m trying to compile a collection of datasets that require use of the following hypothesis tests. Are there datasets within the R library that I can get access to? Kind regards James Carrigan Hypothesis Testing

Re: [R] Package Caret

2023-04-16 Thread Uwe Ligges
On 17.04.2023 00:19, Gábor Malomsoki wrote: Many thanks Bert, now is ok, i did not know that "Namensraum" should mean a package Two hints: 1. The NAMESPACE is meant and he trnlsation is very literal here. 2. I typically have LANGUAGE=en set for R to avoid confusion. Best,

Re: [R] R does not run under latest RStudio

2023-04-06 Thread Uwe Ligges
No, but you need to ask on an RStudio mailing list. This one is about R. Best, Uwe Ligges On 06.04.2023 11:28, Steven T. Yen wrote: I updated to latest RStudio (RStudio-2023.03.0-386.exe) but R would not run. Error message: Error Starting R The R session failed to start. RSTUDIO VERSION

Re: [R] legend: interplay between title and y.intersp

2023-03-06 Thread Uwe Ligges
What about plot(c(0,1), c(0,1), type="n") legend("top", legend=c("", "a", ""), col=c("blue", "red", "green"), title="test", y.intersp=c(1,-0.4), lwd=1) (in recent versions of R) Best, Uwe On 06.03.2023 11:34, Sigbert Klinke wrote: Hi, I think you are right, legend cannot do it.

Re: [R] Extracting data using subset function

2023-02-05 Thread Uwe Ligges
I tend not to teach subset() as indexing is needed anyway and hence subset() is just an extra level of cpmplexity that is not needed. Also note what ?subset warns about. Best, Uwe Ligges On 05.02.2023 22:12, avi.e.gr...@gmail.com wrote: A major question is why you ask how to use the subset

Re: [R] Plotmath isn't working for special characters

2023-01-25 Thread Uwe Ligges
Yes, and is is fixed in R-4.2.2-pacthed for soe time already. Best, Uwe Ligges On 25.01.2023 15:48, Shawn Way wrote: I see the same thing using 4.2.2 on Windows 10. Thank you kindly, Shawn Way, PE   Director of Engineering Phone: (832) 403-0414 Empower Pharmacy   Expanding Access

Re: [R] foreign package: unable to read S-Plus objects

2023-01-17 Thread Uwe Ligges
ta in a readable format. Best, Uwe Ligges On 17.01.2023 14:21, Viechtbauer, Wolfgang (NP) wrote: @Joe: I have S-Plus 6.0 ("Professional Edition Version 6.0.3 Release 2 for Microsoft Windows : 2001") running here and can't load them there either. Tried simdat and S-Plus appare

Re: [R] Pipe operator

2023-01-03 Thread Uwe Ligges
operator (and I wonder why you want to add a level of complexity, as it is more obfuscated what the actual function calls are), please use R's internal one, as it is known by the parser and hence debugging etc is better integrated. Best, Uwe Ligges On 03.01.2023 17:48, Sorkin, John wrote: I

Re: [R] [Rd] I do not want that R CMD build removes temp directory

2022-12-19 Thread Uwe Ligges
Ah, before that you wrote "" ERROR: lazy loading failed for package 'prolfqua' * removing 'C:Users " and C:Users without a slash sonds suspicious. Now with the new output I do not see where the issue is from. Does this also happen when you try it on winbuilder? B

Re: [R] [Rd] I do not want that R CMD build removes temp directory

2022-12-16 Thread Uwe Ligges
. "** byte-compile and prepare package for lazy loading ERROR: lazy loading failed for package 'shiny' * removing 'C:/Users/witoldwolski/AppData/Local/R/win-library/4.2/shiny' Warning in install.packages :" Can we please have the full output? Best, Uwe Ligges On Thu, 15 Dec 2022 at 19

Re: [R] bgroup not rendering properly

2022-12-14 Thread Uwe Ligges
And this has been fixed by Tomas Kalibera on Dec 12 in R-devel already. Shortly to be ported to R-patched. Best, Uwe Ligges On 13.12.2022 16:38, Uwe Ligges wrote: Fascinating: I see it with R-4.2.2  and R-patched  with the windows() device. But all works well with R-4.2.1 and R-devel. I'll

Re: [R] bgroup not rendering properly

2022-12-13 Thread Uwe Ligges
Fascinating: I see it with R-4.2.2 and R-patched with the windows() device. But all works well with R-4.2.1 and R-devel. I'll try to investigate. Best, Uwe Ligges On 13.12.2022 14:59, Derek Ogle wrote: Thank you all for your help. I am using Windows. I ran the following both in R

Re: [R] How to access source code

2022-12-08 Thread Uwe Ligges
Or simply get and unpack the package sources. Here you will also find the comments that are typically stripped out otherwise. Best, Uwe Ligges On 08.12.2022 17:26, Martin Morgan wrote: showMethods(LGD, includeDef = TRUE) shows the implementation of all methods on the LGD generic, and can

Re: [R] Associate a .R file with the RGui

2022-11-07 Thread Uwe Ligges
LASSES_ROOT\R_auto_file\shell\open\command There is a standard value as extendable string (REG_EXPAND_SZ) and you simply replace its content by "C:\Program Files\R\R-4.2.2\bin\x64\Rgui.exe" --args "%1" and in Computer\HKEY_CLASSES_ROOT\.R there shoudl be a standard st

Re: [R] Associate a .R file with the RGui

2022-11-06 Thread Uwe Ligges
Ligges thanks, Amarjit -- Original Message -- From: "Uwe Ligges" To: "David Winsemius" ; "Amarjit Chandhial" ; "Jeff Newmiller" Cc: "Amarjit Chandhial via R-help" Sent: Sunday, 6 Nov, 2022 At 15:15 Subject: Re: [R] Associate a .R

Re: [R] Associate a .R file with the RGui

2022-11-06 Thread Uwe Ligges
Args(TRUE)) ) utils::file.edit(z[1]) to the Rprofile.site file; and 2. Edit the registry to associate the .R extension with the command C:\Program Files\R\R-4.2.2\bin\x64\Rgui.exe --args "%1" I think we should implement this in R anyway. Best, Uwe Ligges __

Re: [R] shaded area between a curve and a circle

2022-10-23 Thread Uwe Ligges
ed to find out what you actually want to do. Best, Uwe Ligges On 22.10.2022 21:05, L... L... wrote: Dear, I have a picture in which I draw a circle over the standard normal curve. See below the lines used to draw the figure. The figure is ok, but my problem is: How to shade the areas A, B, C,

Re: [R] how to enlarge the legend

2022-10-09 Thread Uwe Ligges
I'd propose: plot.new() ltext <- "text" lobj <- legend("bottom", "", text.width=strwidth(ltext), fill = "gray", cex = 2) text(lobj$text, ltext) Best, Uwe Ligges On 09.10.2022 16:54, Jinsong Zhao wrote: Hi there, in the following code, I'd like

Re: [R] [Rd] Problem with accessibility in R 4.2.0 and 4.2.1.

2022-09-23 Thread Uwe Ligges
Note that the issues with the Rscript editor have been fixed in R-patched and R-devel. Best, Uwe Ligges On 22.09.2022 23:08, Andrew Hart via R-help wrote: On 22/09/2022 16:42, Toby Hocking wrote: Another option is to use https://emacspeak.sourceforge.net/ <https://emacspeak.sourceforge.

Re: [R] Space between axis title and tick labels in persp plot in R (using vis.gam)

2022-07-07 Thread Uwe Ligges
the axis titles manually after the plot and keep the rest unless you want to look fpr alternatives to persp(). Best, Uwe Ligges On 06.07.2022 19:22, jade.shodan--- via R-help wrote: Dear list, I am making a perspective plot of my generalised additive model (GAM) named a1b, using vis.gam

Re: [R] Calling stargazer() with do.call() in R 4.2.0

2022-05-27 Thread Uwe Ligges
aboce suggests the code needs an any():if(any(is.na(x))) raher than if(is.na(x)). Best, Uwe Ligges Any ideas what we can do so that the last command works with R 4.2.0? /Arne __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, s

Re: [R] R and .asc file extension

2022-05-20 Thread Uwe Ligges
On 20.05.2022 15:27, Thomas Subia via R-help wrote: Colleagues, I have data which has a .asc file extension. asc likely means ASCII and can be any kind of text data, so wed need some contents to suggest a function. But any for text files should work. Best, Uwe Ligges Can R read

Re: [R] installing an R package

2022-04-28 Thread Uwe Ligges
On 28.04.2022 23:55, David Winsemius wrote: Pretty sure the right way to install that package is with the Bioc installer. or simply install.packages() after setting the repository. Best, Uwe Ligges Sent from my iPhone On Apr 28, 2022, at 3:35 PM, Bogdan Tanasa wrote: HI everyone

Re: [R] Assigning categorical values to dates

2021-07-22 Thread Uwe Ligges
For a data.frame d, I'd simply do d$cycle <- factor(d$dates, labels=1:3) but I have not idea about tibbles. Best, Uwe Ligges On 22.07.2021 05:12, N. F. Parsons wrote: Hi all, If I have a tibble as follows: tibble(dates = c(rep("2021-07-04", 2), rep("2021-07-25",

Re: [R] Unexpected date format coercion

2021-07-01 Thread Uwe Ligges
t;20-12-2020","%Y-%m-%d") [1] "0020-12-20" Yes, it is rather strange to specify "2020" as the day and "20" as the 4digits year, so different implementations may print the year in 2 or 4 digits. What you want is actually as.Date("20-12-2020&quo

Re: [R] foreign package read.spss() and NA levels

2021-06-04 Thread Uwe Ligges
e=sav, to.data.frame=TRUE, use.missings=FALSE) table(dat$DAYOFWK, useNA="always") you see the NA values are converted to a factor level called "MISSING". If it is different on your end, pelase try in plain R, tell us the version of R / foreign and show an example data file wher

Re: [R] problem downloading R

2021-03-05 Thread Uwe Ligges
Sounds like you always got corrupted vesions. Either an issue with your connection or the mirror. What happens if you try another mirror and clear your browser caches? Best, Uwe Ligges On 05.03.2021 08:58, Abby Spurdle wrote: Does the following sound familiar? The Windows installer starts

Re: [R] strptime, date and conversion of week number into POSIX

2021-02-22 Thread Uwe Ligges
That monday does not exist. FOr the week before: strptime(paste0("2020-52","-1"),format="%Y-%W-%u") [1] "2020-12-28" One week later is no longer in 2020, so there is no 53th week. Best, Uwe Ligges On 22.02.2021 16:15, Patrick Giraudoux wrote: S

Re: [R] unable to access index for repository...

2020-10-08 Thread Uwe Ligges
Drop the RStudio repos. Best, Uwe Ligges On 05.10.2020 11:10, Steven Yen wrote: Thanks. I did as suggested but still received a warning, though the installation went through. Anything I could do to install without the warning message. What is the contrib.url argument? > install.packa

Re: [R] unable to access index for repository...

2020-10-05 Thread Uwe Ligges
Then you'd rather need install.packages("aod",repos='https://cran-archive.r-project.org') or use the contrib.url argument. Best, Uwe Ligges On 05.10.2020 10:47, Steven Yen wrote: Thanks for the help. I do update to the latest R-4.0.2. As I said, for reasons that's hard to exp

Re: [R] unable to access index for repository...

2020-10-05 Thread Uwe Ligges
ly consider to update to 4.0.2. Best, Uwe Ligges On 05.10.2020 09:56, Steven Yen wrote: I had to install/use an older version of (R-3.0.3) for a reason. While installing a package from CRAN (either in RStudio or R), I received the following warning message saying unable to access index for repo

Re: [R] Why does a 2 GB RData file exceed my 16GB memory limit when reading it in?

2020-09-02 Thread Uwe Ligges
RData file). But the data may need more gc() shows the following after I receive this error: used (Mb) gc trigger (Mb) max used (Mb) Ncells 623130 33.3 4134347 220.8 5715387 305.3 Vcells 1535682 11.8 883084810 6737.5 2100594002 16026.3 So 16GB were used when R gave up. Best,

Re: [R] Error: cannot remove prior installation of package ‘BiocManager’

2020-06-19 Thread Uwe Ligges
The packages must not be loaded when you try to update. Best, Uwe Ligges On 19.06.2020 12:07, Ankush Sharma wrote: Dear all, I am working R version 4.0.1 macos catalina , I´m not able to load libraries e.g ggplot2 Error: Error: package or namespace load failed for ‘ggplot2

Re: [R] Problem with library path

2020-05-29 Thread Uwe Ligges
/4.0 Simplest solution is to use a plain ASCII path without blanks. Best, Uwe Ligges How can this be fixed? Thanks! [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https

Re: [R] incomplete reading of a large csv file

2020-02-21 Thread Uwe Ligges
On 21.02.2020 20:10, Christopher W. Ryan wrote: sessionInfo at end of message. I have data that I was given as an Excel .xlsx file. It contains 96266 lines and 24 columns. I opened it in OpenOffice.org and saved it in .csv format, using the pipe character as a field separator. This produced

Re: [R] .Random.seed for the Mersenne Twister

2020-01-09 Thread Uwe Ligges
Exactly, from ?.Random.seed: "In the underlying C, .Random.seed[-1] is unsigned; therefore in R .Random.seed[-1] can be negative, due to the representation of an unsigned integer by a signed integer. " and "It can be saved and restored, but should not be altered by the use

Re: [R] Column 'xyz' does not exist

2019-07-30 Thread Uwe Ligges
Use the functional style such as mean(x) instead of the piping style such as x %>% mean. Best, Uwe Ligges On 30.07.2019 11:26, Tolulope Adeagbo wrote: Thanks Uwe, maybe i can be clearer; the error is: Warning: Error in : Column `Previous_stage` is unknown. Ans please what do you m

Re: [R] Column 'xyz' does not exist

2019-07-30 Thread Uwe Ligges
Don't use pipes but functional programming style, then you can eaasily traceback() and use debugging tools. Best, Uwe Ligges On 30.07.2019 11:03, Tolulope Adeagbo wrote: So I'm having this error: column 'Previous stage does not exist' bal_matrix = loan_data_2 %>% as.tibble() %>%

Re: [R] Problem with random numbers/seed

2019-06-21 Thread Uwe Ligges
really want to get the old (slightly buggy) behaviour. Best, Uwe Ligges RNGversion("3.5.3") Warning message: In RNGkind("Mersenne-Twister", "Inversion", "Rounding") : non-uniform 'Rounding' sampler used On 6/22/2019 1:03 AM, Uwe Ligges wrote: What

Re: [R] Problem with random numbers/seed

2019-06-21 Thread Uwe Ligges
ner the old R. Best, Uwe Ligges On 21.06.2019 18:39, Steven Yen wrote: Thanks. Somewhat of a mystery. The older version I had was R-3.5.3patched. I cannot get the RNGversion command to run. Can you help? Thanks. On 6/22/2019 12:25 AM, Uwe Ligges wrote: See the NEWS, the RNG has been changed, use

Re: [R] Problem with random numbers/seed

2019-06-21 Thread Uwe Ligges
ersion("3.5.2") to get reproducible results from the older RNG. Best, Uwe Ligges __ 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-pro

Re: [R] Problem in using 'plm' package after updating R

2019-06-04 Thread Uwe Ligges
IN addition, you install to Documents\R\win-library\3.3 which suggest you have updated R but are still suing the old version 3.3.x? Best, Uwe Ligges On 04.06.2019 14:47, peter dalgaard wrote: Looks like you are not equipped to install source packages, so don't Or, possibly, install from

Re: [R] Tying to underdressed the magic of lm redux

2019-06-01 Thread Uwe Ligges
Simply quote the colnames in the call, i.e.: demo("a", "b", df) Best, Uwe Ligges On 02.06.2019 03:43, Sorkin, John wrote: Colleagues, Despite Bert having tried to help me, I am still unable to perform a simple act with a function. I want to pass the names of the columns

Re: [R] Help with replace()

2018-07-14 Thread Uwe Ligges
On 12.07.2018 18:09, Bill Poling wrote: Yes, that's got it! (20 years from now I'll have it all figured out UGH!), lol! Using R for 20 years myself now I can only tell that it takes much longer. Best, Uwe Ligges Thank you David Min. 1st Qu. Median Mean 3rd Qu

Re: [R] package : plm : pgmm question

2017-12-29 Thread Uwe Ligges
Please talk to the package maintainer whi may not be listen on R-help. Best, Uwe Ligges On 25.12.2017 10:53, Ye Dong wrote: Dear Sir, I am using the package pgmm you build in panel regression. However, I found that when T is 10, N=30, the error would show as following: system

Re: [R] Scatterplot3d :: Rotating x tick labels by x degrees

2017-10-31 Thread Uwe Ligges
=45) (untested) Best, Uwe Ligges library("scatterplot3d") mydf=data.frame(rate=seq(158, 314) ,age=seq(1, 157) ,market_date=seq(as.Date("2000/1/1"), as.Date("2003/1/1"), by="7 days")) mydf$market_date=as.Date(mydf$mar

Re: [R] Notes for new R version 3.4.2

2017-10-11 Thread Uwe Ligges
Sounds like you have some base packages from an old version of R. Perhaps copy in another library tree that comes firt on the search path? Best, Uwe Ligges On 11.10.2017 02:58, kevin luo wrote: Dear officers, Sorry to bother you. Recently, I have installed the R version 3.4.2. But some

Re: [R] Block comment?

2017-09-02 Thread Uwe Ligges
On 02.09.2017 11:40, Christian wrote: I consider it quite worth while to introduce into R syntax a nestable block comment like #{ }# if(FALSE){ } Best, Uwe Ligges It would make documentation more easily manageable and lucid. Is there considerable need for this. Please, comment

Re: [R] Difficulty Installing Packages

2017-08-27 Thread Uwe Ligges
On Windows, if you load a dll, this is locked. Hence, for package installations, close all R instances, start one without loading packages and then update packages. Best, Uwe Ligges On 26.08.2017 15:18, Bill Denney wrote: Hi, When installing packages in Windows (currently using

Re: [R] likert Package

2017-08-23 Thread Uwe Ligges
If this is not docuemnted that way, write to the package maintainer. Best, Uwe Ligges On 23.08.2017 02:51, Jeff Reichman wrote: R- Help Forum Working with the "likert" package and find that my "bar" graphs are backwards (see attached) summary(results)

Re: [R] SPSS R Factor v2.4.2

2017-08-06 Thread Uwe Ligges
are taking about. Best, Uwe Ligges On 06.08.2017 07:08, David Winsemius wrote: On Aug 5, 2017, at 7:02 PM, Gavin Brown <gt.br...@auckland.ac.nz> wrote: I am not an R-Head, hence I use nice utilities that integrate R into SPSS I have SPSS v24, R3.20 and R3.40 I have run IBM SPSS R I

Re: [R] greek letters do not work in expression

2017-07-30 Thread Uwe Ligges
There is no internationalization of help pages, only of messages. Best, Uwe On 30.07.2017 21:51, David Winsemius wrote: On Jul 30, 2017, at 8:25 AM, Uwe Ligges <lig...@statistik.tu-dortmund.de> wrote: On 30.07.2017 17:22, Milan Cisty wrote: Dear all, I appreciate sugge

Re: [R] greek letters do not work in expression

2017-07-30 Thread Uwe Ligges
On 30.07.2017 17:22, Milan Cisty wrote: Dear all, I appreciate suggestions for following problem. I wrote to RStudio: plot(c(1,20),c(1,20), xlab = expression(paste(alfa))) or the same happen when I wrote: plot(c(1,20),c(1,20), xlab = expression(alfa)) Write "alpha", not "al

Re: [R] about installing smwrGraphs package

2017-07-23 Thread Uwe Ligges
s.gov/R; does not provide standard repositories for R? Best, Uwe Ligges http://cran.us.r-project.org;), dependencies = TRUE) Error in install.packages : Line starting ' ...' is malformed! [[alternative HTML version deleted]] __ R-help@r

Re: [R] Problem for installing cbPlatte on R Version 3.4.1

2017-07-12 Thread Uwe Ligges
, Uwe Ligges Shanu On Wed, Jul 12, 2017 at 3:57 PM, John Kane <jrkrid...@yahoo.ca> wrote: What is cbplatte? Where do we find it? On Wednesday, July 12, 2017, 6:20:38 AM EDT, Shanu Singh < singh.shanu1...@gmail.com> wrote: Please solve the problem. on which R Version wo

Re: [R] Problem for installing cbPlatte on R Version 3.4.1

2017-07-12 Thread Uwe Ligges
On 12.07.2017 12:03, Shanu Singh wrote: Please solve the problem. on which R Version works cbplatte? What is cbPlatte or cbplatte (case matters). Best, Uwe Ligges Regards Shanu [[alternative HTML version deleted]] __ R-help@r

Re: [R] devtools::check "hangs"

2017-07-12 Thread Uwe Ligges
chapter ‘Writing R documentation files’ in the ‘Writing R Extensions’ manual. * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... Take a look in the example log files in the corresponding check dir. Best, Uwe Ligges

Re: [R] 3D plot with coordinates

2017-06-20 Thread Uwe Ligges
package rgl. Best, Uwe Ligges On 20.06.2017 21:29, Alaios via R-help wrote: HelloI have three x,y,z vectors (lets say each is set as rnorm(360)). So each one is having 360 elements each one correpsonding to angular coordinates (1 degree, 2 degrees, 3 degrees, 360 degrees) and I want

Re: [R] [FORGED] Re: Question on function "scatterplot3d"

2017-06-01 Thread Uwe Ligges
On 01.06.2017 10:03, Rolf Turner wrote: On 01/06/17 19:54, Uwe Ligges wrote: A design flaw, whether the labels are cut depends somewhat on the sizce of the device, hence there is the argument y.margin.add add additional space between tick mark labels and axis label of the y axis

Re: [R] installed.packages() does not work properly

2017-06-01 Thread Uwe Ligges
Try R-3.4.0 patched. Best, Uwe Ligges On 01.06.2017 03:54, Anil Dabral wrote: Hi, I tried executing the following statement multiple times on R 3.4 and it worked only the first time. In older versions of R it seems to have worked. Am I doing anything wrong? In R 3.4 (works only

Re: [R] [FORGED] Re: Question on function "scatterplot3d"

2017-06-01 Thread Uwe Ligges
, Uwe Ligges On 01.06.2017 07:15, Rolf Turner wrote: On 01/06/17 13:17, Ismail SEZEN wrote: On 1 Jun 2017, at 03:41, li li <hannah@gmail.com> wrote: Hi all, I have a question with regard to making plots using function "scatterplot3d". Please see the example below. It l

Re: [R] Unusual behavior in e1071?

2017-05-02 Thread Uwe Ligges
Look more carefully at y. If this is a factor, please note what is the first (reference) level and what the second. This determines the rule, not the value of the first observation. Best, Uwe Ligges On 02.05.2017 07:25, Daniel Jeske wrote: Hello - I have noticed that when I run svm

Re: [R] Error with installed.packages with R 3.4.0 on Windows

2017-04-28 Thread Uwe Ligges
On Fri, Apr 28, 2017 at 7:58 AM, Uwe Ligges <lig...@statistik.tu-dortmund.de <mailto:lig...@statistik.tu-dortmund.de>> wrote: On 28.04.2017 10:45, Thierry Onkelinx wrote: Dear Peter, It actually breaks install.packages(). So it is not that innocent. And h

Re: [R] Error with installed.packages with R 3.4.0 on Windows

2017-04-28 Thread Uwe Ligges
On 28.04.2017 10:45, Thierry Onkelinx wrote: Dear Peter, It actually breaks install.packages(). So it is not that innocent. And hence, as Peter exoplained, it is already fixed inn R-patched, thanks to Tomas Kalibera. Best, Uwe Ligges Best regards, Thierry Op 28 apr. 2017 10:36

Re: [R] Difference between R for the Mac and for Windows

2017-03-31 Thread Uwe Ligges
] NaN+NaNi 1i/(0+0i) [1] NaN+NaNi KubuntuTrusty - (1+2i)/0 [1] Inf+Infi (-1+2i)/0 [1] -Inf+Infi 1i/0 [1] NaN+Infi 1i/(0+0i) [1] NaN+Infi Interesting to see what R on Windows delivers. Same as KubuntuTrusty and what I would expect. Best, Uwe Ligges Berend

Re: [R] Error in match.fun(f) : object 'x' not found

2017-02-21 Thread Uwe Ligges
remember when I did it for curve(), it was fine. curve(pexp(x, rate = 1/2), from = 0, to = 5) curve() is an exception in that it can use an unevaluated function call. Best, Uwe Ligges What am I not getting here? Thank you so much! [[alternative HTML version deleted

Re: [R] Antwort: Re: packrat: Failed to download current version of foreign(0.8-67)

2017-02-21 Thread Uwe Ligges
Yes, then we cannot help and you have to ask your company how to get the files, of course. Best, Uwe Ligges On 21.02.2017 08:16, g.maub...@weinwolf.de wrote: Hi Mr. Ligges, doing as you said R responds with install.packages("foreign") trying URL 'https://cran.uni-muenster.de/b

Re: [R] packrat: Failed to download current version of foreign(0.8-67)

2017-02-20 Thread Uwe Ligges
foreign is a recommended package that is already part of your R installation. and there shoudl not be a problem to install a recent version of it. What is the error message of you run install.packages("foreign") from a new R session? Best, Uwe Ligges On 20.02.2017 17:

Re: [R] Extracting first number after * in a character vector

2017-01-23 Thread Uwe Ligges
+).*", "\\1", x) and if it could happen to have elements without an asterisk or number that follows, you can set these results to NA in a seperate step. Best, Uwe Ligges Best, Abhinaba [[alternative HTML version deleted]] _

Re: [R] How these Plots are called? Which package

2017-01-14 Thread Uwe Ligges
On 14.01.2017 21:04, Alaios via R-help wrote: can you see it now? I have uploaded it on my dropbox https://www.dropbox.com/s/9eikpabu6xflasa/Figure.jpg?dl=0 This is called spectogram and there are several packages that can do it, depending on your application. Best, Uwe Ligges

Re: [R] rstan error: C:/Rtools/mingw_64/bin/g++: not found

2016-12-03 Thread Uwe Ligges
ps better ask its package maintainer. Best, Uwe Ligges The cause on my system is simple; g++ is not on my C:\ drive; it's on D: My system path correctly points to D:, running system('g++ -v') works fine. But the error message shows that either rstan or R is insisting on a specific c

Re: [R] Average every 4 columns

2016-11-09 Thread Uwe Ligges
On 09.11.2016 22:06, Jim Lemon wrote: Hi Milu, Perhaps this will help: apply(as.matrix(x[-1,seq(1:dim(x)[1],by=4)]),1,mean) More efficient than apply(..., 1, mean): rowMeans() Best, Uwe Ligges Jim On Thu, Nov 10, 2016 at 4:00 AM, Miluji Sb <miluj...@gmail.com> wrote: Thanks

Re: [R] creating lists of random matrices

2016-11-09 Thread Uwe Ligges
Not answering the question, but if you have the same dimensions of the matrices everywhere, it is much more efficient to sample all numbers in a row and put stuff into an array: array(rnorm(5*4), dim=c(2,2,5))) Best, Uwe Ligges On 09.11.2016 19:51, Marc Schwartz wrote: On Nov 9, 2016

Re: [R] paste0 in file path

2016-08-31 Thread Uwe Ligges
nt) wide <- reshape(dat, timevar="Var2", idvar="Var1", direction="wide") write.xlsx(wide, file=paste0(i, 'C:/temp/q0',i,'r.xlsx')) ^^ remove the i? Best, Uwe Ligges } All goes

Re: [R] package.skeleton, environment argument causes error

2016-08-28 Thread Uwe Ligges
It would be helpful for us if you provide a reproducible examples when the current package.skeleton fails. Best, Uwe Ligges On 19.08.2016 00:12, Jacob Strunk wrote: Hello, I have been using package.skeleton from within an lapply statement successfully (assuming good source code

Re: [R] package.skeleton fails

2016-08-28 Thread Uwe Ligges
Your code works for me, and I do not see any lapply in the example you provide below. Best, Uwe Ligges On 24.08.2016 21:21, Strunk, Jacob (DNR) wrote: Hello, I have been using package.skeleton from within an lapply statement successfully (assuming good source code) with the following setup

Re: [R] R2WinBUGS with Multivariate Logistic Regression

2016-07-19 Thread Uwe Ligges
. I'd suggest to reduce it to a WinBUGS only problem, try OpenBUGS (which iw more recent) and if it still fails, ask on the WinBUGS/OpenBUGS mailing list. A trap in WinBUGS is not an R related problem. Best, Uwe Ligges I attach herewith, the code and a sample of the dataset. Any suggestion

Re: [R] Installation of package "rio" broken

2016-06-14 Thread Uwe Ligges
ed, you need at least R-3.0.0 as this is compiled with gcc-4.9.3 that supports the new standard. Best, Uwe Ligges Best, Ista -- cut -- * installing *source* package 'feather' ... ** Paket 'feather' erfolgreich entpackt und MD5 Summen überprüft ** libs *** arch - i386 g++ -m32 -std=c++0x -I&quo

Re: [R] R getting "Killed" while running VAR model

2016-05-31 Thread Uwe Ligges
Wild guess: You have huge and high dimensional VAR models, i.e. the matrices get huge and you use huge amounts of memory and you use more than what is available physically. The operating system protects itself by killing processes in such a case... Best, Uwe Ligges On 31.05.2016 20:29

Re: [R] lib default location

2016-05-21 Thread Uwe Ligges
user default. Also, everytime I have to choose the mirror. Could I make one of them default? Yes, one way is described in the examples of ?Startup. Best, Uwe Ligges Thanks! Ciao. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] Cannot Install Packages

2016-05-10 Thread Uwe Ligges
ied) Warning: unable to access index for repository http://cran.cs.wwu.edu/bin/windows/contrib/3.0 The mirror does not exist, perhaps choose another one? Best, Uwe Ligges Warning message: package ‘reshape2’ is not available (for R version 3.0.2) When I went to the list of packages to look

Re: [R] loading

2016-03-27 Thread Uwe Ligges
Err, you already loaded it, there is not necessarily another message. Just try the functions you want to use. .. Best, Uwe Ligges On 27.03.2016 19:10, farzana akbari wrote: hi I install plm and pglm packages but I can not load no one of them. the massage of loading plm is library(plm

Re: [R] fftImg() error: fftw_access_func

2016-03-26 Thread Uwe Ligges
Please report problems in packages to the corresponding package maintainer, CCing here .. Best, Uwe Ligges On 25.03.2016 21:09, Eric Handler wrote: Hello- My name is Eric Handler and I am an academic technologist supporting the Science Division(7 academic departments) at Macalester College

Re: [R] installing packages

2016-03-21 Thread Uwe Ligges
a fresh R without loading nlme, then R should be able to move the temp installation. Best, Uwe Ligges The downloaded binary packages are in C:\Users\james_henson\AppData\Local\Temp\RtmpIZmUa3\downloaded_packages Thank for your help. James F. Henson [[alternative HTML version

Re: [R] degree sign

2016-03-19 Thread Uwe Ligges
quot;,Orthophase[i,j],xl," ") plot(MyData$time.hour[plotData],newData[plotData],type="l", xaxt="n", xlab=printXlab,. It has to be an expression, you must not use paste() around it: plot(MyData$time.hour[plotData], newData[plotData], type="l", xax

Re: [R] Testing installed package of rJava in Linux

2016-03-09 Thread Uwe Ligges
is not required? Thanks and much appreciated, Santosh On Tue, Mar 8, 2016 at 10:41 PM, Uwe Ligges <lig...@statistik.tu-dortmund.de wrote: On 09.03.2016 02:19, Santosh wrote: Dear Rxperts.. I installed rJava on 64-bit Linux system and apparently it installed without errors.However, I

Re: [R] Testing installed package of rJava in Linux

2016-03-08 Thread Uwe Ligges
xecution halted Apparently you do not have an X server running or no X forwarding enabled? Best, Uwe Ligges Would highly appreciate your tips/suggestions.. Thanks and much appreciated, Santos

Re: [R] Slow CRAN Mirror Action

2016-03-08 Thread Uwe Ligges
this is expected. Best, Uwe Ligges Version Information: Just in case people feel they need to know OS: Windows 7 rsync: version 3.0.9 protocol version 30 Network: hardwired to company LAN which has some form of firewall/proxy to the real internet Justace [[alternative HTML version

Re: [R] .Call works in R 2 not in R 3

2016-03-08 Thread Uwe Ligges
using. I do not know where the .Call() comes from, ehnce your turn to find it out. You havenÄt given any other information, not even a traceback(). Best, Uwe Ligges Best, Uwe Ligges Thanks for your help -- Sébastien Moretti __ R-hel

Re: [R] .Call works in R 2 not in R 3

2016-03-08 Thread Uwe Ligges
all("R_cutree", tree$merge, k, PACKAGE = "stats") "R_cutree" not available for .Call() for package "stats" Why do you .Call() into another package? Rather use the API. Best, Uwe Ligges Thanks for your help _

  1   2   3   4   5   6   7   8   9   10   >