Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAQs (read me first if you have problems using this package) #345

Open
chainsawriot opened this issue Sep 6, 2023 · 3 comments
Open

FAQs (read me first if you have problems using this package) #345

chainsawriot opened this issue Sep 6, 2023 · 3 comments

Comments

@chainsawriot
Copy link
Collaborator

No description provided.

@chainsawriot chainsawriot pinned this issue Sep 6, 2023
@chainsawriot
Copy link
Collaborator Author

Q: I cannot install this package on Linux.

A: Probably you don't have the required system dependencies. This package in itself doesn't have system dependencies. But the dependencies do. You might use rang to detect all system dependencies and install them.

require(rang)
#> Loading required package: rang

graph <- resolve("gesistsa/rio",
                 snapshot_date = Sys.time())
graph$sysreqs
#> [1] "apt-get install -y libicu-dev"          
#> [2] "apt-get install -y zlib1g-dev"          
#> [3] "apt-get install -y make"                
#> [4] "apt-get install -y libcurl4-openssl-dev"
#> [5] "apt-get install -y libssl-dev"

Created on 2023-09-06 with reprex v2.0.2

@gesistsa gesistsa locked as resolved and limited conversation to collaborators Sep 6, 2023
@chainsawriot
Copy link
Collaborator Author

trust argument of import() #432

@chainsawriot
Copy link
Collaborator Author

"European" CSV files are automatically detected. You usually don't need to explicitly provide "csv2".

content <- "number;country;platform;tandem;csystem_dummy;msystem_rank;csystem_rank;arena_rank;issdriven;prefdriven;charcount;ic_ordinal;ic_categorized;post;main_language;languages;is_reliable;hashtag_count;is_redacted;WC
1;GER;FB II;JJ/SG;1;2;3;2;0;1;16;1;1;Merkel sei Dank!;un;(('Unknown', 'un', 0, 0.0), ('Unknown', 'un', 0, 0.0), ('Unknown', 'un', 0, 0.0));False;0;False;3
2;GER;FB II;JJ/SG;1;2;3;2;0;1;125;2;2;Es war ya auch der Islam der 6 Millionen Jüdische Menschen systematisch etmordet hat. Das hat ya nichts mit euch zu tun sorry;de;(('GERMAN', 'de', 99, 867.0), ('Unknown', 'un', 0, 0.0), ('Unknown', 'un', 0, 0.0));True;0;False;23
3;GER;TW;JJ/JW;1;2;3;1;0;1;41;0;0;Mijn maag keert ! #zaventem #grenzendicht;nl;(('DUTCH', 'nl', 97, 404.0), ('Unknown', 'un', 0, 0.0), ('Unknown', 'un', 0, 0.0));True;2;False;5"

temp_csv <- tempfile(fileext = ".csv")
writeLines(content, temp_csv)

rio::import(temp_csv)
#>   number country platform tandem csystem_dummy msystem_rank csystem_rank
#> 1      1     GER    FB II  JJ/SG             1            2            3
#> 2      2     GER    FB II  JJ/SG             1            2            3
#> 3      3     GER       TW  JJ/JW             1            2            3
#>   arena_rank issdriven prefdriven charcount ic_ordinal ic_categorized
#> 1          2         0          1        16          1              1
#> 2          2         0          1       125          2              2
#> 3          1         0          1        41          0              0
#>                                                                                                                            post
#> 1                                                                                                              Merkel sei Dank!
#> 2 Es war ya auch der Islam der 6 Millionen Jüdische Menschen systematisch etmordet hat. Das hat ya nichts mit euch zu tun sorry
#> 3                                                                                     Mijn maag keert ! #zaventem #grenzendicht
#>   main_language
#> 1            un
#> 2            de
#> 3            nl
#>                                                                             languages
#> 1   (('Unknown', 'un', 0, 0.0), ('Unknown', 'un', 0, 0.0), ('Unknown', 'un', 0, 0.0))
#> 2 (('GERMAN', 'de', 99, 867.0), ('Unknown', 'un', 0, 0.0), ('Unknown', 'un', 0, 0.0))
#> 3  (('DUTCH', 'nl', 97, 404.0), ('Unknown', 'un', 0, 0.0), ('Unknown', 'un', 0, 0.0))
#>   is_reliable hashtag_count is_redacted WC
#> 1       FALSE             0       FALSE  3
#> 2        TRUE             0       FALSE 23
#> 3        TRUE             2       FALSE  5

Created on 2024-09-26 with reprex v2.1.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant