Re: [R] Rtools required

2020-05-01 Thread Steven
Thank you all. In sum, installing packages from RStudio 1.2.5042 without 
Rtools present, I received warnings saying RTools required but 
installation nevertheless was successful.


Installing from R-4.0.0 directly, I have no problem.

This is obviously an RStudio problem but unfortunately they are not 
willing to help free version users. I feel so sorry having to post it here.


===

1. IN RStudio I reun the following to install from CRAC and from local a 
file, respectively:


Tools -> Install Packages -> (Choose Repository CRAN from pull-down menu)

Tools -> Install Packages -> (Packages, Archice, Files (.zip; .tar.gz) 
from pull-down menu)


In both cases, I received warning messages saying Rtools is required... 
but nevertheless the installation is successful.


2. Installing from R-4.0.0 directly, installation were successful 
without warning.


---

Install log listed below.

> install.packages("A:/R/yenlib1_1.1.0.zip", repos = NULL, type = 
"win.binary")
WARNING: Rtools is required to build R packages but is not currently 
installed. Please download and install the appropriate version of Rtools 
before proceeding:


https://cran.rstudio.com/bin/windows/Rtools/
package ‘yenlib1’ successfully unpacked and MD5 sums checked

> install.packages("aod")
WARNING: Rtools is required to build R packages but is not currently 
installed. Please download and install the appropriate version of Rtools 
before proceeding:


https://cran.rstudio.com/bin/windows/Rtools/
嘗試 URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/aod_1.3.1.zip'
Content type 'application/zip' length 382219 bytes (373 KB)
downloaded 373 KB

package ‘aod’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\USER\AppData\Local\Temp\Rtmpsf04GM\downloaded_packages


<><><> Install from R4.0.0 directly: Worked fine <><>

Packages -> Install Packages
(Worked fine after selecting a Mirror)

> utils:::menuInstallPkgs()
--- Please select a CRAN mirror for use in this session ---
嘗試 URL 
'https://mirror.las.iastate.edu/CRAN/bin/windows/contrib/4.0/aod_1.3.1.zip'

Content type 'application/zip' length 382219 bytes (373 KB)
downloaded 373 KB

package ‘aod’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\USER\AppData\Local\Temp\RtmpauyB5Q\downloaded_packages

Packages -> Install Packages from local file

> utils:::menuInstallLocal()
package ‘yenlib1’ successfully unpacked and MD5 sums checked
>



On 2020/4/30 下午 04:38, Jeroen Ooms wrote:

On Wed, Apr 29, 2020 at 11:37 PM Steven  wrote:

Hello John,

Perhaps you can help me. I am an idiot. I visited the Rtools web page
and learn to run the following lines in R: Still I am getting the same
warning message.

  > writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con =
"~/.Renviron")
  > Sys.which("make")
make
"C:\\rtools40\\usr\\bin\\make.exe"

That looks OK. Did you restart rstudio?

How exactly are getting this error? Are you using install.packages()
in R? Or using the pkgbuild package?

Also are you running the latest version of rstudio? I think old
versions may have had difficulty finding rtools40.


__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-30 Thread Jeff Newmiller
Minimize the number of referenced contributed packages, and inform your 
students that they can (should?) opt to not install from source when prompted.

In fact, this could be a use case where using the checkpoint package could help 
you manage version conflicts ... once you find a time point for which all of 
the packages you want them to use seem to play well together, then they can 
invoke the checkpoint and be on the same page with you.

