ANTsX / ANTsRCore

Rcpp bindings for the C++ ANTs library used by the ANTsR package
9 stars 9 forks source link

Question about contributing code #127

Closed ntustison closed 4 years ago

ntustison commented 4 years ago

I'm currently trying to add an additional N3 bias correction variant which exposes additional parameters. However, I'm running into a problem when running roxygen2::roxygenise(). I currently get the following:

> roxygen2::roxygenise()
Loading ANTsRCore
unloadNamespace("ANTsRCore") not successful, probably because another loaded package depends on it. Forcing unload. If you encounter problems, please restart R.
Creating a new generic function for ‘max’ in package ‘ANTsRCore’
Creating a new generic function for ‘min’ in package ‘ANTsRCore’
Creating a new generic function for ‘range’ in package ‘ANTsRCore’
Creating a new generic function for ‘prod’ in package ‘ANTsRCore’
Creating a new generic function for ‘sum’ in package ‘ANTsRCore’
Creating a new generic function for ‘any’ in package ‘ANTsRCore’
Error in (get(".Internal", baseenv()))(delayedAssign(x, value, eval.env,  : 
  cannot change value of locked binding for 'iMathOps'

I checked the current master branch and it would seem that this problem exists there as well. Has anybody seen this before and potentially provide a solution?

muschellij2 commented 4 years ago

Did you Restart R? The line indicates that ANTsRCore was loaded: unloadNamespace("ANTsRCore") not successful, probably because another loaded package depends on it. Forcing unload. If you encounter problems, please restart R. Best, John

On Tue, Oct 13, 2020 at 4:00 PM Nick Tustison notifications@github.com wrote:

I'm currently trying to add an additional N3 bias correction variant https://github.com/ANTsX/ANTsRCore/pull/126 which exposes additional parameters. However, I'm running into a problem when running roxygen2::roxygenise(). I currently get the following:

roxygen2::roxygenise()

Loading ANTsRCore

unloadNamespace("ANTsRCore") not successful, probably because another loaded package depends on it. Forcing unload. If you encounter problems, please restart R.

Creating a new generic function for ‘max’ in package ‘ANTsRCore’

Creating a new generic function for ‘min’ in package ‘ANTsRCore’

Creating a new generic function for ‘range’ in package ‘ANTsRCore’

Creating a new generic function for ‘prod’ in package ‘ANTsRCore’

Creating a new generic function for ‘sum’ in package ‘ANTsRCore’

Creating a new generic function for ‘any’ in package ‘ANTsRCore’

Error in (get(".Internal", baseenv()))(delayedAssign(x, value, eval.env, :

cannot change value of locked binding for 'iMathOps'

I checked the current master branch and it would seem that this problem exists there as well. Has anybody seen this before and potentially provide a solution?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ANTsX/ANTsRCore/issues/127, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIGPLWEWGRCIFPIPU5IQE3SKSWW3ANCNFSM4SPSDIPQ .

ntustison commented 4 years ago

Brilliant, @muschellij2 . I had restarted R but your comment made me realize that I was loading "ANTsR" in my .Rprofile. Once I took that out, everything was fine. Thanks.