Tag: package

64 votes
29 answers
2.6K views
Elegant way to check for missing packages and install them?

I seem to be sharing a lot of code with coauthors these days. Many of them are novice/intermediate R users and

avatar
Dwain
0 1 0 9
asked 07 September, 2021
61 votes
6 answers
1.9K views
How do I install an R package from source?

A friend sent me along this great tutorial on webscraping NYtimes with R. I would really love to try it. Howev

avatar
Louetta
0 1 0 9
asked 07 September, 2021
61 votes
13 answers
911 views
How to find out which package version is loaded in R?

I am in a process of figuring out how to use my university cluster. It has 2 versions of R installed. System w

avatar
Tuan
0 1 0 9
asked 07 September, 2021
57 votes
12 answers
2.6K views
How to unload a package without restarting R

I'd like to unload a package without having to restart R (mostly because restarting R as I try out differ

avatar
Vi
0 1 0 9
asked 07 September, 2021
57 votes
8 answers
2.2K views
What is the difference between require() and library()?

What is the difference between require() and library()?

avatar
Kurtis
0 1 0 9
asked 07 September, 2021
53 votes
18 answers
828 views
How should I deal with "package 'xxx' is not available (for R version x.y.z)" warning?

I tried to install a package, using install.packages("foobarbaz") but received the warning Warning message

avatar
Percy
0 1 0 9
asked 07 September, 2021
43 votes
12 answers
1.6K views
Why does "npm install" rewrite package-lock.json?

I just recently upgraded to npm@5. I now have a package-lock.json file with everything from package.json. I

avatar
Arline
0 1 0 9
asked 07 September, 2021
65 votes
15 answers
1.3K views
How to list npm user-installed packages?

How do I list the user-installed package ONLY in npm? When I do npm -g list it outputs every package and their

avatar
Dario
0 1 0 9
asked 07 September, 2021
57 votes
17 answers
3K views
What is the difference between --save and --save-dev?

What is the difference between: npm install [package_name] and: npm install [package_name] --save and: npm i

avatar
Forrest
0 1 0 9
asked 07 September, 2021
57 votes
14 answers
2.2K views
What's the difference between dependencies, devDependencies and peerDependencies in npm package.json file?

This documentation answers my question very poorly. I didn't understand those explanations. Can someone s

avatar
Carmelina
0 1 0 9
asked 07 September, 2021
64 votes
30 answers
1.8K views
Find the version of an installed npm package

How to find the version of an installed node.js/npm package? This prints the version of npm itself: npm -v &

avatar
Omar
0 1 0 9
asked 07 September, 2021
56 votes
19 answers
2.9K views
What's the difference between tilde(~) and caret(^) in package.json?

After I upgraded to the latest stable node and npm, I tried npm install moment --save. It saves the entry in t

avatar
Roger
0 1 0 9
asked 07 September, 2021
59 votes
12 answers
1.4K views
What is __init__.py for?

What is __init__.py for in a Python source directory?

avatar
Renaldo
0 1 0 9
asked 07 September, 2021
59 votes
4 answers
1.7K views
What is thread safe or non-thread safe in PHP?

I saw different binaries for PHP, like non-thread or thread safe? What does this mean? What is the differen

avatar
Basil
0 1 0 9
asked 07 September, 2021