Skip to content

Installing Packages from a Local Repository

3 messages · Tommy O'Dell, Uwe Ligges, Brian Ripley

2 days later
#
You have to specify the repository as

"file:Q:/Integrated Planning/R"

(and I am not entirely sure if blanks are supported).

Best,
Uwe Ligges
On 13.12.2012 11:52, Tommy O'Dell wrote:
#
On 15/12/2012 17:36, Uwe Ligges wrote:
Actually, that's not right: see ?url.  All URI schemes start like 
file:// . For Windows the help says

      In this form the path is relative to the root of the filesystem,
      not a Windows concept.  The standard form on Windows is
      ?file:///d:/R/repos?: for compatibility with earlier versions of R
      and Unix versions, any other form is parsed as R as ?file://? plus
      ?path_to_file?.  Also, backslashes are accepted within the path
      even though RFC1738 does not allow them.

Spaces should work, since it is R which converts this to a filepath (in 
a real URI there are lots of restrictions and spaces need to be encoded 
if the restrictions are enforced).  But file:// URIs on Windows are a 
minefield.