Package was archived on CRAN
The package was removed from CRAN because it depends on the deprecated gWidgets package.
Do you plan to port RQDA to gWidgets2?
Oh no!
So in the meantime what should users do project owners do? This development also means that the package is not available for R 4.0.0. For it to have been archived, it wasn't built for the version when it was still devel. So all projects have to be snapshotted at max 3.6.3. with dependency management tools like packrat. Maybe those using Dockers images can maintain their projects.
Hi, It Imports RGtk2 (>= 2.20), igraph, gWidgets (>= 0.0-31), But all ready Depends on: "R (>= 2.8.0), RSQLite(>= 2.0), gWidgetsRGtk2 (>= 0.0-36), DBI(>= 0.4-9)". I'm reviewing the maual of March 29, 2018
I really think this is an important package.
what should users do project owners do? @BroVic
I've not tried working with it recently so I can't speak with any kind of authority. I advise that project owners lock their dependencies' versioning with something like packrat or renv and use the project with R versions < 4.0, at least for now.
I have a port (in development) over at https://github.com/JanMarvin/RQDA. If you want to try it, please let me know. I'm not an RQDA user myself just an R fan interested in the porting process and development with RGtk2 and SQLLite.
If you're going to try it, please make sure that you have backups of your projects. Currently its entirely experimental and I wont be able to help you with broken .rqda files
Very thankful for the advise!!! @BroVic I'll advise my students to
lock their dependencies versioning with something like packrat or renv and use the project with R versions < 4.0, at least for now.
Gee!!! Thanks for the effort!! I am a Sociologist very interested on using it for qualitative and mixed methods analysis!!!! @JanMarvin
Hi, everyone. Where can I find information on how to install RQDA? I tried some tutorials around the web, including the one in http://rqda.r-forge.r-project.org/, of course. I think the problems I'm facing are related to what you're discussing here, since I've got the package not avaiable for R 4.0.0 message. But I already tried to follow the tutorials using the R 3.6.3 version and it also didn't work, I've found the same error message. Do you know about any tutorial around that could help me? Thank you so much (:
@Tungz74 You can install it from this repo with this code
if (!requireNamespace("devtools"))
install.packages("devtools")
devtools::install_github("Ronggui/RQDA")
Otherwise, you can still use any of the archived versions from here. These come as tarballs. Just pick the one you want i.e. copy the link and install it with
install.packages(url, type = "source" , dependencies = TRUE)
OR you just download the tarballs and save them to a favoured location on disk.
Whichever you use, you must have the build tools, and then you can easily install them (i.e. the archives) from the command line with R CMD INSTALL or inside R as shown or with devtools::install().
@BroVic Thanks a lot for the answer. Just to clarify, because I've already tried several times and it didn't work ):
First, I need to install R-3.6.3-win.exe, then Rtools35.exe, then RStudio-1.3.959.exe. Second, I need to open RStudio and use this code you gave me, which is the same I can find in https://github.com/Ronggui/RQDA.
Is that correct?
Yes, try it and let us know how it goes. If you hit any errors post here, along with sessionInfo().
I installed all those three softwares and used the code you gave me. After the first two lines of code, I've got the following errors:
Loading required namespace: devtools Failed with error: ‘there is no package called ‘devtools’’
Then it installed a lot of stuff and went to the third line of code, which gave me:
Downloading GitHub repo Ronggui/RQDA@master Installing 11 packages: RSQLite, gWidgetsRGtk2, DBI, RGtk2, igraph, gWidgets, bit, bit64, blob, plogr, cairoDevice
There is a binary version available but the source version is later: binary source needs_compilation bit64 0.9-7 0.9-8 TRUE
tentando a URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/RSQLite_2.2.0.zip' Error in download.file(url, destfile, method, mode = "wb", ...) : (convertido do aviso) falha em InternetOpenUrl: 'O tempo limite da operação foi atingido' Erro: Failed to install 'RQDA' from GitHub: (convertido do aviso) download of package ‘RSQLite’ failed
Then, I tried to install the RSQlite with:
install.packages("RSQLite", depen=T, type="source")
It downloaded a lot of stuff again, but I think the installation didn't work, because it ended with:
ERROR: dependency 'bit64' is not available for package 'RSQLite'
- removing 'C:/R/R-3.6.3/library/RSQLite' Warning in install.packages : installation of package ‘RSQLite’ had non-zero exit status
And the RSQlite is not on my package list. What do I need to do to correct install the RSQLite? There's the sessionInfo
sessionInfo() R version 3.6.3 (2020-02-29) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 18363) Matrix products: default locale: [1] LC_COLLATE=Portuguese_Brazil.1252 LC_CTYPE=Portuguese_Brazil.1252
[3] LC_MONETARY=Portuguese_Brazil.1252 LC_NUMERIC=C
[5] LC_TIME=Portuguese_Brazil.1252
attached base packages: [1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached): [1] rstudioapi_0.11 magrittr_1.5 usethis_1.6.1 devtools_2.3.0
[5] pkgload_1.0.2 R6_2.4.1 rlang_0.4.6 fansi_0.4.1
[9] tools_3.6.3 pkgbuild_1.0.8 sessioninfo_1.1.1 cli_2.0.2
[13] withr_2.2.0 ellipsis_0.3.1 remotes_2.1.1 assertthat_0.2.1 [17] digest_0.6.25 rprojroot_1.3-2 crayon_1.3.4 processx_3.4.2
[21] callr_3.4.3 fs_1.4.1 ps_1.3.3 curl_4.3
[25] testthat_2.3.2 memoise_1.1.0 glue_1.4.1 compiler_3.6.3
[29] desc_1.2.0 backports_1.1.7 prettyunits_1.1.1
Thank you again!
Try this code with R 4.0 to install the archived package:
install.packages(c("gWidgets", "gWidgetsRGtk2", "RGtk2", "RSQLite", "igraph"))
install.packages("https://cran.r-project.org/src/contrib/Archive/RQDA/RQDA_0.3-1.tar.gz", type = "source")
OMG it's running! I opened the GUI and just manually selected every package R asked me before installing RQDA from my local files. Then went to the RStudio to get the GTK+, went back and forth between one and the other and it magically worked. Thank you so much for your kind patience and attention <3
In all those YouTube videos I found about installing RQDA it looks so easy... why is it so hard now?
#38
Background
-
This is too good of a package to become unsupported.
-
I found it after a lot of searching for open source CQDA and started using it after going through this paper
- Chandra, Y., & Shang, L. (2017). An RQDA-based constructivist methodology for qualitative research. Qualitative Market Research: An International Journal, 20(1), 90–112. doi:10.1108/qmr-02-2016-0014
-
Now since it is achieved and now available for easy installation.
-
It is really very painful as projects of mine are now stuck.
-
I use RStudio for installing packages
R version info
> version
_
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 4
minor 0.0
year 2020
month 04
day 24
svn rev 78286
language R
version.string R version 4.0.0 (2020-04-24)
nickname Arbor Day
Installing individual tarball files
- I tried to install the dependency packages by downloading the package archive files, but it was unsuccessful.
- I have pasted below the output received during the installation of the package cairoDevice_2.28.tar.gz
> install.packages("~/Downloads/cairoDevice_2.28.tar.gz", repos = NULL, type = "source")
Installing package into ‘/home/lobo/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
* installing *source* package ‘cairoDevice’ ...
** package ‘cairoDevice’ successfully unpacked and MD5 sums checked
** using staged installation
checking for pkg-config... no
ERROR: Cannot find pkg-config.
ERROR: configuration failed for package ‘cairoDevice’
* removing ‘/home/lobo/R/x86_64-pc-linux-gnu-library/4.0/cairoDevice’
Warning in install.packages :
installation of package ‘/home/lobo/Downloads/cairoDevice_2.28.tar.gz’ had non-zero exit status
Installing from Github
- I tried all the 4 options
- Here I am showing the output of option 1
> devtools::install_github("Ronggui/RQDA")
Downloading GitHub repo Ronggui/RQDA@master
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?
1: All
2: CRAN packages only
3: None
4: bit64 (0.9-7 -> 0.9-8) [CRAN]
Enter one or more numbers, or an empty line to skip updates:
1
gWidgetsR... (NA -> 0.0-86.1) [CRAN]
RGtk2 (NA -> 2.20.36 ) [CRAN]
bit64 (0.9-7 -> 0.9-8 ) [CRAN]
cairoDevice (NA -> 2.28 ) [CRAN]
Installing 4 packages: gWidgetsRGtk2, RGtk2, bit64, cairoDevice
Installing packages into ‘/home/lobo/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/gWidgetsRGtk2_0.0-86.1.tar.gz'
Content type 'application/x-gzip' length 162008 bytes (158 KB)
==================================================
downloaded 158 KB
trying URL 'https://cran.rstudio.com/src/contrib/RGtk2_2.20.36.tar.gz'
Content type 'application/x-gzip' length 2789752 bytes (2.7 MB)
==================================================
downloaded 2.7 MB
trying URL 'http://r-forge.r-project.org/src/contrib/bit64_0.9-8.tar.gz'
Content type 'application/x-gzip' length 125761 bytes (122 KB)
==================================================
downloaded 122 KB
trying URL 'https://cran.rstudio.com/src/contrib/cairoDevice_2.28.tar.gz'
Content type 'application/x-gzip' length 40711 bytes (39 KB)
==================================================
downloaded 39 KB
* installing *source* package ‘RGtk2’ ...
** package ‘RGtk2’ successfully unpacked and MD5 sums checked
** using staged installation
checking for pkg-config... no
checking for INTROSPECTION... no
checking for GTK... no
configure: error: GTK version 2.8.0 required
ERROR: configuration failed for package ‘RGtk2’
* removing ‘/home/lobo/R/x86_64-pc-linux-gnu-library/4.0/RGtk2’
Error: Failed to install 'RQDA' from GitHub:
(converted from warning) installation of package ‘RGtk2’ had non-zero exit status
Also tried to install the package tarball
> install.packages("~/Downloads/RQDA_0.1-6.tar.gz", repos = NULL, type = "source")
Installing package into ‘/home/lobo/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
ERROR: dependencies ‘RGtk2’, ‘gWidgetsRGtk2’ are not available for package ‘RQDA’
* removing ‘/home/lobo/R/x86_64-pc-linux-gnu-library/4.0/RQDA’
Warning message:
In install.packages("~/Downloads/RQDA_0.1-6.tar.gz", repos = NULL, :
installation of package ‘/home/lobo/Downloads/RQDA_0.1-6.tar.gz’ had non-zero exit status
> install.packages("~/Downloads/RQDA_0.3-1.tar.gz", repos = NULL, type = "source")
Installing package into ‘/home/lobo/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
ERROR: dependencies ‘gWidgetsRGtk2’, ‘RGtk2’ are not available for package ‘RQDA’
* removing ‘/home/lobo/R/x86_64-pc-linux-gnu-library/4.0/RQDA’
Warning message:
In install.packages("~/Downloads/RQDA_0.3-1.tar.gz", repos = NULL, :
installation of package ‘/home/lobo/Downloads/RQDA_0.3-1.tar.gz’ had non-zero exit status
@Tungz74 Can you please let me know how exactly you got it working? It will be really helpful.
@roystonanillobo Use the code @sjewo provided. It's a good thing the archived version works with R-4.0. That said, once it's running, I would still advise the use of packrat or renv, so that all the packages' versions are snapshotted and you can use the project without problems and even share with collaborators.
We hope that the maintainers of this package eventually get it back on stream. I agree, it's too good a package to lose, but then even tech giants like Google have had their packages knocked off CRAN before.
@roystonanillobo you must also install the required development packages for your linux distribution.
The error message configure: error: GTK version 2.8.0 required shows, that GTK2 is not installed on your system. On Debian based system the missing package might be libgtk2.0-dev
@roystonanillobo I opened my R - not the RStudio, just the GUI - and tried to install the RQDA from my local files, from a tar.gz file I have downloaded before. Then I searched through the error message for the packages R needed before installing RQDA. I installed everyone of them from one mirror. Most of them worked fine, I think RGtk2 didn't, because of the GTK+. That's when I opened RStudio, because when you try to use RGtk2 without GTK+, it asks for you to install it. So I installed it on RStudio. Closed it. Opened R again and tried to install RQDA again. Then I installed whatever R asked me to install before RQDA until it accept my RQDA tar.gz file. At some point it accepted and installed. I closed R, opened RStudio again and VOILÁ! It's working fine now. I hope it helps you, but I'd recommend you to follow the instructions given by @BroVic and @sjewo , because I have absolutely no ideia what I'm doing. If those instructions didn't work for you, as they didn't for me, give my method a try. We never know haha Good luck, fellow researcher.
@sjewo @BroVic @Tungz74
Docker to recuse
I was able to use RQDA using Docker. I tried solutions by
-
Fred Vanwin
- https://github.com/FrdVnW/dockerqda
-
CMU Mobile Commerce Lab
- https://github.com/MobileCommerceLab/RQDA-RStudio-sshd
End result
Both options are working but I plan to stick with Fred Vawin solution as it is lighter.
Regarding GTK version
- I have GTK2 version 2.24.
- I was able to use RQDA before the update.
- So I don't know why it shows that error.
- I tried to install from @JanMarvin's repo but RGtk still gave an error.
Regarding packrat or renv
- I need to understand them. I will do it in future.
Thank you!
@roystonanillobo If you're installing my port with devtools on win 64 bit (and have 32 bit R installed as well) please make sure that you use the option INSTALL_opts = "--no-multiarch" otherwise the build will fail trying to build for 32 bit. This is a limitation of Rgtk2. For issues regarding my package please use the issue tracker, as I don't follow this one (only saw that you mentioned me)
Even though I work on Linux installations (thanks to @roystonanillobo for having so patiently explained that RQDA using Docker is working on Linux). I've tried to install it on a VM with MsWins10, this is as far as I've got using RKWard 0.7.1b https://rkward.kde.org/ with R 3.6.3 in RKWard library (I had RQDA working before I uninstalled RKWard and deleted the library directory on C:\Program Files): https://cran.r-project.org/bin/windows/base/old/3.6.3/ and RTools35 https://cran.r-project.org/bin/windows/Rtools/history.html also installed.
install.packages(c("gWidgets", "gWidgetsRGtk2", "RGtk2", "igraph","plogr","bit","RSQLite"),depen=T)
update.packages(ask = FALSE, checkBuilt = TRUE)
library(RGtk2)
Selected GTK+
Restarted RKWard
Installing ""RQDA_0.3-1.tar.gz", type = "source"", gave me an error: "Failed to load RGtk2 dynamic library, attempting to install it". But by chance, I just saw the post by @JanMarvin and it worked!!!
install.packages("https://cran.r-project.org/src/contrib/Archive/RQDA/RQDA_0.3-1.tar.gz", type = "source", INSTALL_opts = "--no-multiarch")
Then I ran:
update.packages(ask = FALSE, checkBuilt = TRUE)
And then
library (RQDA)
And it worked!!
If anyone could please refine it or give other suggestions as how to install it on MsWin, would be very much appreciated! Thanks to @sjewo and @JanMarvin for their hard work!! porting this package to R 4.
What a mess. I regret so bad choosing RQDA back then. Now I have to finish with it because my whole PhD work is in it. Under ubuntu I get the error version 3.0-1 not available for R4.0.1. Suggestions?
Why not just use an older version of R? v 3.6.3 works fine; it's not too old and will work with just about any other recent package version. If you tried any of the above approaches and failed, do post and maybe someone can help you out.
Again, I can't say this enough: If you're doing any kind of long-term project, use packrat or. renv to isolate that project along with its dependencies. This workflow allows you to have local source versions of all your packages. You can't go wrong with this. As a Linux user you can equally explore Docker.
Sorry about your difficulty, but this is not an RQDA thing. The R ecosystem is on the bleeding edge of statistical programming, and things can change very quickly.
I had the 3.6.3, after 2 days I still couldnt install the dependencies needed. What a pain...I guess I'll start a computer science degree in order to be able to finish my PhD.
Please share the errors + systemInfo() and maybe you can be helped. I'm currently using RQDA with 3.6.3. but on Windows.
@2nanfer if you are on linux just use the docker method. I find it to be the easiest.
Guide to install docker on ubuntu
- You may follow this guide: https://phoenixnap.com/kb/how-to-install-docker-on-ubuntu-18-04
- Or you can follow the installation guide from Docker: https://docs.docker.com/engine/install/ubuntu/
- After which you can follow the way I use it.
The way I use it
- https://github.com/roystonanillobo/runningRQDAusingDocker
Try this code with R 4.0 to install the archived package:
install.packages(c("gWidgets", "gWidgetsRGtk2", "RGtk2", "RSQLite", "igraph")) install.packages("https://cran.r-project.org/src/contrib/Archive/RQDA/RQDA_0.3-1.tar.gz", type = "source")
I tried this. but showing error like below . my R version is 4.0.1. Previously RQDA was working perfectly in the 3.6.1 version.
install.packages(c("gWidgets", "gWidgetsRGtk2", "RGtk2", "RSQLite", "igraph")) Installing packages into ‘C:/Users/HP/Documents/R/win-library/4.0’ (as ‘lib’ is unspecified) --- Please select a CRAN mirror for use in this session --- Warning: unable to access index for repository https://cran.uib.no/src/contrib: cannot open URL 'https://cran.uib.no/src/contrib/PACKAGES' Warning: unable to access index for repository https://cran.uib.no/bin/windows/contrib/4.0: cannot open URL 'https://cran.uib.no/bin/windows/contrib/4.0/PACKAGES' Warning message: packages ‘gWidgets’, ‘gWidgetsRGtk2’, ‘RGtk2’, ‘RSQLite’, ‘igraph’ are not available (for R version 4.0.1)
@sonyapdichal
gWidgets was removed from CRAN and this is the root cause of the archiving of RQDA itself. Thus, the package that depends on it, gWidgetsRGtk2, is archived as well. There is a new API, gWidgets2 that was introduced earlier this month and thus you will need to install the archived versions of gWidgets and gWidgetsRGtk2 if you want to use the archived RQDA package.
@BroVic Thank you so much for your response. I am not into coding. I am a social science researcher. Could you please tell me how to install the archived versions of these. I have been trying various codes given here and in other pages. But, all attempts ended up in error.