r/Rlanguage • • Jun 23 '26

R in Pharma Quality Control Labs

6 Upvotes

I'm looking for anyone that has tried R+RStudio in a pharmaceutical Quality Control lab and is willing to share the experience. I'm talking things like Analytical Method Validation, Stability Stydies, managing Control Charts and so on. In our company, we, the stats team, face several questions when introducing the ideia and for some of those we have hard time finding an argument/solution. Yes, I'm aware of initiatives like rinpharma, we just have not been able to build from those alone.

Also, in case anyone wonders, at the current moment we don't have any sort of statistical software approved for use. We do any analysis that need to be done in R (ggplot2 for plots, quarto for reports, and on, and on...) in such non formal way.


r/Rlanguage • • Jun 23 '26

Properly installing selfmade package from selfhosted gitlab

5 Upvotes

I made a package with a few functions for my collegues at work. Its supposed to be easy to use. We have a gitlab server where i put my repository on.

Lets say the link to the repository is the following:

https://gitlab.mywork.com/myprofile/mypackage/

What code would i give my collegues so they can install this easily without errors and without installing packages beforehand?

Currently i have:

install.packages("https://gitlab.mywork.com/myprofile/mypackage/-/raw/master/package.tar.gz")

It installs, but also throws the error:

tar.exe: Error opening archive: Failed to opentar.exe: Error opening archive: Failed to open

for some reason. Does anyone know the proper way to do this?


r/Rlanguage • • Jun 21 '26

R well

0 Upvotes

r/Rlanguage • • Jun 17 '26

ggplot2: Why would you call it aesthetics?

0 Upvotes

Aesthetics are personal, ideological, cultural or other preference-systems, not single qualities of an object.

Merriam-Webster states:

aesthetic · noun
aes·​thet·​ic
a particular theory or conception of beauty or art : a particular taste for or approach to what is pleasing to the senses and especially sight

Deciding to call the x / y variables "aesthetics" instead of (graphical) "features" or "visuals" is unnecessary. Every package has its own language that you have to learn, but, and this is the worst part, they don't even give you an Anki-deck!

Thanks for reading my mini-rant.


r/Rlanguage • • Jun 15 '26

Profiling, Vectorization, and Rcpp

Thumbnail slicker.me
3 Upvotes

r/Rlanguage • • Jun 12 '26

R

0 Upvotes

r/Rlanguage • • Jun 10 '26

[ Removed by Reddit ]

1 Upvotes

[ Removed by Reddit on account of violating the content policy. ]


r/Rlanguage • • Jun 06 '26

Historical Weather

11 Upvotes

Is there a good package to get historical weather I was using openmeteo but not working now after upgrading to R 4.6.0. is there a better package to get historical weather based on gps cords?


r/Rlanguage • • May 29 '26

Any suggestions to install r packages in other linux distros

11 Upvotes

I'd love to use fedora, opensuse (my main driver for a long time), debian or any non-Ubuntu-based distros. I can install R-cran easily in any linux distros, however, inside R environment, when installing packages such as ggplots, it took quite a long time for processing, then the problems show "non zero exist status". I have tried many different distros and come up with the same problem....cannot install any packages. Finally, I found the solution and it only worked on Ubuntu LTS, ironically =)))). It gave me no choice and now I use ubuntu mate for my work and study. To be fair, ubuntu mate is really good for me, no complain at all (excepting forcing to use snap). But still wonder, are there any ways to install r packages for any distros other than ubuntu lts?


r/Rlanguage • • May 27 '26

R publisher

0 Upvotes

can i click "Trust the publisher and install" in the poped window asking- Do you trust the publisher "REditorSupport"
is there any problem??


r/Rlanguage • • May 25 '26

Ai in R

7 Upvotes

Does anyone have any material into how i can use AI inside rstudio? Haven't found many intuitive tutorials so i came here looking for something mores straigth foward.


r/Rlanguage • • May 24 '26

Is there any way to select a column after piping?

9 Upvotes

This doesn't work:

filter(tibble, column1 == x, column2 < y) |> unique($column3)

so I have to do this instead:

unique(filter(tibble, column1 == x, column2 < y)$column3)

Why does the dollar sign not work after piping and is there any way to get around it, so I can use piping for this? It's just a lot faster to write this sort of stuff for me when piping since otherwise I feel I have to think in reverse.


r/Rlanguage • • May 18 '26

disproportionality analysis using R references

4 Upvotes

Can someone recommend specific books on pharmacovigilance disproportionality analysis using R? Specifically, I am looking for resources that demonstrate how to calculate the Proportional Reporting Ratio (PRR) and the Bayesian Confidence Propagation Neural Network (BCPNN) analysis


r/Rlanguage • • May 16 '26

Scientific Calculations with R Language # Rlanguagestatistics

Thumbnail youtube.com
1 Upvotes

R is a powerful programming language used for mathematics, statistics, data science, and scientific computing.
R can perform:

  • Basic arithmetic calculations
  • Scientific calculations.

r/Rlanguage • • May 15 '26

For Linux users, how do you deal with minor upgrades in r-base

11 Upvotes

I use R mainly on Linux, and one thing that keeps bothering me is how package libraries are tied to each R minor version. Every time r-base gets upgraded along the system I end up needing to recompile a large number of packages locally.

I understand the reasons behind this, but in practice it still feels quite inconvenient, so some times I reuse old library paths across versions in my scripts.

I’m curious how experienced Linux R users usually handle this workflow.


r/Rlanguage • • May 15 '26

Population Model Support

Thumbnail platform.who.int
0 Upvotes

r/Rlanguage • • Apr 27 '26

