I write and adapt others R code and paste it into the Rconsole. This has worked until this version of rkward. Now if I paste this in if (d_start>a_start) { b_start=1 } else { b_start=-1 } I get the following which used to work. > if (d_start>a_start) { " > } Error: unexpected '}' in "}" > If I'm doing something wrong then I'm sorry. Complex lines of code with multiple lines don't work at all making the program unusable. -- Frontend -- RKWard version: 0.7.2 KDE Frameworks version (runtime): 5.92.0 KDE Frameworks version (compile time): 5.74.0 Qt version (runtime): 5.15.3 Qt version (compile time): 5.14.2 Using QtWebKit for HTML rendering Local config directory: /home/nrh1/.config RKWard storage directory: /home/nrh1/.rkward/ Backend version (as known to the frontend): 4.1.2 Debug message file (this may contain relevant diagnostic output in case of trouble): /tmp/rkward.frontend -- Backend -- Debug message file (this may contain relevant diagnostic output in case of trouble): /tmp/rkward.rbackend R version (compile time): 4.0.2 (2020-06-22 r78730) R runtime session info: R version 4.1.2 (2021-11-01) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Linux Mint 21 Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.0 LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0 locale: [1] LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_GB.UTF-8 LC_COLLATE=en_GB.UTF-8 [5] LC_MONETARY=en_GB.UTF-8 LC_MESSAGES=en_GB.UTF-8 [7] LC_PAPER=en_GB.UTF-8 LC_NAME=en_GB.UTF-8 [9] LC_ADDRESS=en_GB.UTF-8 LC_TELEPHONE=en_GB.UTF-8 [11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=en_GB.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] ggplot2_3.4.2 minpack.lm_1.2-3 rkward_0.7.2 loaded via a namespace (and not attached): [1] fansi_1.0.4 withr_2.5.0 dplyr_1.1.2 utf8_1.2.3 [5] grid_4.1.2 R6_2.5.1 lifecycle_1.0.3 gtable_0.3.3 [9] magrittr_2.0.3 scales_1.2.1 pillar_1.9.0 rlang_1.1.1 [13] cli_3.6.1 generics_0.1.3 vctrs_0.6.3 tools_4.1.2 [17] glue_1.6.2 munsell_0.5.0 compiler_4.1.2 pkgconfig_2.0.3 [21] colorspace_2.1-0 tidyselect_1.2.0 tibble_3.2.1 >
I have no specific idea, what may be going wrong, here, but RKWard 0.7.2 is very old by now, and my immediate guess it that this may be related to changes in R or elsewhere that have happened meanwhile. Please try again with RKWard 0.7.5. https://rkward.kde.org/Building_RKWard_From_Source.html Works for me. Should problems persist, feel free to re-open this ticket.
Created attachment 160314 [details] attachment-3103993-0.html Thanks for your reply the code works fine in R in a terminal. Had a graphics error too and RKward wouldn't plot graphs. I'm using mint. Is that the ubuntu source I want for 0.7.5? I wasn't quite sure whether it was that or debian? Neil On Sun, 16 Jul 2023 at 14:17, Thomas Friedrichsmeier < bugzilla_noreply@kde.org> wrote: > https://bugs.kde.org/show_bug.cgi?id=472225 > > Thomas Friedrichsmeier <thomas.friedrichsmeier@kdemail.net> changed: > > What |Removed |Added > > ---------------------------------------------------------------------------- > Status|REPORTED |RESOLVED > CC| > |thomas.friedrichsmeier@kdem > | |ail.net > Resolution|--- |WORKSFORME > > --- Comment #1 from Thomas Friedrichsmeier < > thomas.friedrichsmeier@kdemail.net> --- > I have no specific idea, what may be going wrong, here, but RKWard 0.7.2 is > very old by now, and my immediate guess it that this may be related to > changes > in R or elsewhere that have happened meanwhile. > > Please try again with RKWard 0.7.5. > https://rkward.kde.org/Building_RKWard_From_Source.html > > Works for me. Should problems persist, feel free to re-open this ticket. > > -- > You are receiving this mail because: > You reported the bug.
Yes, there are known bugs with graphs in RKWard 0.7.2 when used with R 4.1 and higher. So that's another reason to update RKWard. I'm not sure, how close Mint is to Ubuntu. If it's close enough, your easiest option will be to add one of our PPAs. Likely this one: https://launchpad.net/~rkward-devel/+archive/ubuntu/rkward-stable (add the PPA to your system, then check for updates). Should that show a dependency problem, you'll have to compile from source. We'll be happy to talk you through the process, too, but the best place to ask for support on that will be on our rkward-users@kde.org mailing list.
Created attachment 160326 [details] attachment-3147244-0.html Thanks, I'll check it out. On Sun, 16 Jul 2023 at 21:07, Thomas Friedrichsmeier < bugzilla_noreply@kde.org> wrote: > https://bugs.kde.org/show_bug.cgi?id=472225 > > --- Comment #3 from Thomas Friedrichsmeier < > thomas.friedrichsmeier@kdemail.net> --- > Yes, there are known bugs with graphs in RKWard 0.7.2 when used with R 4.1 > and > higher. So that's another reason to update RKWard. > > I'm not sure, how close Mint is to Ubuntu. If it's close enough, your > easiest > option will be to add one of our PPAs. Likely this one: > https://launchpad.net/~rkward-devel/+archive/ubuntu/rkward-stable (add > the PPA > to your system, then check for updates). Should that show a dependency > problem, > you'll have to compile from source. We'll be happy to talk you through the > process, too, but the best place to ask for support on that will be on our > rkward-users@kde.org mailing list. > > -- > You are receiving this mail because: > You reported the bug.