Of course, you will have to make other sacrifices, like using an older version 
of R (I don't think the MRAN historical package archive is keeping up) and not 
having access to some cool stuff from recent advances in package features, but 
there aren't many options that can keep 15000+ packages all working and 
bugfixed in sync.


On April 29, 2020 8:00:43 PM PDT, Steven  wrote:
>Good point, but I am bothered by the non-discrimatory warning message
>to 
>all package installation attempts. My students install mostly binary 
>files, and I just hate to have them install Rtools. For one, they have 
>not had to do so until after RStudio-1.1.463. The fact that using this 
>older RStudio  can avoid the annoying warning message speaks volume.
>
>On 2020/4/30 上午 10:02, Bert Gunter wrote:
>> Wouldn't packages that have to be built from source on installation
>> require Rtools?
>>
>> Bert Gunter
>>
>> "The trouble with having an open mind is that people keep coming
>along
>> and sticking things into it."
>> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
>>
>> On Wed, Apr 29, 2020 at 6:48 PM Steven  wrote:
>>> Thanks to all - very helpful. I search from c:\ and now find file
>>> .Renviron located in C:\Users\USER\Documents. That does it.
>>>
>>> I would like to pose an additional question, since it would also
>fall
>>> under the same subject line. This is an RStudio question but since I
>am
>>> using the free version the RStudio folks would not help me.
>>>
>>> My students simply need to install packages and are not building any
>>> packages so they have no reason to install Rtools.
>>>
>>> When they install (not build) packages (from CRAN or file archive)
>they
>>> received the same warning message saying
>>>
>>> "Rtools required to build a package".
>>>
>>> This is nonsense of course as they are, as I said, simply
>installing. I
>>> tell them to user an older RStudio version, specifically 1.1.463
>that's
>>> free of that warning. Any idea?
>>>
>>> Steven Yen
>>>
>>> On 2020/4/30 上午 06:30, Fox, John wrote:
>>>> Dear Steven,
>>>>
>>>> It's possible that Windows will hide .Renviron, but it's generally
>a good idea, in my opinion, in Folder Options > View to click "Show
>hidden files" and uncheck "hide extensions". Then .Renviron should show
>up (once you've created it).
>>>>
>>>> Best,
>>>>John
>>>>
>>>>> -Original Message-
>>>>> From: Bert Gunter 
>>>>> Sent: Wednesday, April 29, 2020 5:50 PM
>>>>> To: Steven 
>>>>> Cc: Fox, John ; R-help Mailing List >>>> project.org>
>>>>> Subject: Re: [R] Rtools required
>>>>>
>>>>> Type
>>>>> ?.Renviron
>>>>> ?R.home
>>>>> ?"environment variables"
>>>>>
>>>>> at the R prompt to get what I think should be the info you need
>(or at
>>>>> least useful info).
>>>>>
>>>>>
>>>>> Bert Gunter
>>>>>
>>>>> "The trouble with having an open mind is that people keep coming
>along and
>>>>> sticking things into it."
>>>>> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
>>>>>
>>>>> On Wed, Apr 29, 2020 at 2:37 PM Steven  wrote:
>>>>>> Thanks John. Where is file .Renviron located? It must be a hidden
>file.
>>>>>> I cannot find it.
>>>>>>
>>>>>> On 2020/4/28 下午 08:29, Fox, John wrote:
>>>>>>> Dear Steven,
>>>>>>>
>>>>>>> Did you follow the instruction on the Rtools webpage to add
>>>>>>>
>>>>>>> PATH="${RTOOLS40_HOME}\usr\bin;${PATH}"
>>>>>>>
>>>>>>> to your .Renviron file?
>>>>>>>
>>>>>>> I ho

Re: [R] Rtools required

2020-04-30 Thread Duncan Murdoch
I think you probably wrote to the wrong place at RStudio.  You won't get 
help from their help desk without a paid license for the software, but 
they run community forums (similar in aim to this mailing list) where 
community members are often pretty helpful.


In any case, this is the wrong place to ask for help on RStudio.

Duncan Murdoch

On 29/04/2020 9:48 p.m., Steven wrote:

Thanks to all - very helpful. I search from c:\ and now find file
.Renviron located in C:\Users\USER\Documents. That does it.

I would like to pose an additional question, since it would also fall
under the same subject line. This is an RStudio question but since I am
using the free version the RStudio folks would not help me.

My students simply need to install packages and are not building any
packages so they have no reason to install Rtools.

When they install (not build) packages (from CRAN or file archive) they
received the same warning message saying

"Rtools required to build a package".

This is nonsense of course as they are, as I said, simply installing. I
tell them to user an older RStudio version, specifically 1.1.463 that's
free of that warning. Any idea?

Steven Yen

On 2020/4/30 上午 06:30, Fox, John wrote:

Dear Steven,

It's possible that Windows will hide .Renviron, but it's generally a good idea, in my opinion, in 
Folder Options > View to click "Show hidden files" and uncheck "hide 
extensions". Then .Renviron should show up (once you've created it).

Best,
   John


-Original Message-
From: Bert Gunter 
Sent: Wednesday, April 29, 2020 5:50 PM
To: Steven 
Cc: Fox, John ; R-help Mailing List 
Subject: Re: [R] Rtools required

Type
?.Renviron
?R.home
?"environment variables"

at the R prompt to get what I think should be the info you need (or at
least useful info).


Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

On Wed, Apr 29, 2020 at 2:37 PM Steven  wrote:

Thanks John. Where is file .Renviron located? It must be a hidden file.
I cannot find it.

On 2020/4/28 下午 08:29, Fox, John wrote:

Dear Steven,

Did you follow the instruction on the Rtools webpage to add

PATH="${RTOOLS40_HOME}\usr\bin;${PATH}"

to your .Renviron file?

I hope this helps,
John

 -
 John Fox, Professor Emeritus
 McMaster University
 Hamilton, Ontario, Canada
 Web: http::/socserv.mcmaster.ca/jfox


On Apr 28, 2020, at 4:38 AM, Steven  wrote:

Dear All

I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to
now the new default folder c:\rtools40). While compiling a package
(binary) I received the follow marning message saying Rtools is
required. Any clues? Thanks.

Steven Yen

WARNING: Rtools is required to build R packages but is not
currently installed. Please download and install the appropriate
version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/


   [[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-30 Thread Steven
Thanks to all - very helpful. I search from c:\ and now find file 
.Renviron located in C:\Users\USER\Documents. That does it.


I would like to pose an additional question, since it would also fall 
under the same subject line. This is an RStudio question but since I am 
using the free version the RStudio folks would not help me.


My students simply need to install packages and are not building any 
packages so they have no reason to install Rtools.


When they install (not build) packages (from CRAN or file archive) they 
received the same warning message saying


"Rtools required to build a package".

This is nonsense of course as they are, as I said, simply installing. I 
tell them to user an older RStudio version, specifically 1.1.463 that's 
free of that warning. Any idea?


Steven Yen

On 2020/4/30 上午 06:30, Fox, John wrote:

Dear Steven,

It's possible that Windows will hide .Renviron, but it's generally a good idea, in my opinion, in 
Folder Options > View to click "Show hidden files" and uncheck "hide 
extensions". Then .Renviron should show up (once you've created it).

Best,
  John


-Original Message-
From: Bert Gunter 
Sent: Wednesday, April 29, 2020 5:50 PM
To: Steven 
Cc: Fox, John ; R-help Mailing List 
Subject: Re: [R] Rtools required

Type
?.Renviron
?R.home
?"environment variables"

at the R prompt to get what I think should be the info you need (or at
least useful info).


Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

On Wed, Apr 29, 2020 at 2:37 PM Steven  wrote:

Thanks John. Where is file .Renviron located? It must be a hidden file.
I cannot find it.

On 2020/4/28 下午 08:29, Fox, John wrote:

Dear Steven,

Did you follow the instruction on the Rtools webpage to add

   PATH="${RTOOLS40_HOME}\usr\bin;${PATH}"

to your .Renviron file?

I hope this helps,
   John

-
John Fox, Professor Emeritus
McMaster University
Hamilton, Ontario, Canada
Web: http::/socserv.mcmaster.ca/jfox


On Apr 28, 2020, at 4:38 AM, Steven  wrote:

Dear All

I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to
now the new default folder c:\rtools40). While compiling a package
(binary) I received the follow marning message saying Rtools is
required. Any clues? Thanks.

Steven Yen

WARNING: Rtools is required to build R packages but is not
currently installed. Please download and install the appropriate
version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/


  [[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-30 Thread Steven
Good point, but I am bothered by the non-discrimatory warning message to 
all package installation attempts. My students install mostly binary 
files, and I just hate to have them install Rtools. For one, they have 
not had to do so until after RStudio-1.1.463. The fact that using this 
older RStudio  can avoid the annoying warning message speaks volume.


On 2020/4/30 上午 10:02, Bert Gunter wrote:

Wouldn't packages that have to be built from source on installation
require Rtools?

Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

On Wed, Apr 29, 2020 at 6:48 PM Steven  wrote:

Thanks to all - very helpful. I search from c:\ and now find file
.Renviron located in C:\Users\USER\Documents. That does it.

I would like to pose an additional question, since it would also fall
under the same subject line. This is an RStudio question but since I am
using the free version the RStudio folks would not help me.

My students simply need to install packages and are not building any
packages so they have no reason to install Rtools.

When they install (not build) packages (from CRAN or file archive) they
received the same warning message saying

"Rtools required to build a package".

This is nonsense of course as they are, as I said, simply installing. I
tell them to user an older RStudio version, specifically 1.1.463 that's
free of that warning. Any idea?

Steven Yen

On 2020/4/30 上午 06:30, Fox, John wrote:

Dear Steven,

It's possible that Windows will hide .Renviron, but it's generally a good idea, in my opinion, in 
Folder Options > View to click "Show hidden files" and uncheck "hide 
extensions". Then .Renviron should show up (once you've created it).

Best,
   John


-Original Message-
From: Bert Gunter 
Sent: Wednesday, April 29, 2020 5:50 PM
To: Steven 
Cc: Fox, John ; R-help Mailing List 
Subject: Re: [R] Rtools required

Type
?.Renviron
?R.home
?"environment variables"

at the R prompt to get what I think should be the info you need (or at
least useful info).


Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

On Wed, Apr 29, 2020 at 2:37 PM Steven  wrote:

Thanks John. Where is file .Renviron located? It must be a hidden file.
I cannot find it.

On 2020/4/28 下午 08:29, Fox, John wrote:

Dear Steven,

Did you follow the instruction on the Rtools webpage to add

PATH="${RTOOLS40_HOME}\usr\bin;${PATH}"

to your .Renviron file?

I hope this helps,
John

 -
 John Fox, Professor Emeritus
 McMaster University
 Hamilton, Ontario, Canada
 Web: http::/socserv.mcmaster.ca/jfox


On Apr 28, 2020, at 4:38 AM, Steven  wrote:

Dear All

I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to
now the new default folder c:\rtools40). While compiling a package
(binary) I received the follow marning message saying Rtools is
required. Any clues? Thanks.

Steven Yen

WARNING: Rtools is required to build R packages but is not
currently installed. Please download and install the appropriate
version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/


   [[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-30 Thread Jeroen Ooms
On Wed, Apr 29, 2020 at 11:37 PM Steven  wrote:
>
> Hello John,
>
> Perhaps you can help me. I am an idiot. I visited the Rtools web page
> and learn to run the following lines in R: Still I am getting the same
> warning message.
>
>  > writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con =
> "~/.Renviron")
>  > Sys.which("make")
>make
> "C:\\rtools40\\usr\\bin\\make.exe"

That looks OK. Did you restart rstudio?

How exactly are getting this error? Are you using install.packages()
in R? Or using the pkgbuild package?

Also are you running the latest version of rstudio? I think old
versions may have had difficulty finding rtools40.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-29 Thread Spencer Graves
  I just encountered something that looks exactly like that with R 
4.0.0 and the latest RStudio AND with Rtools40 installed under Windows 
10 (AND some manual adjustment of the path to delete references to old 
versions of Rtools and make sure Rtools40 was there).



  I got around it by have Rtools40 installed AND running 
"install.packages('xmlw')" inside R 4.0.0 inside a CMD prompt.  That 
worked, even though the same command inside RStudio failed with:



WARNING:  Rtools is required to build an R package but no version of 
Rtools compatible with the currently running version of R was found.  
Note that the following incompatible version(s) of Rtools were found:


  - Rtools 3.5 (installed at C:\Rtools).


  I got this message after deleting references to C:\Rtools from 
the path and rebooting.



*** I BELIEVE YOU NEED Rtools40 installed, because binaries for some 
packages are not (yet) available for R 4.0.0.



  Hope this helps.
  Spencer Graves


On 2020-04-29 21:02, Bert Gunter wrote:

Wouldn't packages that have to be built from source on installation
require Rtools?

Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

On Wed, Apr 29, 2020 at 6:48 PM Steven  wrote:

Thanks to all - very helpful. I search from c:\ and now find file
.Renviron located in C:\Users\USER\Documents. That does it.

I would like to pose an additional question, since it would also fall
under the same subject line. This is an RStudio question but since I am
using the free version the RStudio folks would not help me.

My students simply need to install packages and are not building any
packages so they have no reason to install Rtools.

When they install (not build) packages (from CRAN or file archive) they
received the same warning message saying

"Rtools required to build a package".

This is nonsense of course as they are, as I said, simply installing. I
tell them to user an older RStudio version, specifically 1.1.463 that's
free of that warning. Any idea?

Steven Yen

On 2020/4/30 上午 06:30, Fox, John wrote:

Dear Steven,

It's possible that Windows will hide .Renviron, but it's generally a good idea, in my opinion, in 
Folder Options > View to click "Show hidden files" and uncheck "hide 
extensions". Then .Renviron should show up (once you've created it).

Best,
   John


-Original Message-
From: Bert Gunter 
Sent: Wednesday, April 29, 2020 5:50 PM
To: Steven 
Cc: Fox, John ; R-help Mailing List 
Subject: Re: [R] Rtools required

Type
?.Renviron
?R.home
?"environment variables"

at the R prompt to get what I think should be the info you need (or at
least useful info).


Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

On Wed, Apr 29, 2020 at 2:37 PM Steven  wrote:

Thanks John. Where is file .Renviron located? It must be a hidden file.
I cannot find it.

On 2020/4/28 下午 08:29, Fox, John wrote:

Dear Steven,

Did you follow the instruction on the Rtools webpage to add

PATH="${RTOOLS40_HOME}\usr\bin;${PATH}"

to your .Renviron file?

I hope this helps,
John

 -
 John Fox, Professor Emeritus
 McMaster University
 Hamilton, Ontario, Canada
 Web: http::/socserv.mcmaster.ca/jfox


On Apr 28, 2020, at 4:38 AM, Steven  wrote:

Dear All

I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to
now the new default folder c:\rtools40). While compiling a package
(binary) I received the follow marning message saying Rtools is
required. Any clues? Thanks.

Steven Yen

WARNING: Rtools is required to build R packages but is not
currently installed. Please download and install the appropriate
version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/


   [[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented

Re: [R] Rtools required

2020-04-29 Thread Bert Gunter
Wouldn't packages that have to be built from source on installation
require Rtools?

Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

On Wed, Apr 29, 2020 at 6:48 PM Steven  wrote:
>
> Thanks to all - very helpful. I search from c:\ and now find file
> .Renviron located in C:\Users\USER\Documents. That does it.
>
> I would like to pose an additional question, since it would also fall
> under the same subject line. This is an RStudio question but since I am
> using the free version the RStudio folks would not help me.
>
> My students simply need to install packages and are not building any
> packages so they have no reason to install Rtools.
>
> When they install (not build) packages (from CRAN or file archive) they
> received the same warning message saying
>
> "Rtools required to build a package".
>
> This is nonsense of course as they are, as I said, simply installing. I
> tell them to user an older RStudio version, specifically 1.1.463 that's
> free of that warning. Any idea?
>
> Steven Yen
>
> On 2020/4/30 上午 06:30, Fox, John wrote:
> > Dear Steven,
> >
> > It's possible that Windows will hide .Renviron, but it's generally a good 
> > idea, in my opinion, in Folder Options > View to click "Show hidden files" 
> > and uncheck "hide extensions". Then .Renviron should show up (once you've 
> > created it).
> >
> > Best,
> >   John
> >
> >> -----Original Message-
> >> From: Bert Gunter 
> >> Sent: Wednesday, April 29, 2020 5:50 PM
> >> To: Steven 
> >> Cc: Fox, John ; R-help Mailing List  >> project.org>
> >> Subject: Re: [R] Rtools required
> >>
> >> Type
> >> ?.Renviron
> >> ?R.home
> >> ?"environment variables"
> >>
> >> at the R prompt to get what I think should be the info you need (or at
> >> least useful info).
> >>
> >>
> >> Bert Gunter
> >>
> >> "The trouble with having an open mind is that people keep coming along and
> >> sticking things into it."
> >> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
> >>
> >> On Wed, Apr 29, 2020 at 2:37 PM Steven  wrote:
> >>> Thanks John. Where is file .Renviron located? It must be a hidden file.
> >>> I cannot find it.
> >>>
> >>> On 2020/4/28 下午 08:29, Fox, John wrote:
> >>>> Dear Steven,
> >>>>
> >>>> Did you follow the instruction on the Rtools webpage to add
> >>>>
> >>>>PATH="${RTOOLS40_HOME}\usr\bin;${PATH}"
> >>>>
> >>>> to your .Renviron file?
> >>>>
> >>>> I hope this helps,
> >>>>John
> >>>>
> >>>> -
> >>>> John Fox, Professor Emeritus
> >>>> McMaster University
> >>>> Hamilton, Ontario, Canada
> >>>> Web: http::/socserv.mcmaster.ca/jfox
> >>>>
> >>>>> On Apr 28, 2020, at 4:38 AM, Steven  wrote:
> >>>>>
> >>>>> Dear All
> >>>>>
> >>>>> I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to
> >>>>> now the new default folder c:\rtools40). While compiling a package
> >>>>> (binary) I received the follow marning message saying Rtools is
> >>>>> required. Any clues? Thanks.
> >>>>>
> >>>>> Steven Yen
> >>>>>
> >>>>> WARNING: Rtools is required to build R packages but is not
> >>>>> currently installed. Please download and install the appropriate
> >>>>> version of Rtools before proceeding:
> >>>>> https://cran.rstudio.com/bin/windows/Rtools/
> >>>>>
> >>>>>
> >>>>>   [[alternative HTML version deleted]]
> >>>>>
> >>>>> __
> >>>>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >>>>> https://stat.ethz.ch/mailman/listinfo/r-help
> >>>>> PLEASE do read the posting guide
> >>>>> http://www.R-project.org/posting-guide.html
> >>>>> and provide commented, minimal, self-contained, reproducible code.
> >>> __
> >>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >>> https://stat.ethz.ch/mailman/listinfo/r-help
> >>> PLEASE do read the posting guide
> >>> http://www.R-project.org/posting-guide.html
> >>> and provide commented, minimal, self-contained, reproducible code.
>

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-29 Thread Henrik Bengtsson
Careful so you don't overwrite an existing ~/.Renviron file; it's safer to
use something like:

cat('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"\n', file="~/.Renviron"
append=TRUE)

/Henrik




On Wed, Apr 29, 2020, 15:33 Fox, John  wrote:

> Dear Steven,
>
> It's possible that Windows will hide .Renviron, but it's generally a good
> idea, in my opinion, in Folder Options > View to click "Show hidden files"
> and uncheck "hide extensions". Then .Renviron should show up (once you've
> created it).
>
> Best,
>  John
>
> > -Original Message-
> > From: Bert Gunter 
> > Sent: Wednesday, April 29, 2020 5:50 PM
> > To: Steven 
> > Cc: Fox, John ; R-help Mailing List  > project.org>
> > Subject: Re: [R] Rtools required
> >
> > Type
> > ?.Renviron
> > ?R.home
> > ?"environment variables"
> >
> > at the R prompt to get what I think should be the info you need (or at
> > least useful info).
> >
> >
> > Bert Gunter
> >
> > "The trouble with having an open mind is that people keep coming along
> and
> > sticking things into it."
> > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
> >
> > On Wed, Apr 29, 2020 at 2:37 PM Steven  wrote:
> > >
> > > Thanks John. Where is file .Renviron located? It must be a hidden file.
> > > I cannot find it.
> > >
> > > On 2020/4/28 下午 08:29, Fox, John wrote:
> > > > Dear Steven,
> > > >
> > > > Did you follow the instruction on the Rtools webpage to add
> > > >
> > > >   PATH="${RTOOLS40_HOME}\usr\bin;${PATH}"
> > > >
> > > > to your .Renviron file?
> > > >
> > > > I hope this helps,
> > > >   John
> > > >
> > > >-
> > > >John Fox, Professor Emeritus
> > > >McMaster University
> > > >Hamilton, Ontario, Canada
> > > >Web: http::/socserv.mcmaster.ca/jfox
> > > >
> > > >> On Apr 28, 2020, at 4:38 AM, Steven  wrote:
> > > >>
> > > >> Dear All
> > > >>
> > > >> I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to
> > > >> now the new default folder c:\rtools40). While compiling a package
> > > >> (binary) I received the follow marning message saying Rtools is
> > > >> required. Any clues? Thanks.
> > > >>
> > > >> Steven Yen
> > > >>
> > > >> WARNING: Rtools is required to build R packages but is not
> > > >> currently installed. Please download and install the appropriate
> > > >> version of Rtools before proceeding:
> > > >> https://cran.rstudio.com/bin/windows/Rtools/
> > > >>
> > > >>
> > > >>  [[alternative HTML version deleted]]
> > > >>
> > > >> __
> > > >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > > >> https://stat.ethz.ch/mailman/listinfo/r-help
> > > >> PLEASE do read the posting guide
> > > >> http://www.R-project.org/posting-guide.html
> > > >> and provide commented, minimal, self-contained, reproducible code.
> > >
> > > __
> > > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > > https://stat.ethz.ch/mailman/listinfo/r-help
> > > PLEASE do read the posting guide
> > > http://www.R-project.org/posting-guide.html
> > > and provide commented, minimal, self-contained, reproducible code.
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-29 Thread Fox, John
Dear Steven,

It's possible that Windows will hide .Renviron, but it's generally a good idea, 
in my opinion, in Folder Options > View to click "Show hidden files" and 
uncheck "hide extensions". Then .Renviron should show up (once you've created 
it).

Best,
 John

> -Original Message-
> From: Bert Gunter 
> Sent: Wednesday, April 29, 2020 5:50 PM
> To: Steven 
> Cc: Fox, John ; R-help Mailing List  project.org>
> Subject: Re: [R] Rtools required
> 
> Type
> ?.Renviron
> ?R.home
> ?"environment variables"
> 
> at the R prompt to get what I think should be the info you need (or at
> least useful info).
> 
> 
> Bert Gunter
> 
> "The trouble with having an open mind is that people keep coming along and
> sticking things into it."
> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
> 
> On Wed, Apr 29, 2020 at 2:37 PM Steven  wrote:
> >
> > Thanks John. Where is file .Renviron located? It must be a hidden file.
> > I cannot find it.
> >
> > On 2020/4/28 下午 08:29, Fox, John wrote:
> > > Dear Steven,
> > >
> > > Did you follow the instruction on the Rtools webpage to add
> > >
> > >   PATH="${RTOOLS40_HOME}\usr\bin;${PATH}"
> > >
> > > to your .Renviron file?
> > >
> > > I hope this helps,
> > >   John
> > >
> > >-
> > >John Fox, Professor Emeritus
> > >McMaster University
> > >Hamilton, Ontario, Canada
> > >Web: http::/socserv.mcmaster.ca/jfox
> > >
> > >> On Apr 28, 2020, at 4:38 AM, Steven  wrote:
> > >>
> > >> Dear All
> > >>
> > >> I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to
> > >> now the new default folder c:\rtools40). While compiling a package
> > >> (binary) I received the follow marning message saying Rtools is
> > >> required. Any clues? Thanks.
> > >>
> > >> Steven Yen
> > >>
> > >> WARNING: Rtools is required to build R packages but is not
> > >> currently installed. Please download and install the appropriate
> > >> version of Rtools before proceeding:
> > >> https://cran.rstudio.com/bin/windows/Rtools/
> > >>
> > >>
> > >>  [[alternative HTML version deleted]]
> > >>
> > >> __
> > >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > >> https://stat.ethz.ch/mailman/listinfo/r-help
> > >> PLEASE do read the posting guide
> > >> http://www.R-project.org/posting-guide.html
> > >> and provide commented, minimal, self-contained, reproducible code.
> >
> > __
> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> > http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-29 Thread Bert Gunter
Type
?.Renviron
?R.home
?"environment variables"

at the R prompt to get what I think should be the info you need (or at
least useful info).


Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

On Wed, Apr 29, 2020 at 2:37 PM Steven  wrote:
>
> Thanks John. Where is file .Renviron located? It must be a hidden file.
> I cannot find it.
>
> On 2020/4/28 下午 08:29, Fox, John wrote:
> > Dear Steven,
> >
> > Did you follow the instruction on the Rtools webpage to add
> >
> >   PATH="${RTOOLS40_HOME}\usr\bin;${PATH}"
> >
> > to your .Renviron file?
> >
> > I hope this helps,
> >   John
> >
> >-
> >John Fox, Professor Emeritus
> >McMaster University
> >Hamilton, Ontario, Canada
> >Web: http::/socserv.mcmaster.ca/jfox
> >
> >> On Apr 28, 2020, at 4:38 AM, Steven  wrote:
> >>
> >> Dear All
> >>
> >> I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to now
> >> the new default folder c:\rtools40). While compiling a package (binary)
> >> I received the follow marning message saying Rtools is required. Any
> >> clues? Thanks.
> >>
> >> Steven Yen
> >>
> >> WARNING: Rtools is required to build R packages but is not currently
> >> installed. Please download and install the appropriate version of Rtools
> >> before proceeding: https://cran.rstudio.com/bin/windows/Rtools/
> >>
> >>
> >>  [[alternative HTML version deleted]]
> >>
> >> __
> >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >> https://stat.ethz.ch/mailman/listinfo/r-help
> >> PLEASE do read the posting guide 
> >> http://www.R-project.org/posting-guide.html
> >> and provide commented, minimal, self-contained, reproducible code.
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-29 Thread Steven Yen
Thanks. Can you kindly tell me what to read to do it the "standard way"? 
Also, where can I find file .Renviron.


On 2020/4/28 下午 11:08, Duncan Murdoch wrote:

On 28/04/2020 11:02 a.m., Steven Yen wrote:

In RStudio, I enter File -> Open Project -> and browse to open a .Rproj
file. Then, I click Build -> Build Binary Package. Thanks.


Do it the standard way instead of using devtools.

Duncan Murdoch



On 2020/4/28 下午 10:55, Duncan Murdoch wrote:

On 28/04/2020 9:56 a.m., Steven Yen wrote:

Thanks. I visited the Rtools web page and learned to run the following
lines. I am still getting the same warning message.


And you are still not telling us what command you used to trigger that
message.

Duncan Murdoch



   > writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con =
"~/.Renviron")
   > Sys.which("make")
     make
