Re: [R-pkg-devel] Error in curl: Failed FTP upload: 550

2020-02-21 Thread Ivan Krylov
On Fri, 21 Feb 2020 14:04:24 +0100
Gianmarco Alberti  wrote:

> I have also used:
> check_win_devel() and check_win_release() out of devtools, but I keep
> getting the following message:
> Error in curl::curl_fetch_memory(url, handle = h) :
>  Failed FTP upload: 550

Does it work if you build the package manually (i.e. issue the command
R CMD build . in package directory), then upload the resulting file
using cURL or any other FTP client?

curl -T yourfile.tar.gz ftp://win-builder.r-project.org/R-devel/

You can also try the alternative upload page at
https://win-builder.r-project.org/upload.aspx

If manual FTP uploading works while devtools::check_win_devel()
doesn't, some debugging may be required. For example, try

trace(devtools:::upload_ftp, quote({str(file); str(url)}))

before running check_win_devel() or check_win_release() to see which
arguments does devtools:::check_win call upload_ftp with.

-- 
Best regards,
Ivan

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] Error in curl: Failed FTP upload: 550

2020-02-21 Thread Gianmarco Alberti
Hello,
Thanks for your reply.

I build the package manually, and then uploaded it here:
https://win-builder.r-project.org/upload.aspx

I got the following:
Access to the path 'C:\Inetpub\ftproot\R-release\GmAMisc_1.1.0.tar.gz' is 
denied.

in both cases: R-devel and R-release.

I don’t have any clue….

Best regards



Dr Gianmarco Alberti (PhD Udine)
Lecturer in Spatial Forensics
Coordinator of the BA course in Criminology
Department of Criminology
Faculty for Social Wellbeing
Room 332, Humanities B (FEMA)
University of Malta, Msida, Malta (Europe) - MSD 2080
tel +356 2340 3718

Academic profiles
https://www.researchgate.net/profile/Gianmarco_Alberti4
https://malta.academia.edu/GianmarcoAlberti

Google Scholar profile
https://scholar.google.com/citations?user=tFrJKQ0J&hl=en

Correspondence Analysis website
http://cainarchaeology.weebly.com/

R packages on CRAN:
CAinterprTools
https://cran.r-project.org/web/packages/CAinterprTools/index.html

GmAMisc
https://cran.r-project.org/package=GmAMisc

movecost
https://cran.r-project.org/web/packages/movecost/index.html

On 21 Feb 2020, 14:30 +0100, Ivan Krylov , wrote:
> On Fri, 21 Feb 2020 14:04:24 +0100
> Gianmarco Alberti  wrote:
>
> > I have also used:
> > check_win_devel() and check_win_release() out of devtools, but I keep
> > getting the following message:
> > Error in curl::curl_fetch_memory(url, handle = h) :
> > Failed FTP upload: 550
>
> Does it work if you build the package manually (i.e. issue the command
> R CMD build . in package directory), then upload the resulting file
> using cURL or any other FTP client?
>
> curl -T yourfile.tar.gz ftp://win-builder.r-project.org/R-devel/
>
> You can also try the alternative upload page at
> https://win-builder.r-project.org/upload.aspx
>
> If manual FTP uploading works while devtools::check_win_devel()
> doesn't, some debugging may be required. For example, try
>
> trace(devtools:::upload_ftp, quote({str(file); str(url)}))
>
> before running check_win_devel() or check_win_release() to see which
> arguments does devtools:::check_win call upload_ftp with.
>
> --
> Best regards,
> Ivan

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] no visible binding for '<<-' assignment note

2020-02-21 Thread Weimin Zhang
Thank you Max.

The reason I used the super assignment  "<<-"  is because the "dnormfun" 
function later called by function kronecker(X, Y, FUN = "*",...) through FUN=" 
". If I don't use the super assignment  "<<-"  then the kronecker function 
cannot find "dnormfun" function. The question now seems that how I can let the 
kronecker(X, Y, FUN = "*",...) know that "dnormfun" is a "FUN"?

Thanks,
Weimin



From: Max Turgeon 
Sent: Thursday, February 20, 2020 10:50 AM
To: Weimin Zhang ; r-package-devel@r-project.org 

Subject: Re: no visible binding for '<<-' assignment note


Hi Weimin,


