Ronggui / RQDA

R-based Qualitative Data Analysis
http://rqda.r-forge.r-project.org
Other
113 stars 31 forks source link

Package was archived on CRAN #38

Open sjewo opened 4 years ago

sjewo commented 4 years ago

The package was removed from CRAN because it depends on the deprecated gWidgets package.

Do you plan to port RQDA to gWidgets2?

BroVic commented 4 years ago

Oh no!

BroVic commented 4 years ago

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.

AlfCano commented 4 years ago

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

BroVic commented 4 years ago

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.

JanMarvin commented 4 years ago

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.

JanMarvin commented 4 years ago

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

AlfCano commented 4 years ago

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

Tungz74 commented 4 years ago

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 (:

BroVic commented 4 years ago

@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().

Tungz74 commented 4 years ago

@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?

BroVic commented 4 years ago

Yes, try it and let us know how it goes. If you hit any errors post here, along with sessionInfo().

Tungz74 commented 4 years ago

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!

sjewo commented 4 years ago

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")
Tungz74 commented 4 years ago

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?

roystonanillobo commented 4 years ago

38

Background

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

Installing from Github

> 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
roystonanillobo commented 4 years ago

@Tungz74 Can you please let me know how exactly you got it working? It will be really helpful.

BroVic commented 4 years ago

@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.

sjewo commented 4 years ago

@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

Tungz74 commented 4 years ago

@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.

roystonanillobo commented 4 years ago

@sjewo @BroVic @Tungz74

Docker to recuse

I was able to use RQDA using Docker. I tried solutions by

End result

Both options are working but I plan to stick with Fred Vawin solution as it is lighter.

Regarding GTK version

Regarding packrat or renv

Thank you!

JanMarvin commented 4 years ago

@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)

AlfCano commented 4 years ago

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.

2nanfer commented 4 years ago

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?

BroVic commented 4 years ago

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.

2nanfer commented 4 years ago

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.

BroVic commented 4 years ago

Please share the errors + systemInfo() and maybe you can be helped. I'm currently using RQDA with 3.6.3. but on Windows.

roystonanillobo commented 4 years ago

@2nanfer if you are on linux just use the docker method. I find it to be the easiest.

Guide to install docker on ubuntu

The way I use it

sonyapdichal commented 4 years ago

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)

BroVic commented 4 years ago

@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.

sonyapdichal commented 4 years ago

@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.

BroVic commented 4 years ago

@sonyapdichal

Okay, let's see if we can help.

Please run this line in the R console and post the output:

sessionInfo()

Remember to use R-3.6.

sonyapdichal commented 4 years ago

@BroVic

sessionInfo() R version 3.6.1 (2019-07-05) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 18362)

Matrix products: default

locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages: [1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached): [1] compiler_3.6.1

BroVic commented 4 years ago

@sonyapdichal

Use this code:

if(!requireNamespace('remotes'))
  install.packages('remotes', repos = 'https://cran.rstudio.com')
library(remotes)
url <- "http://cran.r-project.org"
install_version('gWidgets', '0.0-54.2', repos = url)
install_version('gWidgetsRGtk2', '0.0-86.1', repos = url)

I'm sure you have Rtools35 as you will need it to build these source packages. Also, note that I have the following versions of these required packages:

My sessionInfo():

R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)

Matrix products: default

locale:
[1] LC_COLLATE=English_United Kingdom.1252 
[2] LC_CTYPE=English_United Kingdom.1252   
[3] LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C                           
[5] LC_TIME=English_United Kingdom.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods  
[7] base     

loaded via a namespace (and not attached):
[1] compiler_3.6.1 tools_3.6.1
2nanfer commented 4 years ago

Hi guys,

I managed to get the dependencies without Docker. I just had to PAY ATTENTION TO THE ORDER they must be installed. I got some through terminal (GTK libs: libgtk2.0-dev...), through R console (devtools...) and I downloaded the files from archives namely gWidgets, gWidgetsRGtk2, cairoDock and RDQA itself. Whenever installing pay close attention to the errors they tell you which dependency to install next or is missing. The dependencies archives have crazy version numbers so just check the upload dates or compatibility information.

Thx anyways and wish you all a nice week,

*** my posts might look dumb without background info, my PC got stolen so I had to reinstall everything in a new one.

glocalglocal commented 4 years ago

Hi all,

Thanks for the pointers. There is an increasing number of people on the RQDA help list who are desperately trying to find a way to complete their projects, as they find RQDA won't work for them any more. Most of us don't have a computing background. Is there any point in hoping somehow RQDA will work again in the not-so-distant future? Otherwise, we might as well move on and back to Microsoft's NVivo etc. It would be a shame to lose RQDA and it would undermine faith in FOSS, but I suppose that's life.

jbroski commented 4 years ago

I want to add to voices expressing the importance of RQDA. I too feel this is a very important package. I started working with RQDA several years ago, and found installation was tricky/frustrating but oh so worth the trouble. Since then, I've used RQDA on other collaborations and always dread the RQDA installation process because it is not always smooth, and can look a bit intimidating, but once you get over the initial hurdle of installation, RQDA is an amazing tool.

norberello commented 4 years ago

Thank u all for the efforts fixing installation problems in Rv4, However, this is very frustrating as I had everything organized to use RQDA in the lectures next semester, but the faculty has upgraded R to version 4 in all PCs and installing RQDA is not possible now, I cannot get it to work. Now I have to switch to Weft-QDA, which was the software I was using before RQDA, or try something new (perhaps, QCA would do the job of coding texts). Switching software was not in my plans, I was enjoying RQDA a lot, but for now, I have spent enough time finding for a solution that ain't for "normal" R users.

jbroski commented 4 years ago

Wow, Norberto, this is so disappointing to hear, and I can imagine how disappointing this would be for you after planning to use RQDA. I have access to a couple of systems that do not yet have R installed. I might see if one of my kids who enjoys troubleshooting systems can come up with a workflow.

In the past there have been times that I’ve had to keep different versions of R on my computer to work with various packages. I will try that option. Even if faculty have already upgraded to 4.0, if RQDA will work with an older version of R, that could be a viable option for you. I expect we can do some testing on this issue over the next 5 days and I’ll report back what I find.

I sure hope RQDA doesn’t fall off a cliff. I’ve spent a great deal of energy writing code over the last year to enhance my ability to use RQDA with multiple coders.

Julie

Get Outlook for iOShttps://aka.ms/o0ukef