"C:\\rtools40\\usr\\bin\\make.exe"

On 2020/4/28 下午 08:39, Duncan Murdoch wrote:

On 28/04/2020 5:57 a.m., Steven T. Yen wrote:

Dear All

I updated to R-4.0.0. and also installed the latest Rtools 4.0 
(to now

the new default folder c:\rtools40). While compiling a package
(binary)
I received the follow marning message saying Rtools is required. Any
clues? Thanks.


Presumably you didn't put it on your path, or you used a non-standard
way to build.  You need to say what command you used.

Duncan Murdoch






__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-29 Thread Steven Yen
In RStudio, I enter File -> Open Project -> and browse to open a .Rproj 
file. Then, I click Build -> Build Binary Package. Thanks.


On 2020/4/28 下午 10:55, Duncan Murdoch wrote:

On 28/04/2020 9:56 a.m., Steven Yen wrote:

Thanks. I visited the Rtools web page and learned to run the following
lines. I am still getting the same warning message.


And you are still not telling us what command you used to trigger that 
message.


Duncan Murdoch



  > writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con =
"~/.Renviron")
  > Sys.which("make")
    make
"C:\\rtools40\\usr\\bin\\make.exe"

On 2020/4/28 下午 08:39, Duncan Murdoch wrote:

On 28/04/2020 5:57 a.m., Steven T. Yen wrote:

Dear All

I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to now
the new default folder c:\rtools40). While compiling a package 
(binary)

I received the follow marning message saying Rtools is required. Any
clues? Thanks.


Presumably you didn't put it on your path, or you used a non-standard
way to build.  You need to say what command you used.

Duncan Murdoch




__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-29 Thread Steven Yen

Thanks. Updating RStudio to 1.2.5042 did fix the problem. Thank you!

On 2020/4/28 下午 11:30, Duncan Murdoch wrote:

On 28/04/2020 11:16 a.m., Steven Yen wrote:

Thanks. Can you kindly tell me what to read to do it the "standard way"?


Start with ?INSTALL, and find more details in the Writing R Extensions 
manual.  I believe RStudio can be configured to use those tools rather 
than the devtools ones, but I don't know if it will still run its test 
for Rtools if you do it that way.


I imagine you can also update RStudio and all of your packages; 
eventually that will work, if this is really the issue.


Duncan Murdoch


Also, where can I find file .Renviron.

On 2020/4/28 下午 11:08, Duncan Murdoch wrote:

On 28/04/2020 11:02 a.m., Steven Yen wrote:
In RStudio, I enter File -> Open Project -> and browse to open a 
.Rproj

file. Then, I click Build -> Build Binary Package. Thanks.


Do it the standard way instead of using devtools.

Duncan Murdoch



On 2020/4/28 下午 10:55, Duncan Murdoch wrote:

On 28/04/2020 9:56 a.m., Steven Yen wrote:
Thanks. I visited the Rtools web page and learned to run the 
following

lines. I am still getting the same warning message.


And you are still not telling us what command you used to trigger 
that

message.

Duncan Murdoch



    > writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con =
"~/.Renviron")
    > Sys.which("make")
      make
"C:\\rtools40\\usr\\bin\\make.exe"

On 2020/4/28 下午 08:39, Duncan Murdoch wrote:

On 28/04/2020 5:57 a.m., Steven T. Yen wrote:

Dear All

I updated to R-4.0.0. and also installed the latest Rtools 4.0
(to now
the new default folder c:\rtools40). While compiling a package
(binary)
I received the follow marning message saying Rtools is 
required. Any

clues? Thanks.


Presumably you didn't put it on your path, or you used a 
non-standard

way to build.  You need to say what command you used.

Duncan Murdoch








__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-29 Thread Steven

Hello John,

Perhaps you can help me. I am an idiot. I visited the Rtools web page 
and learn to run the following lines in R: Still I am getting the same 
warning message.


> writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con = 
"~/.Renviron")

> Sys.which("make")
  make
"C:\\rtools40\\usr\\bin\\make.exe"