From the R docs, if there is no visible binding for the deep assignment, 
meaning there is the variable "dnormfun" not already defined in the parent 
environment, then an assignment is made in the global assignment. Is this 
really what you want to do, define a function "dnormfun" that is available in 
the user's global environment? If yes, then you'll need to make a case for it 
in your CRAN submision comments. If no, then you can probably just change "<<-" 
to "<-".


Best,


Max Turgeon
Assistant Professor
Department of Statistics
Department of Computer Science
University of Manitoba
maxturgeon.ca



From: R-package-devel  on behalf of 
Weimin Zhang 
Sent: February 19, 2020 11:48:38 AM
To: r-package-devel@r-project.org
Subject: [R-pkg-devel] no visible binding for '<<-' assignment note

Dear all,
In the last submission of my package the CRAN gave this note: "Check: R code 
for possible problems, Result: NOTE: no visible binding for '<<-' assignment..."

How can I bypass this note?

This is the local function which cause this note:
  dnormfun <<- function(muvalue, sigmavalue, aNumber = gridY[i] ){
force(aNumber)​
ansvalue=dnorm(aNumber,muvalue,sqrt(sigmavalue))​
return(ansvalue)​
  }​

The package can run normally at my machine. Any suggestion?

Thanks,

Weimin




[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] no visible binding for '<<-' assignment note

2020-02-21 Thread Richard M. Heiberger
I would guess that your NAMESPACE file doesn't export dnormfun.

On Fri, Feb 21, 2020 at 1:38 PM Weimin Zhang  wrote:
>
> Thank you Max.
>
> The reason I used the super assignment  "<<-"  is because the "dnormfun" 
> function later called by function kronecker(X, Y, FUN = "*",...) through 
> FUN=" ". If I don't use the super assignment  "<<-"  then the kronecker 
> function cannot find "dnormfun" function. The question now seems that how I 
> can let the kronecker(X, Y, FUN = "*",...) know that "dnormfun" is a "FUN"?
>
> Thanks,
> Weimin
>
>
> 
> From: Max Turgeon 
> Sent: Thursday, February 20, 2020 10:50 AM
> To: Weimin Zhang ; r-package-devel@r-project.org 
> 
> Subject: Re: no visible binding for '<<-' assignment note
>
>
> Hi Weimin,
>
>
> From the R docs, if there is no visible binding for the deep assignment, 
> meaning there is the variable "dnormfun" not already defined in the parent 
> environment, then an assignment is made in the global assignment. Is this 
> really what you want to do, define a function "dnormfun" that is available in 
> the user's global environment? If yes, then you'll need to make a case for it 
> in your CRAN submision comments. If no, then you can probably just change 
> "<<-" to "<-".
>
>
> Best,
>
>
> Max Turgeon
> Assistant Professor
> Department of Statistics
> Department of Computer Science
> University of Manitoba
> maxturgeon.ca
>
>
> 
> From: R-package-devel  on behalf of 
> Weimin Zhang 
> Sent: February 19, 2020 11:48:38 AM
> To: r-package-devel@r-project.org
> Subject: [R-pkg-devel] no visible binding for '<<-' assignment note
>
> Dear all,
> In the last submission of my package the CRAN gave this note: "Check: R code 
> for possible problems, Result: NOTE: no visible binding for '<<-' 
> assignment..."
>
> How can I bypass this note?
>
> This is the local function which cause this note:
>   dnormfun <<- function(muvalue, sigmavalue, aNumber = gridY[i] ){
> force(aNumber)
> ansvalue=dnorm(aNumber,muvalue,sqrt(sigmavalue))
> return(ansvalue)
>   }
>
> The package can run normally at my machine. Any suggestion?
>
> Thanks,
>
> Weimin
>
>
>
>
> [[alternative HTML version deleted]]
>
> __
> R-package-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>
> [[alternative HTML version deleted]]
>
> __
> R-package-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] no visible binding for '<<-' assignment note

2020-02-21 Thread Max Turgeon
The only thing I know about your package is the code you've shared so far, so I 
may be wrong. If I understand correctly, you're using kronecker and dnormfun to 
evalute the normal density at several values of mu and sigma, but a fixed point 
x. And you're fixing that point x in dnormfun, with the possibility of 
redefining dnormfun if you need a new point x. If that is the case, I think you 
can simply do something like