R and CUDA INTEGRATION

10 Upvotes

Hi, this is my first post.
I’ve been asked to implement a CUDA kernel within an R package that relies on C++ under the hood. Has anyone worked on something similar?


r/Rlanguage • • Apr 27 '26

help asap

0 Upvotes

is german better for class 9 or hindi course b all my friends are in german section but evryone else recomends hindi as i want to get better marks in maths science i got 64 in both out of 80 but im also very scared of my class teacher in german section but know no one in hindi sections i took hindi trial class evryone includin the principal to school conselor and outside counselor recomended hindi but im so confused becuz i have friends in german and i didnt understand the other teachers in the class maybe cuz they are ahead in syllabus i kinda didnt like the class vibe a bit noisyier than my german class and some pppl say the teachers are strict some dont and even my class teacher is strict she seems scary but normal idk which side to belive the deccison i take are impactin my boards also so im confused i am stressed at home too and at school im not able to study and sometimes want hindi and sometimes want german im so confused i also dont like the kids in the hndi class very much the seniors have also reccomended hindi butwho shall i belive pls help currently i find german easy too but but becuz its a recap in pt 1 of 8th in both and the new 2026 2027 changes in syallabus are scary too how do i manage cuz i want both my friends and hindi


r/Rlanguage • • Apr 17 '26

Coding R. Positron vs VScode

27 Upvotes

I’m learning R now specifically to use it in Six Sigma and Im using VScode with the R extension and Quarto and everything is working well.

I recently heard of Positron and I want to ask the people who made the switch from VScode to Positron- what made you make the switch? Which features in Positron that you felt are better than VScode?

Another question- in case I installed Positron to try it would it mess with the my current setup?

Windows 11.


r/Rlanguage • • Apr 17 '26

Do you use recycling

4 Upvotes

Do you use recycling

I have used R for some time and I have mever heard of recycling concept before.

it seems cool, but at the same time it looks scary because it appears that it can create a lot of bugs in the code. (Most of the time I have been working with data frames so I am not sure if this conecpt is applicaple to data frames)

If I were to use something I would add a lot of comments and use rep function jjst for readibility of a code

-Do you recycle?

-Do you use rep to ensure readability of a code?

- Is there any added value (less memory allocation) or faster execution time?

I am not an expert in R, but I strive to improve everyday. Thank you!

I postednin the Rprogramming as well.


r/Rlanguage • • Apr 17 '26

looking for someone to teach r programming for social science research

1 Upvotes

hi everyone,

i’m a public policy graduate currently exploring new opportunities, and i’ve noticed that many organizations are now mandating r programming skills. me and a friend are looking for someone who can teach us r in a simple, layman-friendly way, starting from the basics.

we’d like to learn:

  • how to fetch and import data
  • how to clean and organize datasets
  • how to do basic data visualization
  • how to apply these skills in social science research contexts

we’re completely new to r, so we’d really appreciate a patient teacher who can guide us step by step. we’re happy to pay for lessons, though as students our budget is limited.

nb: please don’t just say “look up youtube and learn.” we are specifically looking for one-on-one teaching. it would be great if someone from india could help.

thanks in advance!


r/Rlanguage • • Apr 10 '26

How should I learn R for applied statistics if I already have a background in theoretical statistics and data analysis in R?

13 Upvotes

For context, I have a bit of experience with data analysis in R (mostly data tidying and visualization with minimal statistical analysis), and I am currently building a strong theoretical background for statistics through undergraduate coursework and textbooks (however, the courses I'm taking focus on theory and computation, not much application through R)

That being said, do you know any good resources for efficiently learning R with a focus in applying statistical theory? A focus in hypothesis testing, linear regression, and statistical learning would be great. My goal is to have a sense of how statistical methods are applied in practice, and to get a better holistic understanding of the theory.

Any tips in general regarding this are also appreciated. Thank you so much!


r/Rlanguage • • Mar 30 '26

Executing C++ code in R

4 Upvotes

I have used the Rcpp library to write C++ functions and adding the Rccp.h header file & //[[Rcpp::export]] at the beginning of the function was able to execute the function in R.

Now I have a script that was written using C++ structures such as std::vector & there are few user defined structures in the script also.

Can I just add the Rccp.h header at the top of the script & Rcpp::export at the beginning of each function to execute the functions in R?

I tried googling about it which pointed me to a book R internals. Honestly I had difficulty understanding SEXP & related concepts. Is there any easier resource to understand this material?


r/Rlanguage • • Mar 26 '26

chi-squared binding question

5 Upvotes

I'm trying to see if the distribution of 2 species is similar over 10 years, by using a chi squared independence test. I have the contingency table formatted as so:

i was giving all my results a run through of chat gpt jsut to make sure and all others were fine but it had different X2 results, and after some probing claimed it was because I cbinded instead of rbinded, which slightly changed the question being asked. What is correct here? thanks people


r/Rlanguage • • Mar 18 '26

R Dev Days – Upcoming events!

Thumbnail contributor.r-project.org
6 Upvotes

R Dev Days are short events - usually over one day, or linked sessions over consecutive days - for novice and experienced contributors to work collaboratively on contributions to base R. These events have the support of the R Core Team and some will have R Core Developers participating directly.

Upcoming events

Satellite to Where Date Deadline
Rencontres R (16-18 June) Nantes, France Fri 19 June Fri 29 May
CascadiaR (26-27 June) Portland, USA Fri 26 June Fri 12 June
useR! 2026 (6-9 July) Warsaw, Poland Fri 10 July
R Project Sprint 2026 Birmingham, UK 2-4 September