On 2020/4/28 下午 08:29, Fox, John wrote:

Dear Steven,

Did you follow the instruction on the Rtools webpage to add

PATH="${RTOOLS40_HOME}\usr\bin;${PATH}"

to your .Renviron file?

I hope this helps,
  John

   -
   John Fox, Professor Emeritus
   McMaster University
   Hamilton, Ontario, Canada
   Web: http::/socserv.mcmaster.ca/jfox


On Apr 28, 2020, at 4:38 AM, Steven  wrote:

Dear All

I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to now
the new default folder c:\rtools40). While compiling a package (binary)
I received the follow marning message saying Rtools is required. Any
clues? Thanks.

Steven Yen

WARNING: Rtools is required to build R packages but is not currently
installed. Please download and install the appropriate version of Rtools
before proceeding: https://cran.rstudio.com/bin/windows/Rtools/


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-29 Thread Steven
Thanks John. Where is file .Renviron located? It must be a hidden file. 
I cannot find it.


On 2020/4/28 下午 08:29, Fox, John wrote:

Dear Steven,

Did you follow the instruction on the Rtools webpage to add

PATH="${RTOOLS40_HOME}\usr\bin;${PATH}"

to your .Renviron file?

I hope this helps,
  John

   -
   John Fox, Professor Emeritus
   McMaster University
   Hamilton, Ontario, Canada
   Web: http::/socserv.mcmaster.ca/jfox


On Apr 28, 2020, at 4:38 AM, Steven  wrote:

Dear All

I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to now
the new default folder c:\rtools40). While compiling a package (binary)
I received the follow marning message saying Rtools is required. Any
clues? Thanks.

Steven Yen

WARNING: Rtools is required to build R packages but is not currently
installed. Please download and install the appropriate version of Rtools
before proceeding: https://cran.rstudio.com/bin/windows/Rtools/


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-29 Thread Steven Yen
Thanks. I visited the Rtools web page and learned to run the following 
lines. I am still getting the same warning message.


> writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con = 
"~/.Renviron")

> Sys.which("make")
  make
"C:\\rtools40\\usr\\bin\\make.exe"

On 2020/4/28 下午 08:39, Duncan Murdoch wrote:

On 28/04/2020 5:57 a.m., Steven T. Yen wrote:

Dear All