From: Norberto Asensio notifications@github.com Sent: Saturday, June 27, 2020 5:18:59 AM To: Ronggui/RQDA RQDA@noreply.github.com Cc: Julie Broski jbroski@kumc.edu; Comment comment@noreply.github.com Subject: Re: [Ronggui/RQDA] Package was archived on CRAN (#38)

Thank u all for the efforts fixing installation problems in Rv4, However, this is very frustrating as I had everything organized to use RQDA in the lectures next semester, but the faculty has upgraded R to version 4 in all PCs and installing RQDA is not possible now, I cannot get it to work. Now I have to switch to Weft-QDAhttp://www.pressure.to/qda/, which was the software I was using before RQDA, or try something new (perhaps, QCAhttps://cran.r-project.org/web/packages/QCA/index.html would do the job of coding texts). Switching software was not in my plans, I was enjoying RQDA a lot, but for now, I have spent enough time finding for a solution that ain't for "normal" R users.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/Ronggui/RQDA/issues/38#issuecomment-650537480, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHDVLCT4STF6U2ATERCOMGTRYXBQ7ANCNFSM4NF6NGYA.

norberello commented 4 years ago

Thanks, Julie, unfortunately, R cannot be downgraded as other teachers wanted the upgrade to 4 for other libraries. Thanks a lot for looking into this. Guess that integrating RQDA directly in RCran network is one of the issues (but I am lost here), hopefully, there is an easy fix, it'd be a downer not using RQDA any longer. Thanks again for the help. Cheers, N

Wow, Norberto, this is so disappointing to hear, and I can imagine how disappointing this would be for you after planning to use RQDA. I have access to a couple of systems that do not yet have R installed. I might see if one of my kids who enjoys troubleshooting systems can come up with a workflow. In the past there have been times that I’ve had to keep different versions of R on my computer to work with various packages. I will try that option. Even if faculty have already upgraded to 4.0, if RQDA will work with an older version of R, that could be a viable option for you. I expect we can do some testing on this issue over the next 5 days and I’ll report back what I find. I sure hope RQDA doesn’t fall off a cliff. I’ve spent a great deal of energy writing code over the last year to enhance my ability to use RQDA with multiple coders. Julie Get Outlook for iOShttps://aka.ms/o0ukef

devrimince-edu commented 4 years ago

I do not want to take the ball before the bound but I think that I manage to load and run properly RQDA on macOs Catalina, Linux Ubuntu 20.04 and (partly) Windows 10. Actually I am feeling so far from social sciences end of the day . Because running the tool (RQDA) dominates me and my qualitative research. Even running the package thoroughly transform itself into an independent project that is not about social sciences. However, I will write about my all experience on all OS.

Before writing about procedure I deeply thank @JanMarvin for his upgraded package and vital suggestions. .

For macOS Catalina, my session info as follows:

R version 4.0.2 (2020-06-22)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.5

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.0.2 tools_4.0.2 

I assume that you have XCode and command line tools besides xquartz and macports are installed according to instructed procedure in main page of RQDA. It is possible to see that after loading all package for RQDA and their dependencies when you run the GUI writing library(RQDA) in console or Terminal, the package was aborted as fatal errors etc. The problem, at least my case, stem from GTK+ and relevant packages. Therefore, all packages should be installed from source code. You can find most of the codes in CRAN or archived libraries. I mean you should run in Terminal as follows:

R CMD INSTALL path_to_file_and_filename.tar.gz

After loading all package and their dependencies you can visit this page for loading the RQDA-0.3.2. After writing R in Terminal for R base, you can run RQDA writing that library(RQDA) . It should run the GUI at the point. Be carefulI, you run the package as root user in terminal, you can not open the saved RQDA file in RStudio as normal user. The error can be as follows:


`> (R:8432): Gtk-WARNING **: 00:15:17.321: Attempting to set the permissions of 
`/var/root/.local/share/recently-used.xbel', but failed: No such file or directory`

Also there are some bugs running the package when you want to add manually files selecting Files > New > on GUI. Sometimes the button "Save the file" is the passive. I can not solve why that way. When you close the GUI saving your project, the command RQDA() gives long&long page errors, shortened sample below:


`> RQDA
function () 
{
    options(guiToolkit = "RGtk2")
    if (isTRUE(.rqda$isLaunched)) {
        message("RQDA has been launched.")
    }
    else {
        ".root_rqdagui" <- gwindow(title = rqda_txt("RQDA: Qualitative Data Analysis"), 
            parent = c(2, 2), width = gdkScreenWidth() * 0.1, 
            height = gdkScreenHeight() * 0.1, visible = FALSE, 
            handler = function(h, ...) {
                closeProject(assignenv = .rqda)
            })
        addHandlerKeystroke(.root_rqdagui, function(h, ...) {
            if (h$key == "\021") {
                dispose(.root_rqdagui)
                assign("isLaunched", FALSE, envir = .rqda)
            }
        })

As for Linux case on Ubuntu 20.04 LTS (Focal Fossa).

Almost the most bloodless surgery is that. If you are more or less familiar to Terminal, you can load and run RQDA provided have R Base and devtools package. But I faced some errors running the RQDA as non-root user. I think the RSQLite package, the R interfaces of SQLite, causes the errors below. Besides, the project could not be opened and not be added as a "New Project" as non-root user. You can find sessionInfo() and errors below:

R version 4.0.2 (2020-06-22)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0

locale:
 [1] LC_CTYPE=C.UTF-8           LC_NUMERIC=C              
 [3] LC_TIME=tr_TR.UTF-8        LC_COLLATE=C.UTF-8        
 [5] LC_MONETARY=tr_TR.UTF-8    LC_MESSAGES=C.UTF-8       
 [7] LC_PAPER=tr_TR.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=tr_TR.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.0.2
`> library(RQDA)
Loading required package: RSQLite
Loading required package: DBI
Loading required package: gWidgets2RGtk2
Loading required package: memoise
Loading required package: RGtk2
Loading required package: gWidgets2
Loading required package: digest
Loading required package: stringi

Use 'RQDA()' to start the programme.

> Error in sqliteSendQuery(conn, statement) : 
  error in statement: no such table: project
Error in dbExecute(.rqda$qdacon, sql) : 
  could not find function "dbExecute"
In addition: Warning message:
In .Call(rsqlite_driver_init, records, cache) :
  converting NULL pointer to R NULL
Error in sqliteSendQuery(conn, statement) : 
  error in statement: no such table: project
In addition: Warning message:
In .Call(rsqlite_driver_init, records, cache) :
  converting NULL pointer to R NULL`

When you run the R as root user the package is running stable but if you are closing the project, you can not turn back to RQDA because of same errors like above in macOS. You have to close R and run the command R in Terminal. It can be tolerated as long as run the package.

The most unsolved one is Windows 10

`> sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)`

The package and dependencies can load via the page. But I can not manage run the package properly. It seems perfectly by launching the GUI. When you run the package, as an administrator or normal user, did not give permission to save your project neither local disk or cloud etc. The error as follows:

 `Use 'RQDA()' to start the programme.

Error: Could not connect to database:
unable to open database file`

I tried re-install RSQLite but I was not able to solve.

AlfCano commented 4 years ago

I think this discussion is important to solve this issue:

Upstreaming / Uploading to CRAN

https://github.com/JanMarvin/RQDA/issues/10

fernandovf commented 4 years ago

I tried everything, from installing individually each of the packages needed to run RQDA, to downgrading R with no success. But I'm here to let people know that the only solution that worked for me was the one posted by @JanMarvin in https://github.com/JanMarvin/RQDA. I'm using Windows 10 and just had to update Rstudios and R (4.0.2) to get the codes working. Thank you very much!

peterstory commented 4 years ago

For those comfortable using Docker, my lab's Docker image might be helpful for you.

You can either build the image yourself: https://github.com/MobileCommerceLab/RQDA-RStudio-sshd

Or use the version hosted on Docker Hub: https://hub.docker.com/repository/docker/mobilecommercelab/rqda-rstudio-sshd

The Dockerfile may also be a helpful reference for how to install RQDA and its dependencies.

stragu commented 4 years ago

I don't know how OS-independent this will be, but I tried to detail a series of commands that should work for many with R 4.0.

I tested this successfully on Ubuntu 18.04 with R 4.0.2: the RQDA GUI could launch. However: I have no idea what might break when actually using it! If you have more info, or if it worked successfully for you on a different OS, please tell us!

# On Debian-based (including Ubuntu), you might have to
# install GTK2 beforehand, by running in a terminal:
# sudo apt install libgtk2.0-dev

# To avoid warning about "cairoDevice installed before R 4.0.0":
install.packages("cairoDevice")

# Install non-problematic dependencies:
install.packages(c("RSQLite", "igraph", "RGtk2"))

# Get the remotes package to install specific package versions:
if(!requireNamespace('remotes')) {
  install.packages('remotes')
}
library(remotes)
# Get most recent archived versions of deprecated packages:
install_version("gWidgets", "0.0-54.2")
install_version("gWidgetsRGtk2", "0.0-86.1")
install_version("RQDA", "0.3-1")

# Try it:
library(RQDA)
kevinhosford commented 4 years ago

Could @Ronggui confirm if this is now abandoned? I have @JanMarvin docker image running successfully but lack considerable knowledge regarding Docker such as accessing the file system, backing up to github, etc.

indiana56637 commented 4 years ago

Hello all. Please could I ask for advice about getting RQDA working. I have tried the above steps and am still getting stuck at installation of gWidgetsRGtk2. GTK+ is in the path (tested with gtk-demo from command line). library(RGtk2) run in advance. Tried on 3.6.3 and 4.0.2. Please help!

I've tried using, with the same result:

if(!requireNamespace('remotes')) install.packages('remotes', repos = 'https://cran.rstudio.com') library(remotes) url <- "http://cran.r-project.org" install_version('gWidgets', '0.0-54.2', repos = url) install_version('gWidgetsRGtk2', '0.0-86.1', repos = url)

Error:

Warning: Failed to load RGtk2 dynamic library, attempting to install it. Please install GTK+ from http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.22/gtk+-bundle_2.22.1-20101227_win32.zip If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN Error in match.fun(FUN) : node stack overflow Warning: Failed to load RGtk2 dynamic library, attempting to install it. Please install GTK+ from http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.22/gtk+-bundle_2.22.1-20101227_win32.zip If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN Error : node stack overflow Warning: Failed to load RGtk2 dynamic library, attempting to install it. Please install GTK+ from http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.22/gtk+-bundle_2.22.1-20101227_win32.zip If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN Error: package or namespace load failed for 'RGtk2': .onLoad failed in loadNamespace() for 'RGtk2', details: call: NULL error: node stack overflow Error : package 'RGtk2' could not be loaded Error: loading failed Execution halted *** arch - x64 ERROR: loading failed for 'i386'

sessionInfo() R version 4.0.2 (2020-06-22) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 18362)

Matrix products: default

locale: [1] LC_COLLATE=English_United Kingdom.1252 [2] LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252 [4] LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252

attached base packages: [1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached): [1] compiler_4.0.2

BroVic commented 4 years ago

@indiana56637

Try this script.

indiana56637 commented 4 years ago

Many thanks for the help - Unfortunately it didn't work, but I did finally notice a packaged/portable file set containing functioning RQDA on the main page for Ronggui/RQDA:

https://www.dropbox.com/s/5zebadz41dep09k/RQDA_0.3_1.rar?dl=0

That will do for my purposes I think, as it seems to function independently if you run R from inside ?

BroVic commented 4 years ago

@indiana56637

Could you share the error(s) you encountered on the Gist so I can improve the script?

indiana56637 commented 4 years ago

@indiana56637

Could you share the error(s) you encountered on the Gist so I can improve the script?

Warning: Failed to load RGtk2 dynamic library, attempting to install it. Please install GTK+ from http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.22/gtk+-bundle_2.22.1-20101227_win32.zip If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared object 'C:/Users/ninja/OneDrive/Documents/R/win-library/4.0/RGtk2/libs/i386/RGtk2.dll': LoadLibrary failure: %1 is not a valid Win32 application.

Warning: Failed to load RGtk2 dynamic library, attempting to install it. Please install GTK+ from http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.22/gtk+-bundle_2.22.1-20101227_win32.zip If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN Error in match.fun(FUN) : node stack overflow Warning: Failed to load RGtk2 dynamic library, attempting to install it. Please install GTK+ from http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.22/gtk+-bundle_2.22.1-20101227_win32.zip If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN Error : node stack overflow Warning: Failed to load RGtk2 dynamic library, attempting to install it. Please install GTK+ from http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.22/gtk+-bundle_2.22.1-20101227_win32.zip If the package still does not load, please ensure that GTK+ is installed and that it is on your PATH environment variable IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN Error: package or namespace load failed for 'RGtk2': .onLoad failed in loadNamespace() for 'RGtk2', details: call: NULL error: node stack overflow Error : package 'RGtk2' could not be loaded Error: loading failed Execution halted *** arch - x64 ERROR: loading failed for 'i386'