Hello Naresh,
On Saturday, 10 Dec 2022 at 08:46, Naresh Gurbuxani via ESS-help wrote:
> In my organization, IT security set up disables emacs package
> installation from package archives (e.g. MELPA) using M-x
> package-install. Therefore, I am downloading package tar files from
> package
Hello,
I found myself always complaining about the lack of auto-completion
feature for data.frame columns.
I decided try my hand at writing a backend that seems to be working, so
I thought of sharing it on the mailing list.
It is just a small hack that mainly relies on the
Hello,
I would like to remove the extra > and + generated when evaluating
a region, with ess-eval-visibly set to nil. I saw issue #576 on github
and tried to set inferior-ess-replace-long+ to `strip` but I still get
misalignement as shown in the example below.
I favour the right alignment when
Hello
On Thursday, 1 Jul 2021 at 08:25, PIKAL Petr wrote:
> Hm.
>
> Seems to me, that both your codes are wrong but printing in Linux is
> different from Windows.
>
> With
> as.Date("20-12-2020","%Y-%m-%d")
> you say that 20 is year (actually year 20) and 2020 is day and only first
> two values
Hello,
I have been surprised when converting a character string to a date with the
following
format,
in R 4.1.0 (linux debian 10)
as.Date("20-12-2020","%Y-%m-%d")
[1] "20-12-20"
in R 4.0.5 (window 10)
as.Date("20-12-2020","%Y-%m-%d")
[1] "0020-12-20"
Here I was expecting a blunt and sharp
tenth")
> tabify(mat,mat_names)
Many thanks for your suggestion, I haven't considered the horizontal
spacing before. The columns names do help as well.
Best regards,
Jeremie
>
> Jim
>
> On Sun, Jun 13, 2021 at 2:25 AM Jeremie Juste wrote:
>>
>> Hello,
>>
Hello,
Many thanks to you all for the prompt reply. Thanks for sharing.
On Saturday, 12 Jun 2021 at 09:53, Jeff Newmiller wrote:
> Can't say this appeals to me, but sprintf would make a difference:
>
> apply(
> mat,1,
> function(x) {
> x[is.na(x)] <-""
>
he following command
apply(
mat,1,
function(x) {
x[is.na(x)] <-""
cat(x,"\n")
})
Do you have any suggestion for how can I have better control on the
print layout of the matrix so that I can fix the width of each cell?
Best regards,
Hello Vincent,
> On Wed, Jun 2, 2021, at 19:01, Vincent Arel-Bundock via ESS-help wrote:
>> Jeremie,
>>
>> This is quite embarrassing, but the behavior does NOT replicate under
>> vanilla emacs. I should have done my research!
I have fallen into this trap (many times) as well so rest assured
Hello Vincent,
On Wednesday, 2 Jun 2021 at 09:14, Vincent Arel-Bundock via ESS-help wrote:
> Hi all,
>
> Thanks for your awesome work on ESS!
>
> I use the data.table package with chains of square brackets, and would like
> to indent my code as follows:
>
> library(data.table)
> dat =
Hello,
Many thanks for the reply.
Indeed there was no scoping issue here. I was sloppy.
Best regards,
Jeremie
On Wednesday, 24 Mar 2021 at 11:34, Duncan Murdoch wrote:
> On 24/03/2021 9:06 a.m., Jeremie Juste wrote:
>> Hello,
>> I was wondering how to call a function outsid
Hello,
I was wondering how to call a function outside a setRefClass but inside
the package without export it. Let me explain by means of an example.
- in the file test-package/R/test.R
##' some description
##'
##' some details
##' @title test
##' @return sideeffect
##' @author Jeremie Juste
/apps/x86_64/emacs/27.1/share/emacs/site-lisp/ess in order to
> install ess in .emacs.d?
>
> Note: I tried installation from MELPA first, but the version of ess
> there insists on Emacs 25.1, and my available options are 26.1 or
> 27.1.
>
> Thanks in advance for any tips.
--
kee Campus
>
> [[alternative HTML version deleted]]
>
> __
> ESS-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>
> __
> ESS-help@r-project.org
tion on Biostatistics and Pharmaceutical Statistics
> Institute for Health and Equity, Division of Biostatistics
> Medical College of Wisconsin, Milwaukee Campus
>
> [[alternative HTML version deleted]]
>
> __
> ESS-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
--
Jeremie Juste
__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
me a way round this is to start R in a shell (in
> emacs) and then ess-remote. I’ve moved on to using direnv and lorri but
> that’s not an option for windows.
>
> Dominic Steinitz
> domi...@steinitz.org
> http://idontgetoutmuch.org
> Twi
roken.
>
> I am baffled as to why ESS is not finding R. Any clues?
>
> Many thanks
--
Jeremie Juste
__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
aded from
/home/djj/.emacs.d/elpa/ess-20200825.829/) but the problem still persist
in the latest version.
Best regards.
--
Jeremie Juste
__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
.3snapshot [elpa: 20201122.814] (loaded from
c:/Users/Jeremie/AppData/Roaming/.emacs.d/elpa/ess-20201122.814/)
I will report it on the ESS mailing list if need be.
Many thanks again,
Best regards,
--
Jeremie Juste
__
R-help@r-project.org ma
: ")
> selection: abc[Ret]
> a
> "abc"
It is the expected behavior or am I missing something?
Best regards,
Jeremie
--
Jeremie Juste
> R version 4.0.3 (2020-10-10)
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and mo
e.
>
> Strangely, I can see a ess-20210204.856 directory, but not the
> "ess-20210202.836" . Should I just reinstall the package then?
>
> Jaime
>
> On Thu, Feb 4, 2021 at 2:59 PM Jeremie Juste wrote:
>
>> Hello Jaime,
>>
>> Could you check the m
___
> ESS-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>
--
Jeremie Juste
__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
be
found on the remote
on my local R session as.environment("ESSR") works
as.environment("ESSR")
Do you have any clue?
Best regards,
--
Jeremie Juste
- ess-version: 18.10.3snapshot [elpa: 20200825.829]
- emacs: GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
with this mysterious
function: ess-bounds-of-symbol. Do you have a clearer picture than me?
Best regards,
Jeremie
--
Jeremie Juste
__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
length=24, by="1 month") - 1
>
> See this old StackOverflow answer where I used this before:
>
>
> https://stackoverflow.com/questions/8333838/generate-a-sequence-of-the-last-day-of-the-month-over-two-years
>
> Dirk
--
Jeremie Juste
Hello Jim,
Many thanks for the feedback
> Using "month" first advances the month without changing the day: if
> this results in an invalid day of the month, it is counted forward
> into the next month: see the examples.
Indeed I missed the documentation of seq.Date that refers to
seq.POSIXt.
;2012-08-31" "2012-10-01"
When the same command is performed for the start of the month. I get a
result I expect.
> seq(as.Date("2012-08-01"),by="1 month",length=2)
[1] "2012-08-01"
Is there an explanation for this behavior?
Best regards,
--
Jeremie Juste
__
ss,
> R and (local) Ubuntu. It does not occur when I have run R via tramp on
> other remote systems. I believe it is a problem particular to this
> remote system, and am seeking a workaround.
>
> Chris
>
> On Fri, 2020-12-18 at 22:42 +0100, Jeremie Juste wrote:
>> Hello
ror: internal error
>> Error: unexpected '}' in " }"
>> > > > > . + > > Error in .ess_keep(funs_exported, is.function) :
> could not find function ".ess_keep"
>> Error in .ess_keep(funs_pkg, is_first_arg, "pkg") :
> could not find function ".ess_keep"
>> Error in sort(names(funs_pkg)) : object 'funs_pkg' not found
>> > Error: object 'funs_names' not found
>> Error: unexpected '}' in "}"
>> Error: unexpected '}' in "}"
>> Error in .ess.command(options(STERM = "iESS", str.dendrogram.last =
> "'", :
> object 'withVisib' not found
>> >
>>
>
> __
> ESS-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>
--
Jeremie Juste
__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
Hello Alejandra,
|| On Tuesday, 8 Dec 2020 at 10:48, Alejandra Barrio Gorski wrote:
Welcome to the mailing list.
> Greetings, I am new to this list. I joined because I am pioneering the use
> of R for the agency I work for. I essentially work alone and would like to
> reach out for help on an
Hello,
> When I execute a line of R code, the R buffer opens up as expected, but
> it opens in a frame adjacent to the frame containing my source buffer. I
> would like it to open the R buffer as a frame below my source code,
> rather than adjacent to it.Â
This section of the documentation
Hello Pavel,
A simple way to achieve that would be to use bookmarks or file
registers.
(info "(emacs) Registers")
For instance you can set a file register like the following in your
init.el|.emacs
(set-register ?r '(file . "favourite-project/"))
Notice that the file register works fine for
the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Best regards,
Jeremie Juste
On Friday, 9 Oct 2020 at 13:31, Ablaye Ngalaba wrote:
> Hello.
> Here is my R code. I used the functional data . Now I need
u are facing.
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Best regards,
--
Jeremie Juste
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and mor
Hello Giovanni,
I don't know if my workflow would suit you but I tend to want the
opposite when I launch a parallel process. I tend to want to keep the
processes alive as long as they can. If the computation time is long I
would not want to lose everything.
lapply..8 <- function(X,FUN,...){
SS. Shall we? We could / should
> just start with a wiki and hash out, say, half a dozen high-level topics and
> then take turns. Deal?
This sounds interesting. I'm in.
--
Jeremie Juste
__
ESS-help@r-project.org mailing list
https://stat.ethz.c
lines) ..
##'
##' .. content for \details{} ..
##' @title $1
##' @param $2
##' @return
##' @author Jeremie Juste
$1 <- function($2){
$0
}
So typing fn[tab] would expand the snippet and force me to write some
documentation.
I used to naively include the documentation in the functi
o ESS than I
know and it would be great if we could pool our resources to improve
further. For my part `ess-describe-object-at-point` really improved by
workflow as it can be customized to include any function.
Best regards,
--
Jeremie Juste
__
ESS-help@r-pr
nd will not be overwritten.
And the file helloRoxygen-package.Rd is not updated.
I'll appreciate any lead on this.
Best Regards,
--
Jeremie Juste
__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
ssigning to type 'logical' (column 6 named 'PHENO')
>
> Please advise,
> Ana
>
> On Wed, Sep 23, 2020 at 2:48 PM Jeremie Juste wrote:
>>
>>
>> Hello Ana Marija,
>>
>> I cannot reproduce your error,
>>
>> with a$PHENO=ifelse(a$PLASER==2 |a$R
Hello Ana Marija,
I cannot reproduce your error,
with a$PHENO=ifelse(a$PLASER==2 |a$RTNPTHY==2, 2, ifelse(a$CURRELIG==1 |
a$RTNPTHY==1,1,NA))
For instance I have the expected PHENO=2
> FID IID CURRELIG PLASER RTNPTHY PHENO
> 39: fam5706 G57061 1 2 2
In
Hello Shreyas,
Thanks for your input.
On my side, ess-switch-to-end-of-proc-buffer is set to t by default.
So I am not sure it is the issue. Feel free to chip in if you think I'm
wrong.
Best regards,
Jermeie
Shreyas Ragavan via ESS-help writes:
> I was wondering if this could be related to
ini-buffer line. When the
> minibuffer expands to 2+ lines, the comint buffer jumps.
>
> Maybe you can try enabling this and see if it causes comint jumpiness.
>
> FWIW I'm using Emacs 26.3, and the latest ESS on Melpa.
>
> Thanks.
>
> -John
>
> On 9/12/20 4:13 PM, J
Hello John,
Unfortunately, I cannot reproduce your error. We can try to figure out
how is Ess working with emacs -Q though.
- $ emacs -Q
- then load ess-site. If you installed it with melpa then
- (package-initialize)
- (ess-site)
- Do you have the same issue when using IESS?
Could
I considered leaning towards a more lispy way
`test-fun` <- function(s) print(s) but it would not have been very
popular. I now think [2] Camelcase is the way to go.
[1]: http://irreal.org/blog/?p=344
[2] https://jef.works/R-style-guide/
Hope this helps,
Jeremie Juste
___
Hello,
> Is there a function to copy an inferior-buffer R command back to the R
> script and insert it at point?
For a while I have considered doing just that but I ended exploring other
options.
* First option
Have you considered using directly a script buffer for prototyping?
This might be a
Hello,
you need
> dir(pattern="\\.r$",ignore.case=TRUE)
remember that the pattern is a regular expression.
so ".r" is [any single character]r. So basically it will give you any
file that contains r (but not that starts with r)
so you got what you expected with
> dir(pattern=".txt")
just by
Hello
I can buy you this feature for a one liner
data[ data[,"columnB"] > 123 ,"columnA"] <- gsub("xxx", "yyy",_POINT_
,fixed=TRUE)
To do this you can use the function r/copy-left-of-assign-r-fun-end
but you will have to load the function r/get-begin-of-line-point as
well (see below)
I have
Hello,
Can you provide more information?
What is your operating system?
What is your database management system (sqlite, mySQL,...)
What package do you use to import the data in R from the database?
What is the default language on your computer?
Are the variables not in farsi fine?
My guess is
Hello,
Genetic algorithm can prove handy as well here. see for instance
https://cran.r-project.org/web/packages/GA/vignettes/GA.html
with non-convex objective functions I usually try a genetic algorithm for
a few rounds then finish using nlminb
Best regards,
Jeremie
Marc Girondot via R-help
Hello,
I suspect the error is in the file input-summerize.R.
I creating a new file input-summerize2.R with only print("hello") for
instance and check if
> setwd("~/documents/white-papers/geochemistry/willamette-river-mercury/scripts")
> source("input-summerize2.R")
works
Hope it helps,
,1] [,2] [,3]
> [1,] 2 4 7
> [2,] 3 6 8
>
> Le samedi 20 octobre 2018 à 15:21:53 UTC+2, Jeremie Juste
> a écrit :
>
> malika yassa via R-help writes:
>
> Hello,
>
> Can you specify what you mean by deleting exactly?
> Do you want to have
malika yassa via R-help writes:
Hello,
Can you specify what you mean by deleting exactly?
Do you want to have zero in the diagonal or do you want to extract the
non-diagonal part?
Besides your matrix is not a square matrix. Do you really want to
extract the non-diagonal part of a non square
Hello,
Can you specify the ess version you are using?
I would suggest disabling global-font-lock-mode (M-x
global-font-lock-mode) before launching R to see if it works.
It is not a fix but just a way to investingate where the problem might
be.
Best regards,
Jeremie
Neil Shephard via
Hello,
Glad you could sort it out.
I think version controling the .emacs file and the .emacs.d directory
could help solve these issues faster. You could easily go back to a
previous working version. This might be helpful if you are in a
situation where you really need things to work.
I'm
uot;)
;; mine
(add-to-list 'load-path "/home/djj/.emacs.d/elpa/ess-20181003.755/")
(require 'ess-site)
I got some errors from julia mode but R works fine.
Hope it helps
Jeremie
Neil Shephard writes:
> Hi,
>
> Thanks for taking the time to reply.
>
> On Wed, 3 O
Hello,
Have a look at the variable inferior-R-args. (C-h v
inferior-R-args). You can customize it to include --no-save.
in principle putting (setq inferior-R-args "--no-save") in your .emacs
file should do it.
Best regards,
Jeremie
> Hi everyone,
>
> Does know of a way to stop the "Save
Hello,
I'm wondering it is possible and if yes would it be desirable to modify
the return value of functions during evaluation.
I supposed this would be very useful during debugging
myfun <- function(x) {res <- x+3 ; browser() ; res}
let say I run the following function myfun(3) and drop
Andras Farkas via R-help writes:
Hello,
set.seed(123.456)
df <-data.frame(ID=c(1,1,2,2,2,3,3,3,3,4,4,5,5),
read=c(1,1,0,1,1,1,0,0,0,1,0,0,0),
int=c(1,1,0,0,0,1,1,0,0,1,1,1,1),
z=rnorm(13,1,5),
y=rnorm(13,1,5))
May this will suffice?
lapply(unique(df$ID),function(x) df[df$ID==x,])
Duncan Murdoch writes:
>> for ( i in 1:length(var1)){
>
> This is generally a bad idea: if length(var1) == 0, it does the wrong
> thing, since 1:0 is c(1L, 0L). Better to use
>
> for ( i in seq_along(var1) ) {
>
granted. One should check the validity of their variables before using
them but
Christofer Bogaso writes:
Hello
In case you have conflicting data issue when you load data, you can also do it
the other way around. Indeed you never know when a possible conflict might
occur in the future.
The following line load the data in a new environment e first then get it back
to
Hello,
If you need to go through R the function fread of data.table
can speed up the data import.
If not and you work on a gnu/linux distro may be awk might help
https://stackoverflow.com/questions/5536018/how-to-print-matched-regex-pattern-using-awk
HTH,
Jeremie
owosad.github.io/drat/', type='source'))
>
>> loadedNamespaces()
> [1] "compiler" "graphics" "utils" "grDevices" "stats" "datasets"
> [7] "methods" "spData""base"
>
> ## Now,
Hello,
>This is *very* unlikely to be a bug. People should always exercise a
>great deal of caution about conjecturing bugs when they encounter a
>phenomenon that they don't understand.
Ok, I over reacted and I should let the package maintainers
qualify what is a bug or not. My point is
Helllo,
Thanks for the info. I still think these variables should not be loaded
when library(spdep) is called.
But I'll handle it following your suggestion.
Thanks,
Jeremie
> It turns out that that 'x' comes from the spData package and lives
> inside that package (part of its
Hello,
I found a dangerous issue in the library spdep. I get variables x and y
that cannot be removed by rm() and I don't don't how they show up. Can
anyone reproduce this?
~$ R --vanilla
> rm(list=ls())
> library(spdep)
> x
[1] 0 30 60 90 120 150 180 210 240 270 300 330 360 390 420 450
Hello,
I would like to know how to use Rmpi on a cluster but usually the
workflow of the cluster uses sun grid engine to launch jobs.
I found this reference on the web
http://borisv.lk.net/howtos/grid-mpi-r-howto.html.
But I could not even reproduce that example some errors with
> n.cores <-
Hello,
>> I am using the function "focal" in the R package "raster" but I don’t
>> understand how the function calculates values for neighboring cells that
>> are located at the raster edge. Here is an example reproducible:
focal is a method for the S4 object RasterLayer. You can have access
Alejandra Lopez-Galan writes:
Hello,
I'm not sure to fully answer you question but I'll give it a try. I'll
use the library "data.table" as I forgot how to do it in base R. If you
don't have it you will have to install it by doing
> install.packages(data.table,repos
Rolf Turner writes:
> On 01/12/17 20:33, Hasan Diwan wrote:
>
>> Yes.
>
> Very true. But some *thinking* is required; that often proves to be a
> formidable stumbling block.
Or one of the best decision you'll ever take. You cannot master SAS without
expensive
Hello,
I tried intalling mice package and got the following error:
* installing *source* package ‘mice’ ...
** package ‘mice’ successfully unpacked and MD5 sums checked
** libs
g++ -I/usr/local/lib/R/include -DNDEBUG
-I"/home/djj/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include"
Hello,
I was trying to make my R implementation of making-a-lisp
https://github.com/kanaka/mal/tree/master/
And to my surprise I got stuck in the starting blocks. There is already
a mal implementation of R here
https://github.com/kanaka/mal/tree/master/r but it uses rdyncall package
which is
Hello,
I have some trouble understanding why !b & is TRUE. Do you have an idea?
> b <- matrix(c(0,1,1,0,1,0),2)
> !b
[,1] [,2] [,3]
[1,] TRUE FALSE FALSE
[2,] FALSE TRUE TRUE
> !b &
[1] TRUE
Best regards,
Jeremie
__
Hello,
I don't know exactly where to turn to.
I'm using Emacs speak statistics and I can execute a codes on my local
computer to a remote session seemlessly.
But I've always wondered how to source a file on local computer to the
remote session? Till now I have copied the files to the remote
Hello
> Berwin A Turlach writes:
> That you don't have the package Rmpfr installed? And it seems to be
> needed for the higher dimension. On my machine it works:
>
Thanks for the lead,
Best regards,
Jeremie
__
75 matches
Mail list logo