I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to now
the new default folder c:\rtools40). While compiling a package (binary)
I received the follow marning message saying Rtools is required. Any
clues? Thanks.


Presumably you didn't put it on your path, or you used a non-standard 
way to build.  You need to say what command you used.


Duncan Murdoch


__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-28 Thread Wang Jiefei
I do not exactly know what is going on with your problem but it is better
to use the old-school method to install the package so that you can avoid
any problems with Rstudio.

>From your post, I guess you are using Windows, so please see this link for
how to add the Rtools and R to the environment variable PATH:

https://www.computerhope.com/issues/ch000549.htm

 Then go to the command prompt, here is how:

https://www.howtogeek.com/235101/10-ways-to-open-the-command-prompt-in-windows-10/

Type R and enter. If you can see welcome information from R, that means at
least you have correctly added R into PATH. Check whether the R version is
4.0

Type "q()" to quit R, then go to the directory where your package is. For
example, if your package is in "D:\packages\mypackage", go to
"D:\packages\".

Type "R CMD INSTALL  mypackage", replace mypackage with the true folder
name of your package.

If everything is correct, you should be able to install the package. If you
get the same error, type "echo %PATH%" and post here so we can know exactly
what is going on.

Best,
Jiefei

On Tue, Apr 28, 2020 at 11:39 PM Duncan Murdoch 
wrote:

> On 28/04/2020 11:16 a.m., Steven Yen wrote:
> > Thanks. Can you kindly tell me what to read to do it the "standard way"?
>
> Start with ?INSTALL, and find more details in the Writing R Extensions
> manual.  I believe RStudio can be configured to use those tools rather
> than the devtools ones, but I don't know if it will still run its test
> for Rtools if you do it that way.
>
> I imagine you can also update RStudio and all of your packages;
> eventually that will work, if this is really the issue.
>
> Duncan Murdoch
>
> > Also, where can I find file .Renviron.
> >
> > On 2020/4/28 下午 11:08, Duncan Murdoch wrote:
> >> On 28/04/2020 11:02 a.m., Steven Yen wrote:
> >>> In RStudio, I enter File -> Open Project -> and browse to open a .Rproj
> >>> file. Then, I click Build -> Build Binary Package. Thanks.
> >>
> >> Do it the standard way instead of using devtools.
> >>
> >> Duncan Murdoch
> >>
> >>>
> >>> On 2020/4/28 下午 10:55, Duncan Murdoch wrote:
>  On 28/04/2020 9:56 a.m., Steven Yen wrote:
> > Thanks. I visited the Rtools web page and learned to run the
> following
> > lines. I am still getting the same warning message.
> 
>  And you are still not telling us what command you used to trigger that
>  message.
> 
>  Duncan Murdoch
> 
> >
> > > writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con =
> > "~/.Renviron")
> > > Sys.which("make")
> >   make
> > "C:\\rtools40\\usr\\bin\\make.exe"
> >
> > On 2020/4/28 下午 08:39, Duncan Murdoch wrote:
> >> On 28/04/2020 5:57 a.m., Steven T. Yen wrote:
> >>> Dear All
> >>>
> >>> I updated to R-4.0.0. and also installed the latest Rtools 4.0
> >>> (to now
> >>> the new default folder c:\rtools40). While compiling a package
> >>> (binary)
> >>> I received the follow marning message saying Rtools is required.
> Any
> >>> clues? Thanks.
> >>
> >> Presumably you didn't put it on your path, or you used a
> non-standard
> >> way to build.  You need to say what command you used.
> >>
> >> Duncan Murdoch
> 
> >>
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-28 Thread Duncan Murdoch

On 28/04/2020 11:16 a.m., Steven Yen wrote:

Thanks. Can you kindly tell me what to read to do it the "standard way"?


Start with ?INSTALL, and find more details in the Writing R Extensions 
manual.  I believe RStudio can be configured to use those tools rather 
than the devtools ones, but I don't know if it will still run its test 
for Rtools if you do it that way.


I imagine you can also update RStudio and all of your packages; 
eventually that will work, if this is really the issue.


Duncan Murdoch


Also, where can I find file .Renviron.

On 2020/4/28 下午 11:08, Duncan Murdoch wrote:

On 28/04/2020 11:02 a.m., Steven Yen wrote:

In RStudio, I enter File -> Open Project -> and browse to open a .Rproj
file. Then, I click Build -> Build Binary Package. Thanks.


Do it the standard way instead of using devtools.

Duncan Murdoch



On 2020/4/28 下午 10:55, Duncan Murdoch wrote:

On 28/04/2020 9:56 a.m., Steven Yen wrote:

Thanks. I visited the Rtools web page and learned to run the following
lines. I am still getting the same warning message.


And you are still not telling us what command you used to trigger that
message.

Duncan Murdoch



    > writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con =
"~/.Renviron")
    > Sys.which("make")
      make
"C:\\rtools40\\usr\\bin\\make.exe"

On 2020/4/28 下午 08:39, Duncan Murdoch wrote:

On 28/04/2020 5:57 a.m., Steven T. Yen wrote:

Dear All

I updated to R-4.0.0. and also installed the latest Rtools 4.0
(to now
the new default folder c:\rtools40). While compiling a package
(binary)
I received the follow marning message saying Rtools is required. Any
clues? Thanks.


Presumably you didn't put it on your path, or you used a non-standard
way to build.  You need to say what command you used.

Duncan Murdoch






__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-28 Thread Duncan Murdoch

On 28/04/2020 11:02 a.m., Steven Yen wrote:

In RStudio, I enter File -> Open Project -> and browse to open a .Rproj
file. Then, I click Build -> Build Binary Package. Thanks.


Do it the standard way instead of using devtools.

Duncan Murdoch



On 2020/4/28 下午 10:55, Duncan Murdoch wrote:

On 28/04/2020 9:56 a.m., Steven Yen wrote:

Thanks. I visited the Rtools web page and learned to run the following
lines. I am still getting the same warning message.


And you are still not telling us what command you used to trigger that
message.

Duncan Murdoch



   > writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con =
"~/.Renviron")
   > Sys.which("make")
     make
"C:\\rtools40\\usr\\bin\\make.exe"

On 2020/4/28 下午 08:39, Duncan Murdoch wrote:

On 28/04/2020 5:57 a.m., Steven T. Yen wrote:

Dear All

I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to now
the new default folder c:\rtools40). While compiling a package
(binary)
I received the follow marning message saying Rtools is required. Any
clues? Thanks.


Presumably you didn't put it on your path, or you used a non-standard
way to build.  You need to say what command you used.

Duncan Murdoch




__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-28 Thread Duncan Murdoch

On 28/04/2020 9:56 a.m., Steven Yen wrote:

Thanks. I visited the Rtools web page and learned to run the following
lines. I am still getting the same warning message.


And you are still not telling us what command you used to trigger that 
message.


Duncan Murdoch



  > writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con =
"~/.Renviron")
  > Sys.which("make")
    make
"C:\\rtools40\\usr\\bin\\make.exe"

On 2020/4/28 下午 08:39, Duncan Murdoch wrote:

On 28/04/2020 5:57 a.m., Steven T. Yen wrote:

Dear All

I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to now
the new default folder c:\rtools40). While compiling a package (binary)
I received the follow marning message saying Rtools is required. Any
clues? Thanks.


Presumably you didn't put it on your path, or you used a non-standard
way to build.  You need to say what command you used.

Duncan Murdoch


__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-28 Thread Fox, John
Dear Steven,

> -Original Message-
> From: Steven 
> Sent: Tuesday, April 28, 2020 9:50 AM
> To: Fox, John 
> Cc: R-help Mailing List 
> Subject: Re: [R] Rtools required
> 
> Hello John,
> 
> Perhaps you can help me. I am an idiot. I visited the Rtools web page and
> learn to run the following lines in R: Still I am getting the same warning
> message.
> 
>  > writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con =
> "~/.Renviron")
>  > Sys.which("make")
>    make
> "C:\\rtools40\\usr\\bin\\make.exe

The first command writes the modification to your path in the .Renviron file in 
your home directory, which should be executed at the start of each R session. I 
assume that you executed the second command in a fresh session, and it 
indicates that the Rtools are indeed accessible. 

Given that, I don't know why you're still having a problem, assuming that you 
tried to build the package in a fresh session *after* you created .Renviron.

Sorry I can't be of more help,
 John

> 
> On 2020/4/28 下午 08:29, Fox, John wrote:
> > Dear Steven,
> >
> > Did you follow the instruction on the Rtools webpage to add
> >
> > PATH="${RTOOLS40_HOME}\usr\bin;${PATH}"
> >
> > to your .Renviron file?
> >
> > I hope this helps,
> >   John
> >
> >-
> >John Fox, Professor Emeritus
> >McMaster University
> >Hamilton, Ontario, Canada
> >Web: http::/socserv.mcmaster.ca/jfox
> >
> >> On Apr 28, 2020, at 4:38 AM, Steven  wrote:
> >>
> >> Dear All
> >>
> >> I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to
> >> now the new default folder c:\rtools40). While compiling a package
> >> (binary) I received the follow marning message saying Rtools is
> >> required. Any clues? Thanks.
> >>
> >> Steven Yen
> >>
> >> WARNING: Rtools is required to build R packages but is not currently
> >> installed. Please download and install the appropriate version of
> >> Rtools before proceeding:
> >> https://cran.rstudio.com/bin/windows/Rtools/
> >>
> >>
> >>[[alternative HTML version deleted]]
> >>
> >> __
> >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >> https://stat.ethz.ch/mailman/listinfo/r-help
> >> PLEASE do read the posting guide
> >> http://www.R-project.org/posting-guide.html
> >> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-28 Thread Richard M. Heiberger
did you change your path to the new location?

On Tue, Apr 28, 2020 at 07:25 Steven  wrote:

> Dear All
>
> I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to now
> the new default folder c:\rtools40). While compiling a package (binary)
> I received the follow marning message saying Rtools is required. Any
> clues? Thanks.
>
> Steven Yen
>
> WARNING: Rtools is required to build R packages but is not currently
> installed. Please download and install the appropriate version of Rtools
> before proceeding: https://cran.rstudio.com/bin/windows/Rtools/
>
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-28 Thread Duncan Murdoch

On 28/04/2020 5:57 a.m., Steven T. Yen wrote:

Dear All

I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to now
the new default folder c:\rtools40). While compiling a package (binary)
I received the follow marning message saying Rtools is required. Any
clues? Thanks.


Presumably you didn't put it on your path, or you used a non-standard 
way to build.  You need to say what command you used.


Duncan Murdoch

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rtools required

2020-04-28 Thread Fox, John
Dear Steven,

Did you follow the instruction on the Rtools webpage to add 

PATH="${RTOOLS40_HOME}\usr\bin;${PATH}"

to your .Renviron file?

I hope this helps,
 John

  -
  John Fox, Professor Emeritus
  McMaster University
  Hamilton, Ontario, Canada
  Web: http::/socserv.mcmaster.ca/jfox

> On Apr 28, 2020, at 4:38 AM, Steven  wrote:
> 
> Dear All
> 
> I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to now 
> the new default folder c:\rtools40). While compiling a package (binary) 
> I received the follow marning message saying Rtools is required. Any 
> clues? Thanks.
> 
> Steven Yen
> 
> WARNING: Rtools is required to build R packages but is not currently 
> installed. Please download and install the appropriate version of Rtools 
> before proceeding: https://cran.rstudio.com/bin/windows/Rtools/
> 
> 
>   [[alternative HTML version deleted]]
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Rtools required

2020-04-28 Thread Steven
Dear All

I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to now 
the new default folder c:\rtools40). While compiling a package (binary) 
I received the follow marning message saying Rtools is required. Any 
clues? Thanks.

Steven Yen

WARNING: Rtools is required to build R packages but is not currently 
installed. Please download and install the appropriate version of Rtools 
before proceeding: https://cran.rstudio.com/bin/windows/Rtools/


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Rtools required

2020-04-28 Thread Steven T. Yen
Dear All

I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to now 
the new default folder c:\rtools40). While compiling a package (binary) 
I received the follow marning message saying Rtools is required. Any 
clues? Thanks.

Steven Yen

WARNING: Rtools is required to build R packages but is not currently 
installed. Please download and install the appropriate version of Rtools 
before proceeding: https://cran.rstudio.com/bin/windows/Rtools/


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.