Standalone package installation in RStudio

I am working on a terminal at work that does not have an http \ https connection due to the security protocol. I manually downloaded several packages on another computer and am trying to install them using RStudio. When I run in RStudio

install.packages(//filedir/package_file.zip,repos=NULL,type="source")

he tries to connect to the online repository anyway:

>>warning in istall.packages:
>>unable to resolve 'www.stats.ox.ac.uk'

but when I go through RGui and use utils:::menuInstallLocal()and use the popup, it does not try to connect through the server and installs my local files.

What am I doing wrong in RStudio?

I also want to be able to make dependencies and imports automatically install for the parent package when it is installed.

+4
source share
2 answers

, zip- .

RStudio

> > " " " "

, .

, , "tm",

library (tm) # "tm"

, :)

+4

type="source", zip :

install.packages("yourlink.zip", repos=NULL)
+3

Source: https://habr.com/ru/post/1530803/


All Articles