kronecker(X, Y, FUN = dnorm, x = gridY[i]).


But again, maybe I'm missing something.


Max Turgeon
Assistant Professor
Department of Statistics
Department of Computer Science
University of Manitoba
maxturgeon.ca




From: Weimin Zhang 
Sent: February 21, 2020 12:38 PM
To: Max Turgeon; r-package-devel@r-project.org
Subject: Re: no visible binding for '<<-' assignment note

Thank you Max.

The reason I used the super assignment  "<<-"  is because the "dnormfun" 
function later called by function kronecker(X, Y, FUN = "*",...) through FUN=" 
". If I don't use the super assignment  "<<-"  then the kronecker function 
cannot find "dnormfun" function. The question now seems that how I can let the 
kronecker(X, Y, FUN = "*",...) know that "dnormfun" is a "FUN"?

Thanks,
Weimin



From: Max Turgeon 
Sent: Thursday, February 20, 2020 10:50 AM
To: Weimin Zhang ; r-package-devel@r-project.org 

Subject: Re: no visible binding for '<<-' assignment note


Hi Weimin,


>From the R docs, if there is no visible binding for the deep assignment, 
>meaning there is the variable "dnormfun" not already defined in the parent 
>environment, then an assignment is made in the global assignment. Is this 
>really what you want to do, define a function "dnormfun" that is available in 
>the user's global environment? If yes, then you'll need to make a case for it 
>in your CRAN submision comments. If no, then you can probably just change 
>"<<-" to "<-".


Best,


Max Turgeon
Assistant Professor
Department of Statistics
Department of Computer Science
University of Manitoba
maxturgeon.ca



From: R-package-devel  on behalf of 
Weimin Zhang 
Sent: February 19, 2020 11:48:38 AM
To: r-package-devel@r-project.org
Subject: [R-pkg-devel] no visible binding for '<<-' assignment note

Dear all,
In the last submission of my package the CRAN gave this note: "Check: R code 
for possible problems, Result: NOTE: no visible binding for '<<-' assignment..."

How can I bypass this note?

This is the local function which cause this note:
  dnormfun <<- function(muvalue, sigmavalue, aNumber = gridY[i] ){
force(aNumber)
ansvalue=dnorm(aNumber,muvalue,sqrt(sigmavalue))
return(ansvalue)
  }

The package can run normally at my machine. Any suggestion?

Thanks,

Weimin




[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] Error in curl: Failed FTP upload: 550

2020-02-21 Thread Uwe Ligges

Yes, queue is stuck, will be cleared up by tomorrow,
Uwe Ligges

On 21.02.2020 18:01, Gianmarco Alberti wrote:

Thank you.
So, it’s better to wait for few days?

Best
Gm


Dr Gianmarco Alberti (PhD Udine)
Lecturer in Spatial Forensics
Coordinator of the BA course in Criminology
Department of Criminology
Faculty for Social Wellbeing
Room 332, Humanities B (FEMA)
University of Malta, Msida, Malta (Europe) - MSD 2080
tel +356 2340 3718

Academic profiles
https://www.researchgate.net/profile/Gianmarco_Alberti4
https://malta.academia.edu/GianmarcoAlberti

Google Scholar profile
https://scholar.google.com/citations?user=tFrJKQ0J&hl=en

Correspondence Analysis website
http://cainarchaeology.weebly.com/

R packages on CRAN:
CAinterprTools
https://cran.r-project.org/web/packages/CAinterprTools/index.html

GmAMisc
https://cran.r-project.org/package=GmAMisc

movecost
https://cran.r-project.org/web/packages/movecost/index.html

On 21 Feb 2020, 17:55 +0100, Ivan Krylov , wrote:

On Fri, 21 Feb 2020 16:55:35 +0100
Gianmarco Alberti  wrote:


Access to the path
'C:\Inetpub\ftproot\R-release\GmAMisc_1.1.0.tar.gz' is denied.


Right, I should have noticed it sooner. There already is
GmAMisc_1.1.0.tar.gz, uploaded yesterday (and a lot of other files, the
oldest having been uploaded on 20.02.2020 15:00:00 UTC, before yours).
Could be a temporary problem on win-builder.

--
Best regards,
Ivan


[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel



__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel